Format: netCDF
Terms and conditions of use
We have no responsibility or liability for any unintended consequences or damages that the use of the following scripts/information may cause. Please use them at your own risk.
netCDF
NCO
NCO stands for netCDF Operator.
CDO
CDO stands for Climate Data Operator developed by Max Planck Institute in Germany.
- MPI CDO
- To reset calendar (360-day and 365-day) so that the netCDF file can be read by Grads:
cdo setcalendar,standard [input.nc] [output.nc]
- To interpolate data onto T42 grid:
cdo remapbil,t42grid [input.nc] [output.nc]
- To interpolate data onto 1degx1deg grid:
cdo remapbil,r360x180 [input.nc] [output.nc]
- To interpolate data onto 1degx1deg grid with offset:
cdo remapbil,grid_input [input.nc] [output.nc]
"grid_input" file
- To convert N(>17) pressure-level data to 17 pressure-level data:
cdo sellevel,1000,925,850,700,600,500,400,300,250,200,150,100,70,50,30,20,10 [input.nc] [output.nc]
- To extract data for September:
cdo selmon,9 [input.nc] [output.nc]
- To convert GRIB file to NetCDF file:
cdo -f nc copy [input.grb] [output.nc]
Python
Seasonal time series
- Seasonal-mean time series from monthly time series
(e.g., construct 50 non-sequential DJFs from 50-year monthly data)
GRIB
- combine multiple files into a single file: cat [input1.grb] [input2.grb] > [output.grb]
- convert GRIB to netCDF using CDO: cdo -f nc copy [input.grb] [output.nc]
- convert GRIB to netCDF using NCL: ncl_convert2nc [input.grb] [output.nc]
- tool to handle GRIB file: yum install wgrib (CentOS 7)
- tool to handle GRIB2 file: yum install wgrib2 (CentOS 7)
HDF5
- convert HDF5 to netCDF: nccopy [input.hdf] [output.nc]
Grads
- convert Grads to netCDF: cdo -f nc import_binary [input.ctl] [output.nc]