Skip to Content.

mget-help - RE: [mget-help] Problem at predicting GAM from rasters

Please Wait...

Subject: Marine Geospatial Ecology Tools (MGET) help

Text archives


From: "Jason Roberts" <>
To: '葉志慧' <>
Cc: <>
Subject: RE: [mget-help] Problem at predicting GAM from rasters
Date: Wed, 20 Apr 2011 11:23:10 -0400

Hi Ivy,

 

I’m sorry you’re seeing that problem. I have not seen it before but I believe I know what is happening.

 

Predict GAM From Rasters checks the input rasters to make sure they all have a consistent coordinate system, cell size, and extent. If they do not, it creates temporary versions that are consistent. Those temporary versions are in .img format (ERDAS Imagine format). Then Predict GAM From Rasters tool uses an R package called rgdal to read the rasters into R so that the GAM prediction can be done. rgdal itself uses software called GDAL to perform the low-level read operations. A bug was recently discovered in GDAL that caused it to fail to read .img files produced by ArcGIS and report the message you describe. See here. I’m fairly certain that is the problem.

 

The solution to this is to update the rgdal package so it is using a newer version of GDAL. The simplest way to do that is to upgrade your version of R:

 

1.    Close all ArcGIS programs.

2.    Uninstall your existing version of R.

3.    Install a newer version of R. Please note that MGET is compatible with R 2.12.0 and earlier versions, but not later versions (2.12.1, 2.12.2, 2.13.0). I recommend you install R 2.12.0. On the R CRAN website, you will have to look carefully to find version 2.12.0.

 

If you already have R 2.12.0 or do not want to upgrade your current version of R, there is a more complicated way to do it. If you prefer that, let me know and I’ll give the instructions for that.

 

Best regards,

 

Jason

 

From: 葉志慧 [mailto:]
Sent: Wednesday, April 20, 2011 10:14 AM
To:
Subject: [mget-help] Problem at predicting GAM from rasters

 

Hello, 

Thank you for developing such a useful tool!

However, I've met a problem when predicting GAM from rasters.

Here's the error information: 

 

Obtaining additional debugging information. This may cause this tool to hang. If you do not see any additional messages after one minute, halt its execution.

<class 'rpy.RPy_RException'>: error in .local(.Object, ...) : 

            GDAL Error 1: Unknown base item type : 4

 

Failed to execute (GAMPredictFromArcGISRasters).

 

The coordinate system and cell size for each raster was checked previously by the software,

so I had no idea how to fix this problem.

 

In addition,  I use version 0.8a19.

Thanks for your kindly help!!

 

Best regards, 

Ivy

 

Archives powered by MHonArc.
Top of Page