Table To NetCDF (Multidimension) |
|
Release 9.2
Last modified November 9, 2006 |
![]() ![]() ![]() Print all topics in : "Tools" |
Converts a table to a netCDF file.
Usage tips
The default variable name is the same as the field name specified in the field_to_variable parameter.
The type of variable is the same as the type of field.
The default dimension name is the same as the field name specified in the field_to_dimension parameter.
The size of a dimension equals the number of unique values in the respective field.
If no field is specified as dimension, then a dimension named RecordID is created in the output netCDF file.
The following environment settings affect this tool: workspace and scratch workspace.
Command line syntax
An overview of the Command Line window
TableToNetCDF_md <in_table> <field {variable} {units};field {variable} {units}...> <out_netCDF_file> {field {dimension} {units};field {dimension} {units}...}
Parameter | Explanation | Data Type |
<in_table> |
The input table. |
Table View |
<field {variable} {units};field {variable} {units}...> |
The field or fields used to create variables in the netCDF file.
|
(String String String; String String String;...) |
<out_netCDF_file> |
The output netCDF file. The filename must have a .nc extension. |
File |
{field {dimension} {units};field {dimension} {units}...} |
The field or fields used to create dimensions in the netCDF file.
|
(String String String; String String String;...) |
TableToNetCDF C:\Data\Hydro.dbf "WL WaterLevel meter; Q Discharge" D:\Data\HydroFile.nc "StationID"
Scripting syntax
About getting started with writing geoprocessing scripts
TableToNetCDF_md (in_table, fields_to_variables, out_netCDF_file, fields_to_dimensions)
Parameter | Explanation | Data Type |
in_table (Required) |
The input table. |
Table View |
fields_to_variables (Required) |
The field or fields used to create variables in the netCDF file.
|
(String String String; String String String;...) |
out_netCDF_file (Required) |
The output netCDF file. The filename must have a .nc extension. |
File |
fields_to_dimensions (Optional) |
The field or fields used to create dimensions in the netCDF file.
|
(String String String; String String String;...) |
# TableToNetCDF.py # Description: Converts a table to a netCDF file. # Requirements: None # Author: ESRI # Create the Geoprocessor object import arcgisscripting, sys, string, os gp = arcgisscripting.create() try: # Set local variables InTable = "D:/NetCDFSupport/NetCDFScriptSamples/Data/ Hydro.dbf" InFieldToVariable = "WL WaterLevel meter; Q Discharge" OutNetCDFFile = "D:/NetCDFSupport/NetCDFScriptSamples/Data/HydroFile.nc" InFieldToDimension = "StationID" # Process: RasterToNetCDF gp. RasterToNetCDF (InTable, InFieldToVariable, OutNetCDFFile, InFieldToDimension) except: # Print error message if an error occurs print gp.GetMessages