The function sellonlatbox
subsets the data in space within a bounding box.
sellonlatbox(x, y)# S4 method for Raster
sellonlatbox(x, y)
# S4 method for data.table
sellonlatbox(x, y)
# S4 method for character
sellonlatbox(x, y)
Raster* object; data.table
Raster* object; data.table (see details); filename (character, see details)
numeric. Bounding box in the form: (xmin, xmax, ymin, ymax)
If `x` is a data.table, its columns should be named: "lon", "lat", "date", and "value"
If `x` is a filename, it should point to a *.nc file.