Summary
Creates a raster object that is a subset of the input multidimensional raster based on selected variables and dimension intervals.
Discussion
Use the Subset function to extract a subgroup of variable data from a multidimensional raster object. You can use the subgroup as an input to additional functions.
The function creates a raster object that is a subgroup of the input, with dimension and variable information defined by the input parameters.
The referenced raster dataset for the raster object is temporary. To make it permanent, you can call the raster object's save method.
Syntax
Subset (in_raster, {variables}, {dimension_definitions})
Parameter | Explanation | Data Type |
in_raster | The input multidimensional raster dataset. | Raster |
variables [variables,...] | A variable name or a list of variable names to be included in the output raster. If not specified, all variables will be included. | String |
dimension_definitions | The dimension interval used to subset the multidimensional raster. This parameter is passed as a dictionary in which the key:value pairs are described as dimension_name:dimension interval. The key is the name of the dimension along which you wish to subset, and the value is the dimension interval. The dimension interval must use one of the following formats:
| Dictionary |
Data Type | Explanation |
Raster | The output subset multidimensional raster. |