Subject: Marine Geospatial Ecology Tools (MGET) help
Text archives
From: | "Matt Love" <> |
---|---|
To: | <> |
Subject: | [mget-help] Help with MGET HDF to Raster "Output Raster Name Options" |
Date: | Fri, 6 Jan 2012 15:27:46 -0500 |
Hi I’m converting HDF files to ESRI Grids using the Find HDFs and Convert SDS To ArcGIS Rasters tool.
Could anyone provide guidance on what parameters of the _expression_ below need
to be changed to enable unique names for each raster output? I’m getting
the error below that the same name is being used for multiple outputs and I
have not figured out how to change the _expression_ to prevent this Many thanks Matt Default _expression_ os.path.join(outputWorkspace,
os.path.dirname(inputFile[len(directoryToSearch)+1:]), os.path.basename(inputFile).split(u'.')[0][:13]) ValueError: The same output
C:\Files\GIS\Data\Biology_and_Ecology\Primary_Productivity\Rasters is specified
for two different inputs: C:\Files\GIS\Data\Biology_and_Ecology\Primary_Productivity\HDF_format\vgpm.2002182.hdf.gz
and
C:\Files\GIS\Data\Biology_and_Ecology\Primary_Productivity\HDF_format\vgpm.2002213.hdf.gz
(elements #0 and #0 of inputFileList, where 0 is the first element). This is
not allowed because when the second input was processed, it would overwrite the
output of the first one. This problem usually occurs when the outputs are paths
or names calculated by a Python _expression_ that produces the same result for
two different inputs. If you received this error message after invoking a tool
or function that calculates outputs using Python expressions, you must adjust
the expressions. The default expressions are usually sufficient for a variety
of situations but they may not be suited to your inputs. <type
'exceptions.ValueError'>: The same output
C:\Files\GIS\Data\Biology_and_Ecology\Primary_Productivity\Rasters is specified
for two different inputs:
C:\Files\GIS\Data\Biology_and_Ecology\Primary_Productivity\HDF_format\vgpm.2002182.hdf.gz
and C:\Files\GIS\Data\Biology_and_Ecology\Primary_Productivity\HDF_format\vgpm.2002213.hdf.gz
(elements #0 and #0 of inputFileList, where 0 is the first element). This is
not allowed because when the second input was processed, it would overwrite the
output of the first one. This problem usually occurs when the outputs are paths
or names calculated by a Python _expression_ that produces the same result for
two different inputs. If you received this error message after invoking a tool
or function that calculates outputs using
|