Make Multidimensional Raster Layer (Multidimension)

Summary

Creates a raster layer from a multidimensional raster dataset or a multidimensional raster layer by slicing data along defined variables and dimensions.

Usage

  • This tool creates a multidimensional raster layer from a multidimensional raster or mosaic dataset by extracting a subset of variables. For example, you have a mosaic dataset that contains 30 years of monthly precipitation data, and you only want to extract data for each January to see how precipitation has changed for that month.

  • Supported multidimensional raster datasets include netCDF, GRIB, HDF, and Esri's CRF. Multidimensional mosaic datasets are also supported.

  • This tool generates a temporary layer that will not persist unless it's saved to disk.

  • Use the Dimension Definition parameter to slice dimensions using an interval, a value, or a range of values. For example, if you have 10 years of ocean salinity data, collected monthly and at every 2 meters depth up to 500 meters, you might use the different dimension definition options for the following scenarios:

    • Extract salinity data for the month of January over the 10-year period. Choose By Values, set Dimension to StdTime, and set Values to January.
    • Slice salinity data over a depth range from 0 to 150 meters. Choose By Ranges, set Dimension to StdZ, and set Minimum Value to -150 and Maximum Value to 0.
    • Extract salinity data for the first 10 days of every January over a 10-year period. Choose By Iteration, set Dimension to StdTime, set Start of first iteration and End of first iteration to the corresponding start and end of the iteration period, set Step to 1, and set Unit to Years.

  • To create a nonmultidimensional layer that contains data from a single slice of the multidimensional raster, choose By Values for the Dimension Definition parameter, select a single dimension value and check the Dimensionless parameter.

Syntax

MakeMultidimensionalRasterLayer(in_multidimensional_raster, out_multidimensional_raster_layer, {variables}, {dimension_def}, {dimension_ranges}, {dimension_values}, {dimension}, {start_of_first_iteration}, {end_of_first_iteration}, {iteration_step}, {iteration_unit}, {template}, {dimensionless})
ParameterExplanationData Type
in_multidimensional_raster

The input multidimensional raster dataset.

Supported inputs include netCDF, GRIB, HDF or CRF files, a multidimensional mosaic dataset, a multidimensional image service, an OPeNDAP URL, or a multidimensional raster layer.

Raster Dataset; Raster Layer; Mosaic Dataset; Mosaic Layer; Image Service; File
out_multidimensional_raster_layer

The output multidimensional raster layer.

Raster Layer
variables
[variables,...]
(Optional)

The variables that will be included in the output multidimensional raster layer. If no variable is specified, the first variable will be used.

String
dimension_def
(Optional)

Specifies the method that will be used to slice the dimension.

  • ALLThe full range for each dimension will be used. This is the default.
  • BY_RANGESThe dimension will be sliced using a range or a list of ranges.
  • BY_ITERATIONThe dimension will be sliced over a specified interval size.
  • BY_VALUEThe dimension will be sliced using a list of dimension values.
String
dimension_ranges
[dimension_ranges,...]
(Optional)

The range or list of ranges for the specified dimension.

This slices the data based on the dimension name and the minimum and maximum values for the range. This parameter is required when the dimension_def parameter is set to BY_RANGES.

Value Table
dimension_values
[dimension_values,...]
(Optional)

A list of values for the specified dimension. This parameter is required when the dimension_def parameter is set to BY_VALUE.

Value Table
dimension
(Optional)

The dimension along which the variables will be sliced. This parameter is required when the dimension_def parameter is set to BY_ITERATION.

String
start_of_first_iteration
(Optional)

The beginning of the first interval. This interval is used to iterate through the dataset. This parameter is required when the dimension_def parameter is set to BY_ITERATION.

String
end_of_first_iteration
(Optional)

The end of the first interval. This interval is used to iterate through the dataset. This parameter is required when the dimension_def parameter is set to BY_ITERATION.

String
iteration_step
(Optional)

The frequency with which the data will be sliced. This parameter is required when the dimension_def parameter is set to BY_ITERATION.

Double
iteration_unit
(Optional)

Specifies the iteration unit. This parameter is required when the dimension_def parameter is set to BY_ITERATION and the dimension parameter is set to StdTime.

  • HOURSHours is the specified unit of time.
  • DAYSDays is the specified unit of time.
  • WEEKSWeeks is the specified unit of time.
  • MONTHSMonths is the specified unit of time.
  • YEARSYears is the specified unit of time.
String
template
(Optional)

The extent (bounding box) of the layer. Choose the appropriate Extent option for the layer.

  • Default—Export the raster dataset using the spatial referencing specifications of the raster dataset.
  • Current Display Extent—The extent of the current display will be used.
  • As Specified Below—Enter the coordinates of the minimum bounding rectangle: type the extent for Left, Right, Top, and Bottom.
  • Browse—Use the Browse button to browse to the folder location of the feature class you want to use for Extent.
  • <Layer>—Choose one of the listed layers to use as the extent. As with the Current Display Extent option, the extent of the layer is read and stored.
Extent
dimensionless
(Optional)

Specifies whether the layer will have dimension values. This parameter is only enabled if a single slice is selected to create a layer.

  • NO_DIMENSIONS The layer will not have dimension values.
  • DIMENSIONSThe layer will have dimension values. This is the default.
Boolean

Code sample

MakeMultidimensionalRasterLayer example 1 (Python Window)

Extract a subset of variables from a multidimensional raster using the BY_RANGES method.

# Import system modules
import arcpy

# Execute
MakeMultidim = MakeMultidimensionalRasterLayer("C:\data\Ocean_Data.crf", "salinity", "BY_RANGES", "StdZ -500 -100", "120.084279939743 0.914964278021376 139.524470909773 21.1231086159414")


# Save Output
MakeMultidim.save("C:\data\Salinity_MultidimLayer.crf")
MakeMultidimensionalRasterLayer example 2 (stand-alone script)

Extract the water temperature variable from a multidimensional raster for specific depth values using the BY_VALUE method.

# Import system modules
import arcpy

# Define input parameters
in_multidimensional_raster = r"C:\data\MD_Ocean_data.crf"
out_multidimensional_raster_layer = r"C:\data\Temp_slice.crf"
variables = "water_temp"
dimension_def = "BY_VALUE"
dimension_values = "StdZ -50;StdZ -100"
template = "120.084279939743 0.914964278021376 139.524470909773 21.1231086159414"

#Execute

arcpy.md.MakeMultidimensionalRasterLayer(in_multidimensional_raster, out_multidimensional_raster_layer, variables, dimension_def, dimension_values, template)
MakeMultidimensionalRasterLayer example 3 (stand-alone script)

Extract the Salinity variable from a multidimensional raster using the BY_ITERATION method.

# Import system modules
import arcpy
 
# Set local variables
in_multidimensional_raster = r"C:\data\MD_Ocean_data.crf"
out_multidimensional_raster_layer =  r"C:\data\salinity_slice.crf"
variables = "salinity"
dimension_def = "BY_ITERATION"
dimension = "StdTime"
start_of_first_iteration = "2009-01-01"
end_of_first_iteration = "2009-01-10"
iteration_step = "1"
iteration_unit = "YEARS"
template = "120.084279939743 0.914964278021376 139.524470909773 21.1231086159414"
 
#Execute
 
arcpy.md.MakeMultidimensionalRasterLayer(in_multidimensional_raster, out_multidimensional_raster_layer, variables, dimension_def, dimension, start_of_first_iteration, end_of_first_iteration, iteration_step, iteration_unit, template)

Licensing information

  • Basic: Yes
  • Standard: Yes
  • Advanced: Yes

Related topics