Make NetCDF Table View (Multidimension) |
|
Release 9.2
Last modified November 9, 2006 |
![]() ![]() ![]() Print all topics in : "Tools" |
Makes a table view from a netCDF file.
Usage tips
Table views are tables stored in memory and are the same as the table view when a table is added to ArcMap.
ArcCatalog does not display these table views, but they can be used as inputs to other geoprocessing tools in the current ArcGIS session. Once ArcGIS exits, the tables in memory are removed.
Table views created in ArcCatalog cannot be used in ArcMap.
An existing table view will be overwritten if the same table view name is entered.
The number of records in the table view is the same as the number of unique values in the row dimension. If multiple dimensions are selected, the number of records is the product of the number of unique values in those dimensions.
The output table contains only one record if no row dimension is specified. The values in the fields represent the slice specified by the dimension-value pairs.
The type of field is determined by the netCDF variable and dimension type.
The first value of a non-row dimension is used to create a default table view of a multidimensional variable.
To save the table view, click the Option button and choose Export in the table or use the Copy Rows or Table To Table tools.
The calender attribute values noleap and 365_day, assigned to the time coordinate variable of the netCDF file, are not honored in ArcGIS.
The following environment settings affect this tool: workspace and scratch workspace.
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.
|
String |
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.
|
String |
# 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()