Utility functions for handling grib2s
Utility functions for handling quirks of weather data rasters in grib2 format
Usage - unwrap
gribdoctor unwrap [OPTIONS] INGRIB OUTRASTER
-bt, --bandtags Flag to indicate printing of band tags / band metadata to stdout
-b, --bidx Bands to include in output raster. Default = all (use caution - you may inadvertently create ginourmous tif files)
Many gridded weather GRIBs, such as NOAA’s Global Forecast System (GFS), cover a global extent of -0.5 to 359.5 (or similar, depending on resolution), with the antimeridian (-180 / 180) bisecting a column of pixels. This routine upsamples, slices, and merges these rasters as to convert them to “standard” -180 to 180 extent global grids. Outputs to any raster format supported by rasterio.
Usage - smoosh
gribdoctor smoosh [INPUTS] OUTRASTER
Use this subcommand to “smoosh” together any number of (single band - for now) variable resolution gribs into one tiff. This also effectively performs the above
globewrap operation on all inputs, and outputs a raster of 2x (due to wrapping) the highest input resolution.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.