Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Multidimensional toolbox > Tools

Table To NetCDF (Multidimension)

Release 9.2
Last modified November 9, 2006
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

Converts a table to a netCDF file.


Usage tips

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.

  • Field — A field in the input table.
  • {Variable} — The netCDF variable name.
  • {Units} — The units of the data represented by the field.

(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.

  • Field — A field in the input table.
  • { Dimension } — The netCDF dimension name.
  • {Units} — The units of the data represented by the field.

(String String String; String String String;...)
Data types for geoprocessing tool parameters


Command line example

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.

  • Field — A field in the input table.
  • {Variable} — The netCDF variable name.
  • {Units} — The units of the data represented by the field.

(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.

  • Field — A field in the input table.
  • { Dimension } — The netCDF dimension name.
  • {Units} — The units of the data represented by the field.

(String String String; String String String;...)

Data types for geoprocessing tool parameters


Script example

# 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

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.