Skip to Content.

mget-help - [mget-help] Failure in the Density Histogram for field tool

Please Wait...

Subject: Marine Geospatial Ecology Tools (MGET) help

Text archives


[mget-help] Failure in the Density Histogram for field tool


Chronological Thread 
  • From: Victoria Gonzalez Carman <>
  • To:
  • Subject: [mget-help] Failure in the Density Histogram for field tool
  • Date: Thu, 18 May 2017 11:51:10 -0300
  • Authentication-results: oit.duke.edu; spf=pass

Hello, 

I would like to create density distribution plots for a given environmental variable to compare values of the variable in different locations (presence/absence locations). The point shapefile I am using has the following columns: LON, LAT, Category (0 or 1), Chlorophyll
Everything has the format it should have. However, I received the following error which I do not understand:

Executing: RExploratoryPlotsDensityHistogramForArcGISField RW_SW_oct 0_5_chl_10 # category # # # 1000 3000 3000 10 white
Start Time: Thu May 18 11:46:10 2017
Running script RExploratoryPlotsDensityHistogramForArcGISField...
Querying ArcGIS table "RW_SW_oct".
Finished retrieving points: 0:00:00 elapsed, 1414 points retrieved, 0:00:00.000331 per point.
RPy_RException: Error in (function (file = "", n = NULL, text = NULL, prompt = "?", keep.source = getOption("keep.source"),  : 
  <text>:1:28: unexpected input
1: tmp219857265 = data.frame(0_
                               ^
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.
Failed script RExploratoryPlotsDensityHistogramForArcGISField...

Traceback (most recent call last):
  File "C:\Program Files\GeoEco\ArcGISToolbox\Scripts\RExploratoryPlotsDensityHistogramForArcGISField.py", line 5, in <module>
    ExecuteMethodFromCommandLineAsArcGISTool('GeoEco.Statistics.Exploratory', 'RExploratoryPlots', 'DensityHistogramForArcGISField')
  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\Exploratory.py", line 123, in DensityHistogramForArcGISField
    R.LoadDataFrameFromArcGISTable(table, dataFrameName, where=where, fields=[densityField, categoryField])
  File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\R.py", line 290, in LoadDataFrameFromArcGISTable
    r('%s = data.frame(%s, stringsAsFactors=%s)' % (dataFrameName, ', '.join(map(lambda f: '%s=%s[["%s"]]' % (f, tempName, f), fields)), str(stringsAsFactors).upper()))
  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 (function (file = "", n = NULL, text = NULL, prompt = "?", keep.source = getOption("keep.source"),  : 
  <text>:1:28: unexpected input
1: tmp219857265 = data.frame(0_
                               ^


Failed to execute (RExploratoryPlotsDensityHistogramForArcGISField).
Failed at Thu May 18 11:46:11 2017 (Elapsed Time: 0,67 seconds)


I am using ArcGis 10.3.

Many thanks in advance for your help

Best
Victoria



--
************************************************************
Dra. Victoria González Carman
Instituto de Investigaciones Marinas y Costeras (IIMyC - CONICET)
Proyecto Ecología pesquera - INIDEP
Aquamarina- PRICTMA
Mar del Plata, Argentina. 
http://www.ecologiapesquera.com.ar
Skype: vgcarman
************************************************************



Archive powered by MHonArc 2.6.19.

Top of Page