delete date from nc file

H Rahaman
2013-08-20
2013-10-17
  • H  Rahaman
    H Rahaman
    2013-08-20

    Hi,
         I have a nc file with julian calendar. I want to delete the leap years date from it to make calendar \"NOLEAP\". Can anybody help how to delete 29 February date from the ncfile ?
    regards
    rahman

     
  • henry Butowsky
    henry Butowsky
    2013-08-21

    HI there,
    it would be useful if you post the type of your time dimension
    ..hmb

     
  • Charlie Zender
    Charlie Zender
    2013-08-25

    Hi Rahman,
    Generally you delete specific dates by copying all the dates you are not deleting to a separate file.
    This looks like
    ncks -d time,0,58 -d time,60, in.nc out.nc
    As Henry suggests, the details depend on the exact units used for your time dimension.
    http://nco.sf.net/nco.html#hyp
    cz