Subject: Marine Geospatial Ecology Tools (MGET) help
Text archives
From: | Andrew Gilbert <> |
---|---|
To: | "" <> |
Cc: | Rich Wawrzonek <> |
Subject: | [mget-help] Parameter Error for GHRSSTLevel4CreateArcGISRasters |
Date: | Wed, 20 Aug 2014 19:34:58 +0000 |
Accept-language: | en-US |
Deferred-delivery: | Wed, 20 Aug 2014 19:34:00 +0000 |
Hi there. I’m trying to run the GHRSSTLevel4CreateArcGISRasters tool through a command line like so: cmd.exe /C ""C:\Program Files\GeoEco\ArcGISToolbox\Scripts\GHRSSTLevel4CreateArcGISRasters.py" JPL_OUROCEAN-L4UHfnd-GLOB-G1SST analysed_sst C:\SST Add %%Y;sst%%Y%%j.img # # "-179 68 -130 72" 8/19/2014 8/19/2014
60 300 # true false true false false" I get this error: ERROR ValueError: Invalid parameters. This tool expected to receive 19 parameters but it received 18. Please review the documentation for this tool to determine the correct parameters. If you are invoking this
script from outside of ArcGIS, use a single # character to indicate that a parameter has no value. According to the documentation I found here, the tool only takes 18 parameters: I have found that adding a # symbol at the end seems to make the tool succeed with the correct name, extent, and date: cmd.exe /C ""C:\Program Files\GeoEco\ArcGISToolbox\Scripts\GHRSSTLevel4CreateArcGISRasters.py" JPL_OUROCEAN-L4UHfnd-GLOB-G1SST analysed_sst C:\SST Add %%Y;sst%%Y%%j.img # # "-179 68 -130 72" 8/19/2014 8/19/2014
60 300 # true false true false false #" I’m not sure that’s the right solution, though. Can you offer any insight on the error? Ultimately I’m running the tool from a C# application--is there a cleaner way to be running the tool? Thanks! Andrew Gilbert |