~1 min read

Categories

  1. NetCDF file compression
    ncks -L 2 in.nc out.nc    # 2 is the compression ratio, could be 2-9
    
  2. Split file by dimension (e.g. time, lat, lon)
    ncks -d time,0,30 in.nc out.nc
    ncks -F -d time,1,31 in.nc out.nc  #equivalent
    
  3. Merge time using NCO
    ncks --mk_rec_dmn time in.nc out.nc
    ncrcat *.nc out.nc