0

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.

ClimateUnboxed
  • 7,106
  • 3
  • 41
  • 86
Santosh
  • 1
  • 3

1 Answers1

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