Project

General

Profile

sellonlatbox (Warning): No variables selected!

Added by selam haftu over 3 years ago

Hello
i used this loop: for i in $(ls); do cdo outputtab,date,value -fldmean -sellonlatbox,37.83,40.51,7.35,9.99 -remapbil,2.5_2.5.txt -eca_cdd -selyear,2031/2060 -mulc,2592000 -del29feb -sellonlatbox,0,90,0,90 ${i} > output/${i}_CDD.txt; done to make some analysis and it worked perfectly. however if i used it on another location i got this error on sellonlatbox as shown on the screen shot. the location of the study area is 37.83,40.51,7.35,9.99. attached is also the GCM model used and the .txt file for the remapbil analysis. why i am getting this error on this study area 37.83,40.51,7.35,9.99? and the CDO version is 1.9.4rc1.
thank you.


Replies (2)

RE: sellonlatbox (Warning): No variables selected! - Added by selam haftu over 3 years ago

Dear CDO Forum, any reply please? am eagerly waiting your answer.

RE: sellonlatbox (Warning): No variables selected! - Added by Ralf Mueller over 3 years ago

hi Selam!

I suppose you pr_day_CanESM5_2030-2060.nc is your input file for the call

cdo outputtab,date,value -fldmean -sellonlatbox,37.83,40.51,7.35,9.99 -remapbil,2.5_2.5.txt -eca_cdd -selyear,2031/2060 -mulc,2592000 -del29feb -sellonlatbox,0,90,0,90 ${i}
It's not really visible in your post, but under that condition it catches my eye, that you do a remapping between two sellonlatbox calls. This remapping interpolates all inputs into a single point grid

$ cat 2.5_2.5.txt 
gridtype  = lonlat
gridsize  = 1
xsize     = 1
ysize     = 1
xname     = lon
xlongname = "longitude" 
xunits    = "degrees_east" 
yname     = lat
ylongname = "latitude" 
yunits    = "degrees_north" 
xfirst     = 40
xinc       =2.5
yfirst     = 8.75
yinc       =2.5

Any sellonlatbox after this remapping (which means left of remapbil) can only for on that single point. So the left-most sellonlatbox call does essentially nothing.

My guess is, that you should skip the remapbil. If you know your region of interest from the start, then you might select (or remap to) that region with the first operation.

Hm, I am not sure, but in case you don't know: operators are applied on the input file from right to left. So maybe you already intended to do the right thing.

hth
ralf

    (1-2/2)