This operator is DEPRECATED since v1.1. Use OPH_SUBSET instead.



Data Process.


It performs a subsetting operation along dimensions of a datacube. Dimension values are used as input filters.


  • 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):

    • value: select a specific value;
    • start_value:stop_value: select elements from start_value to stop_value; return an error if this set is empty. 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:
    • yyyy
    • yyyy-mm
    • yyyy-mm-dd
    • yyyy-mm-dd hh
    • yyyy-mm-dd hh:mm
    • yyyy-mm-dd hh:mm:ss

    In this case, interval bounds must be separated with “_”. Multiple-value field: list of filters separated by “|” can be provided and must be the same number of “subset_dims”.

  • 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

  • exec_mode: operator execution mode. Possible values are async (default) for asynchronous mode, sync for synchronous mode with json-compliant output.
  • ncores: number of parallel processes to be used (min. 1).
  • sessionid: session identifier used server-side to manage sessions and jobs. Usually, users don’t need to use/modify it, except when it is necessary to create a new session or switch to another one.
  • objkey_filter: filter on the output of the operator written to file (default=all => no filter, none => no output, subset2 => shows operator’s output PID as text).


Extract the subset of values in the range 1-10 of dimension “lat” and 20-30 of dimension “lon”:

[OPH_TERM] >>  oph_subset2 cube=http://hostname/ophidia/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” /
exec_mode “string” “no” “async|sync” “async”  
cube “string” “yes”      
schedule “int” “no” “0” “0”  
subset_dims “string” “no”   “none”  
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|subset2” “all”