sellonlatbox¶
Synopsis¶
xcdo -sellonlatbox,wlon,elon,slat,nlat input output
Description¶
Select a region using the longitude and latitude bounds.
Selects a region using the longitude and latitude bounds. If the input data is in [-180, 180] format, and is asked to select the region from 0 to 360, it will take care of the wrapping and vice versa.
The longitude should be in the range of [-180, 180] or [0, 360]. The latitude should be in the range of [-90, 90]. The western longitude should be smaller than the eastern longitude. The southern latitude should be smaller than the northern latitude.
Positional Arguments¶
| Name | Type | Required | Description |
|---|---|---|---|
wlon |
FLOAT | Required | Western longitude |
elon |
FLOAT | Required | Eastern longitude |
slat |
FLOAT | Required | Southern latitude |
nlat |
FLOAT | Required | Northern latitude |
Examples¶
xcdo -sellonlatbox,-10,50,-50,60 infile.nc outfile.nc