change season definition
Added by Merce Casas Prat about 9 years ago
Hello!
When using, for example, seasavg, by default seasons are defined as DJF, MAM, JJA, SON (if I'm not wrong). I was wondering how to change this criteria in order to define seasons as JFM, AMJ, JAS and OND, when using any cdo function to compute seasonal statistics.
Thanks
Merce
Replies (4)
RE: change season definition - Added by Uwe Schulzweida about 9 years ago
Yes, the first season is starting in December. You can change it to January with:
export CDO_SEASON_START=JAN
You can check it with the CDO option -v:
cdo -v seasavg ifile ofile
RE: change season definition - Added by Sanita Dhaubanjar about 7 years ago
Hi Uwe,
I am also interested in changing the default seasons, but to DJF, MAM, JJAS and ON. How can I achieve this? Please also suggest how I can set the defaults back on after I am done with this particular application.
Thanks!
Sanita
RE: change season definition - Added by Karin Meier-Fleischer about 7 years ago
Hi Sanita,
you can do it with
cdo -yearavg -select,season=ON infile seasons_ON_yearavg.nc cdo -yearavg -select,season=JJAS infile seasons_JJAS_yearavg.nc cdo -yearavg -select,season=MAM infile seasons_MAM_yearavg.nc cdo -yearavg -select,season=DJF infile seasons_DJF_yearavg.nc cdo mergetime seasons_DJF_yearavg.nc seasons_MAM_yearavg.nc seasons_JJAS_yearavg.nc seasons_ON_yearavg.nc seasons_DJF_MAM_JJAS_ON.nc
-Karin
RE: change season definition - Added by Sanita Dhaubanjar about 7 years ago
Perfect Karin! Thanks so much for the quick help.