Type
Data Process.
Behaviour
It performs a subsetting operation along dimensions of a datacube. Dimension values are used as input filters.
Parameters
cube: name of the input datacube. The name must be in PID format.
schedule: scheduling algorithm. The only possible value is 0, for a static linear block distribution of resources.
subset_dims: dimension names of the datacube used for the subsetting. Multiple-value field: list of dimensions separated by “|” can be provided and must be the same number of “subset_filter”.
subset_filter: enumeration of comma-separated elementary filters (1 series of filters for each dimension). Multiple-value field: list of filters separated by “|” can be provided; it must be the same number of “subset_dims”. In case “subset_type” is “index” a filter can be expressed as
Indexes are integers from 1 to the dimension size. It can be also used "end" to specify the index of the last element. Example: subset_dims=lat|lon;subset_filter=1:10|20:end.
In case “subset_type” is “coord” a filter can be expressed as
Values should be numbers. Example: subset_dims=lat|lon;subset_filter=35:45|15:20; for time dimensions the option “time_filter” can be enabled, so that the following date formats can be also used:
Time interval bounds must be separated with “_”. Refer to a season using the corresponding code: DJF for winter, MAM for spring, JJA for summer or SON for autumn.
Multiple-value field: list of filters separated by “|” can be provided and must be the same number of “subset_dims”.
subset_type : if set to “index” (default), the “subset_filter” is considered on dimension index; with “coord”, filter is considered on dimension values.
time_filter: enable filters using dates for time dimensions; enabled by default.
offset: it is added to the bounds of subset intervals defined with “subset_filter” in case of “coord” filter type is used.
grid: optional argument used to identify the grid of dimensions to be used (if the grid already exists) or the one to be created (if the grid has a new name). If it isn’t specified, no grid will be used.
container: name of the container to be used to store the output cube; by default, it is the input container.
check_grid: optional flag to be enabled in case the values of grid have to be checked (valid only if the grid already exists).
description: additional description to be associated with the output cube.
System parameters
Examples
Extract the subset of values in the range 1-10 of dimension “lat” and 20-30 of dimension “lon”:
[OPH_TERM] >> oph_subset cube=URL/1/1;subset_dims=lat|lon;subset_filter=1:10|20:30;grid=new_grid;
Argument name | Type | Mandatory | Values | Default | Min/Max-value |
---|---|---|---|---|---|
sessionid | “string” | “no” | “null” | ||
ncores | “int” | “no” | “1” | “1” / | |
nthreads | “int” | “no” | “1” | “1” / | |
exec_mode | “string” | “no” | “async|sync” | “async” | |
cube | “string” | “yes” | |||
schedule | “int” | “no” | “0” | “0” | |
subset_dims | “string” | “no” | “none” | ||
subset_type | “string” | “no” | “index|coord” | “index” | |
subset_filter | “string” | “no” | “all” | ||
time_filter | “string” | “no” | “yes|no” | “yes” | |
offset | “real” | “no” | “0” | ||
grid | “string” | “no” | “-“ | ||
container | “string” | “no” | “-“ | ||
check_grid | “string” | “no” | “yes|no” | “yes” | |
description | “string” | “no” | “-“ | ||
objkey_filter | “string” | “no” | “all|none|subset” | “all” |