Subject: Marine Geospatial Ecology Tools (MGET) help
Text archives
[mget-help] Error with Predict Random Forest from Rasters: could not find function "open.SpatialGDAL"
Chronological Thread
- From: <>
- To:
- Subject: [mget-help] Error with Predict Random Forest from Rasters: could not find function "open.SpatialGDAL"
Hi,
When running the Predict Random Forest From Rasters tool I get the following
error message:
Traceback (most recent call last):
File "C:\Program Files\GeoEco\ArcGISToolbox\Scripts
\RandomForestModelPredictFromArcGISRasters.py", line 5, in <module>
ExecuteMethodFromCommandLineAsArcGISTool('GeoEco.Statistics.Modeling',
'RandomForestModel', 'PredictFromArcGISRasters')
File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\ArcGISScripts.py",
line 210, in ExecuteMethodFromCommandLineAsArcGISTool
exec sourceCode in globals(), locals()
File "<string>", line 1, in <module>
File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\Statistics
\Modeling.py", line 776, in PredictFromArcGISRasters
_PredictFromArcGISRasters('randomForest', _(u'Fit Random Forest Model'),
inputModelFile, outputResponseRaster, cutoff, constantPredictors,
predictorRasters, templateRaster, ignoreOutOfRangeValues, None, buildPyramids,
overwriteExisting)
File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\Statistics
\Modeling.py", line 1702, in _PredictFromArcGISRasters
r('PredictModelForArcGISRasters(model, modelMetadata,
rastersForPredictors, constantsForPredictors, "%s", ignoreOutOfRangeValues=%s,
cutoff=%s)' % (tempResponseFile.replace('\\', '\\\\'),
str(ignoreOutOfRangeValues).upper(), cutoff))
File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\R.py", line 1084, in
__call__
value = self._Object(str(statements))
File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\AssimilatedModules\rpy
\rpy.py", line 339, in __call__
return self.eval(self.parse(text=s))
RPy_RException: Error in PredictModelForArcGISRasters(model, modelMetadata,
rastersForPredictors, :
could not find function "open.SpatialGDAL"
Tried running directly from ArcCatalog and received the same error.
Huge thanks in advance,
Marc
- [mget-help] Error with Predict Random Forest from Rasters: could not find function "open.SpatialGDAL", marcn1987, 11/07/2016
- RE: [mget-help] Error with Predict Random Forest from Rasters: could not find function "open.SpatialGDAL", Jason Roberts, 11/07/2016
Archive powered by MHonArc 2.6.19.