Skip to Content.

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

Please Wait...

Subject: Marine Geospatial Ecology Tools (MGET) help

Text archives


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


Chronological Thread 
  • From: Jason Roberts <>
  • To: Victoria Gonzalez Carman <>
  • Cc: "" <>
  • Subject: RE: [mget-help] Failure in the Density Histogram for field tool
  • Date: Fri, 19 May 2017 17:31:55 +0000
  • Accept-language: en-US
  • Authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=duke.edu;
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Hi Victoria,

 

My initial guess is that there is a bug in the tool. The underlying error, “unexpected input” from the R interpreter, suggests there is a syntax error in the code that MGET is asking R to execute. That is odd, but I have not tested this tool in a while and do not have an automated test for it, so perhaps I did something that introduced a bug.

 

Would it be possible for you to privately share your data so that I could try it out? I would try to recreate the exact scenario you are seeing.

 

Best,

Jason

 

From: [mailto:] On Behalf Of Victoria Gonzalez Carman
Sent: Thursday, May 18, 2017 10:51 AM
To:
Subject: [mget-help] Failure in the Density Histogram for field tool

 

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