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

Make NetCDF Raster Layer (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 an in-memory raster layer from a netCDF file.


Usage tips

Command line syntax
An overview of the Command Line window
MakeNetCDFRasterLayer_md <in_netcdf_file> <variable> <x_dimension> <y_dimension> <out_raster_layer> {band_dimension} {dimension {value};dimension {value}...} {BY_VALUE | BY_INDEX}

Parameter Explanation Data Type
<in_netcdf_file>

The input netCDF file.

File
<variable>

The variable of the netCDF file used to assign cell values to the output raster. This is the variable that will be displayed, such as temperature or rainfall.

String
<x_dimension>

A netCDF dimension used to define the x, or longitude coordinates of the output layer.

String
<y_dimension>

A netCDF dimension used to define the y, or latitude coordinates of the output layer.

String
<out_raster_layer>

The name of the output raster layer.

Raster Layer
{band_dimension}

A netCDF dimension used to create bands in the output raster. Set this dimension if a multiband raster layer is required. For instance, altitude might be set as the band dimension to create a multiband raster where each band represents temperature at that altitude.

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

The value (such as 01/30/05) of the dimension (such as Time) or dimensions to use when displaying the variable in the output layer. By default, the first value of the dimension or dimensions will be used. This default value can also be altered on the netCDF tab of the Layer Properties dialog box.

(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

MakeNetCDFRasterLayer C:\Data\vemap.nc pptx lon lat pptx_Layer # "time '1900-12-31 00:00:0'"

Scripting syntax
About getting started with writing geoprocessing scripts
MakeNetCDFRasterLayer_md (in_netcdf_file, variable, x_dimension, y_dimension, out_raster_layer, band_dimension, dimension_values, value_selection_method)

Parameter Explanation Data Type
in_netcdf_file (Required)

The input netCDF file.

File
variable (Required)

The variable of the netCDF file used to assign cell values to the output raster. This is the variable that will be displayed, such as temperature or rainfall.

String
x_dimension (Required)

A netCDF dimension used to define the x, or longitude coordinates of the output layer.

String
y_dimension (Required)

A netCDF dimension used to define the y, or latitude coordinates of the output layer.

String
out_raster_layer (Required)

The name of the output raster layer.

Raster Layer
band_dimension (Optional)

A netCDF dimension used to create bands in the output raster. Set this dimension if a multiband raster layer is required. For instance, altitude might be set as the band dimension to create a multiband raster where each band represents temperature at that altitude.

String
dimension_values (Optional)

The value (such as 01/30/05) of the dimension (such as Time) or dimensions to use when displaying the variable in the output layer. By default, the first value of the dimension or dimensions will be used. This default value can also be altered on the netCDF tab of the Layer Properties dialog box.

(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

# MakeNetCDFRasterLayer.py
# Description: Create a raster layer 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/vemap.nc"
    InVariable = "pptx"
    InXDimension = "lon"
    InYDimension = "lat"
    OutRasterLayer = "pptx_Layer"

    # Process: MakeNetCDFRasterLayer
    gp.MakeNetCDFRasterLayer(InNetCDFFile, InVariable, InXDimension, InYDimension, OutRasterLayer)

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.