You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

module load cdo

  • To convert to regular lat/lon
    cdo -R remapcon,r1600x800 -setgridtype,regular h14_2019053000.grib h14_2019053000_r.grib
  • Then convert the file from grib to netcdf:

cdo -f nc copy h14_2019053000_r.grib h14_2019053000.nc

  • Then extract the Italian domain from the global netcdf file (lon0=5, lon1=19, lat0=36, lat1=48):

cdo -sellonlatbox,5,19,36,48 h14_2019053000.nc h14_2019053000_Italy.nc

#Note that the size of the file is vastly reduced (h14_2019053000.nc ~ 25 mb, h14_2019053000_Italy.nc ~ 70 kb)!


  • No labels