Subject: Marine Geospatial Ecology Tools (MGET) help
Text archives
- From: Joseph McGlinchy <>
- To: "" <>
- Subject: [mget-help] using MGET in arcgis python with ImportToolbox
- Date: Mon, 7 Nov 2016 20:35:23 +0000
- Accept-language: en-US
Hello,
First, I’d like to thank you for providing this toolbox. I’m excited to use it!
I am trying to run a series of calls to the model fitting tools, and as such would like to import the toolbox within the arcpy environment. I’m trying to import the toolbox with arcpy.ImportToolbox(<path to MGET toolbox .tbx file>) and I get the following error. Is it possible to import this toolbox within the context of a python script using other arcpy functionality?
Thanks! Joe
arcpy.ImportToolbox(mget_path) Runtime error Traceback (most recent call last): File "<string>", line 1, in <module> File "c:\program files (x86)\arcgis\desktop10.4\arcpy\arcpy\__init__.py", line 125, in ImportToolbox return import_toolbox(input_file, module_name) File "c:\program files (x86)\arcgis\desktop10.4\arcpy\arcpy\toolbox_code.py", line 440, in import_toolbox mymodule = generate_toolbox_module(toolbox, None, False, False, False, module_name, use_alt_alias) File "c:\program files (x86)\arcgis\desktop10.4\arcpy\arcpy\toolbox_code.py", line 414, in generate_toolbox_module 'exec') File "C:\Program Files\GeoEco\ArcGISToolbox\Marine Geospatial Ecology Tools.tbx", line 41319 """CoastWatchAVHRRCopyNavigationOffsets_GeoEco(sourceFile, sourceVariable, destFile, {destVariables;destVariables...})
Copies the navigation offsets from one variable in a CoastWatch POES AVHRR CWF or HDF file to one or more variables in another file.The navigation offsets are the e and f coefficients of the navigation affine attribute of each variable (the HDF nav_affine attribute). Prior to setting the navigation offsets in the destination file, the entire navigation affine is reset by invoking the cwnavigate utility with the -R option.
INPUTS: sourceFile (File): CoastWatch POES AVHRR CWF or HDF file containing the variable from which the navigation offsets should be copied.Only CoastWatch POES AVHRR files are supported. An error will be raised for other CoastWatch files, such as those for the GOES satellite series. sourceVariable (String): CoastWatch variable in the source file from which navigation offsets should be copied. destFile (File): CoastWatch POES AVHRR CWF or HDF file containing the variables to which the navigation offsets should be applied. This file can be the same as the source file.Only CoastWatch POES AVHRR files are supported. An error will be raised for other CoastWatch files, such as those for the GOES satellite series. destVariables {String}: CoastWatch variables in the destination file to which the navigation offsets should be applied. In general, navigation offsets should only be applied to variables that are derived from sensor data. At the time of this writing, the variables derived from sensor data included:avhrr_ch1 avhrr_ch2 avhrr_ch3 avhrr_ch3a avhrr_ch4 avhrr_ch5 cloud cloudx sstPeter Hollemans, one of the lead CoastWatch researchers at NOAA, suggested that navigation offsets should not be applied to the graphics, rel_azimuth, sat_zenith, and sun_zenith variables. With respect to the last three, he said:"I've thought about it for a while and my inclination is to say don't correct the angle data. It's not a perfect solution -- ie: if we knew the satellite's position and orientation perfectly and recomputed the angle data, we would find very small discrepancies compared with the navigation-corrected version.""""
^ SyntaxError: EOL while scanning string literal ---------------------------------------------------------------------- Joe McGlinchy | Imagery Scientist Esri Professional Services ESRI || 1 International Court || Broomfield, CO 80021 || USA T 909-793-2853, ext. 4783 LinkedIn
|
- [mget-help] using MGET in arcgis python with ImportToolbox, Joseph McGlinchy, 11/07/2016
- RE: [mget-help] using MGET in arcgis python with ImportToolbox, Jason Roberts, 11/07/2016
- RE: [mget-help] using MGET in arcgis python with ImportToolbox, Joseph McGlinchy, 11/07/2016
- RE: [mget-help] using MGET in arcgis python with ImportToolbox, Joseph McGlinchy, 11/07/2016
- RE: [mget-help] using MGET in arcgis python with ImportToolbox, Jason Roberts, 11/07/2016
Archive powered by MHonArc 2.6.19.