Previous topic

ncwrite

Next topic

grads2nc

This Page

convert2nc

mipylib.dataset.midata.convert2nc(infn, outfn, version='netcdf3')

Convert data file (Grib, HDF...) to netCDF data file.

Parameters:
  • infn – (string) Input data file name.
  • outfn – (string) Output netCDF data file name.

Examples

infn = 'D:/Temp/grib/C1D01010000010109001'    #Input GRIB file
outfn = 'D:/Temp/grib/C1D01010000010109001.nc'    #Output netCDF file
convert2nc(infn, outfn)