0

I have a netCDF file that looks like the following:

1 variables (excluding dimension variables):
        double BOD_concentration[lon,lat,time]   (Chunking: [1,2160,1])  
            units: mg/l
            _FillValue: -9999
            long_name: Monthly BOD concentration

     3 dimensions:
        lon  Size:4320   *** is unlimited *** 
            units: degrees_east
            long_name: lon
            axis: X
        lat  Size:2160 
            units: degrees_north
            long_name: lat
            axis: Y
        time  Size:336   *** is unlimited *** 
            units: month since 1990-01-01 00:00:00
            long_name: time
            axis: T

The netCDF file contains data from 1990-01-01 to 2017-12-31. I want to create separate netCDF files for each year from 1990 to 2017 and save these files. How can I do that?

zx8754
  • 52,746
  • 12
  • 114
  • 209
Rifly
  • 33
  • 1
  • 8
  • Can you use `cdo`? Latter has an operator "splityear", which should do the task. You can also combine cdo and R. For example https://stackoverflow.com/questions/37910749/is-it-possible-to-run-cdo-within-a-r-script or use the wrapper https://code.mpimet.mpg.de/boards/2/topics/7850 . – msi_gerva Nov 09 '22 at 18:01

0 Answers0