Skip to contents

Selects grid cells inside a lon/lat or index box.

Usage

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
)

Arguments

ifile

String with the path to the input file.

lon1

FLOAT - Western longitude in degrees

lon2

FLOAT - Eastern longitude in degrees

lat1

FLOAT - Southern or northern latitude in degrees

lat2

FLOAT - Northern or southern latitude in degrees

idx1

INTEGER - Index of first longitude (1 - nlon)

idx2

INTEGER - Index of last longitude (1 - nlon)

idy1

INTEGER - Index of first latitude (1 - nlat)

idy2

INTEGER - Index of last latitude (1 - nlat)

ofile

String with the path to the output file.

Details

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.