I have a file, clip_pr_day_GFDL-ESM2M_historical_r1i1p1_19810101-19851231.nc. It has 5 years data from 1981-1985. I want to split it into yearly data. I need 5 files rather than 1 single file. I am beginner at R and have installed cdo 1.6.4. Could you please send me an script for this using CDO in R? Thank you.
Asked
Active
Viewed 541 times
0
-
What is cdo? Could you expand on it? What does the file look like? Why would you do this in R rather than at the source? – Rohit Jun 20 '18 at 07:51
-
It's Climate data operators. https://code.mpimet.mpg.de/projects/cdo/ – Santosh Jun 20 '18 at 08:16
-
"cdo splityear infile" splits into yearly data. – Santosh Jul 03 '18 at 08:18
1 Answers
0
the CDO command is
cdo splityear in.nc out.nc
you can also call this from R using sys

ClimateUnboxed
- 7,106
- 3
- 41
- 86