Pywgrib2_s CookBook
Writen by: Wesley Ebisuzaki
the website created by: Li Xu
Introduction
Pywgrib2_s is a python package for reading and writing grib2 which is a World Meterological Organization (WMO) format for exchanging meteorological and oceanographic gridded data. The specifications for the grib2 (grib version 2) format are available from the WMO, and several libraries are available for reading and writing grib2. Pywgrib2_s is based on the fortran wgrib2api and the wgrib2 library.
The design goals of pywgrib2_s are a simple interface, minimal requirements for additional python modules/packages, and the ability to program for efficient I/O. Since pywgrib2_s is uses the wgrib2 library, search terms are based on wgrib2 terms. For example, searching for the 2 meter temperature is done by, var="TMP", lev="2 m above ground".
Documentation
The documentation for pywgrib2_s.py is on-line at this link
Functions index
Contents
-
append
-
ave_rh
-
change_date
-
daily_ave
-
ens_mean
-
merge
-
mk_3hr
-
netcdf_1
-
packing_mem_files
-
read_seq_1
-
read_seq_2
-
read_seq_3
-
read_write
-
regrid_1
-
regrid_2
-
regrid_3
-
subset_1
-
subset_2
-
subset_3
-
subset_4
-
subset_5
-
subset_6
-
tmax_summary
-
wind_speed
-
write_packing
-
write_precision
Download
Download the whole cookbook codes with data at this link
License
Pywgrib2_s.py is in the public domain.
Please send comments, improvements, bug reports to wesley.ebisuzaki@noaa.gov.
Pywgrib2_s.py depends on the wgrib2 library which is mixture of public domain, codes with various licenses.