Project

General

Profile

command sellonlatbox

Added by katherine rojas murillo about 12 years ago

Tengo un probloma,y necesito ayuda urgente :
Necesito seleccionar una region en bolivia y son :lat -17º55'00'' -18º15'00''
long: 68º40'00' 69º10'00'' pero cuando trato de colocarlo al comando es ter meindica qu es muy pequeño intente porner los extrmos del pixel y tampoco ,ademas cuando lo veo con infov no estan las coordenadas que puse sino otras .Por favor ayudenme talvez no coloco bien las coordenadas? Bolivia esta en el heemisferio sur.


Replies (5)

RE: command sellonlatbox - Added by Jaison-Thomas Ambadan about 12 years ago

Hi,

Would you mind translating your query in English? It may help to get a quick reply!

Cheers,
J.

RE: command sellonlatbox - Added by katherine rojas murillo about 12 years ago

I need select this coordinates : lat -17º55'00'' -18º15'00'' S
long: -68º40'00' -69º10'00'' W with the comand sellonlatbox.
but I have problems with this command because when I tried

C:\>cdo sellonlatbox,-68.4,-69.1,-17.5,-18.5  C:\CDO\SRES-A1B-Pr\run2\2046-20SouthAmerica_monmean.nc C:\CDO\SRES-A1B-Pr\run2\whit_sellolatbox_monmean.nc
cdo sellonlatbox: Processed 115200 values from 1 variable over 120 timesteps.

with sinfov:

File format: netCDF
-1 : Institut Source Name Time Typ Grid Size Num Levels Num
1 : unknown unknown pr var F32 30 1 1 1
Horizontal grids :
1 : gaussian > size : dim = 30 nlon = 30 nlat = 1
lon : first = -67.5 last = 290.625 degrees_east circular
lat : first = -17.7199993 degrees_north
available : xbounds ybounds
Vertical grids :
1 : surface : 0
Time axis : 120 steps
RefTime = 1860-01-01 00:00:00 Units = days Calendar = STANDARD
YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss

lon and lat are diferent .
how can I select those exact coordenates?
those coordenates are from Bolivia,Sajama.

please can you help me?
thanks a million

RE: command sellonlatbox - Added by Uwe Schulzweida about 12 years ago

Could you please attach your datafile? That will help us a lot to understand and solve the problem.
Try remapnn, if you want select only a single gridpoint:

cdo remapnn,lon=-68_lat=-18 ifile ofile
This command will select the nearest grid point to lon=-68/lat=-18.

RE: command sellonlatbox - Added by Jaison-Thomas Ambadan about 12 years ago

Hi Katherine,

Your input file grid-size/increment is 1.875 degree (see cdo sinfo output) BUT your "sellonlatbox" is less than the increment or grid-size: longitude box is -68.4 to -69.1 is less than 1.875, and latitude as well. so the only possible solution is as suggested by Uwe (see the above post) - remapping to nearest grid point; so if you try:

cdo remapnn,lon=-68_lat=-18 2046-2055_SouthAmerica_monmean.nc output.nc

the "remapnn" operator will remap your original data to nearest specified lon/lat pont, i.e., lon=-68 and lat=-18. You may change the lon/lat values according to your needs.

Hope this helps!

Cheers,
J.

    (1-5/5)