Selects grid cells inside a lon/lat or index box.
cdo_selindexbox(
ifile,
lon1 = NULL,
lon2 = NULL,
lat1 = NULL,
lat2 = NULL,
idx1 = NULL,
idx2 = NULL,
idy1 = NULL,
idy2 = NULL,
ofile = NULL
)cdo_sellonlatbox(
ifile,
lon1 = NULL,
lon2 = NULL,
lat1 = NULL,
lat2 = NULL,
idx1 = NULL,
idx2 = NULL,
idy1 = NULL,
idy2 = NULL,
ofile = NULL
)
Operators that output one or more files return a character vector to the output files.
Operators that output an indefinite number of files return a string with the basename of the files.
Operatos that don't return filenames return a character vector with the string output.
String with the path to the input file.
FLOAT - Western longitude in degrees
FLOAT - Eastern longitude in degrees
FLOAT - Southern or northern latitude in degrees
FLOAT - Northern or southern latitude in degrees
INTEGER - Index of first longitude (1 - nlon)
INTEGER - Index of last longitude (1 - nlon)
INTEGER - Index of first latitude (1 - nlat)
INTEGER - Index of last latitude (1 - nlat)
String with the path to the output file.
sellonlatbox Select a longitude/latitude box
Selects grid cells inside a lon/lat box. The user must specify the longitude and latitude of the edges of the box.
Only those grid cells are considered whose grid center lies within the lon/lat box.
For rotated lon/lat grids the parameters must be specified in rotated coordinates.
selindexbox Select an index box
Selects grid cells within an index box. The user must specify the indices of the edges of the box.
The index of the left edge can be greater then the one of the right edge. Use negative indexing to
start from the end. The input grid must be a regular lon/lat or a 2D curvilinear grid.