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

Make NetCDF Table View (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

Makes a table view from a netCDF file.


Usage tips

Command line syntax
An overview of the Command Line window
MakeNetCDFTableView_md <in_netcdf_file> <variable;variable...> <out_table_view> {row_dimension;row_dimension...} {dimension {value};dimension {value}...} {BY_VALUE | BY_INDEX}

Parameter Explanation Data Type
<in_netcdf_file>

The input netCDF file.

File
<variable;variable...>

The netCDF variable, or variables used to create fields in the table view.

String
<out_table_view>

The name of the output table view.

Table View
{row_dimension;row_dimension...}

The netCDF dimension, or dimensions, used to create fields populated with unique values in the table view. The dimension, or dimensions, set here determine the number of rows in the table view and the fields that will be present.

For instance, if stationID is a dimension in the netCDF file and has 10 values, by setting stationID as the dimension to use, 10 rows will be created in the table view. If stationID and time are used and there are 3 time slices, 30 rows will be created in the table view.

String
{dimension {value};dimension {value}...}

A set of dimension-value pairs used to specify a slice of a multidimensional variable.

(String String; String String;...)
{BY_VALUE | BY_INDEX}

Specifies the dimension value selection method.

  • BY_VALUE — The input value is matched with the actual dimension value. -BY_INDEX — The input value is matched with the position or index of a dimension value. The index is 0 based, that is, the position starts at 0.

String
Data types for geoprocessing tool parameters


Command line example

MakeNetCDFTableView C:\Data\River.nc "Waterlevel; Discharge" river_view time "StationId 123"

Scripting syntax
About getting started with writing geoprocessing scripts
MakeNetCDFTableView_md (in_netcdf_file, variable, out_table_view, row_dimension, dimension_values, value_selection_method)

Parameter Explanation Data Type
in_netcdf_file (Required)

The input netCDF file.

File
variable (Required)

The netCDF variable, or variables used to create fields in the table view.

String
out_table_view (Required)

The name of the output table view.

Table View
row_dimension (Optional)

The netCDF dimension, or dimensions, used to create fields populated with unique values in the table view. The dimension, or dimensions, set here determine the number of rows in the table view and the fields that will be present.

For instance, if stationID is a dimension in the netCDF file and has 10 values, by setting stationID as the dimension to use, 10 rows will be created in the table view. If stationID and time are used and there are 3 time slices, 30 rows will be created in the table view.

String
dimension_values (Optional)

A set of dimension-value pairs used to specify a slice of a multidimensional variable.

(String String; String String;...)
value_selection_method (Optional)

Specifies the dimension value selection method.

  • BY_VALUE — The input value is matched with the actual dimension value. -BY_INDEX — The input value is matched with the position or index of a dimension value. The index is 0 based, that is, the position starts at 0.

String

Data types for geoprocessing tool parameters


Script example

# MakeNetCDFTableView.py
# Description: Create a table view from a netCDF file.
# Requirements: None
# Author: ESRI

# Create the Geoprocessor object
import arcgisscripting, sys, string, os
gp = arcgisscripting.create()

try:
    # Set local variables
    InNetCDFFile = "D:/NetCDFSupport/NetCDFScriptSamples/Data/River.nc"
    InVariables = "Waterlevel; Discharge"
    OutTableView = "river_view"
    InRowDimensions = "time"
    InDefaultValues = "StationId 123"

    # Process: MakeNetCDFTableView
    gp.MakeNetCDFTableView (InNetCDFFile, InVariables, OutTableView, InRowDimensions, InDefaultValues)

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.