Skip to content

Utilities for handling quirks of weather data grib files.

License

Notifications You must be signed in to change notification settings

mapbox/grib-doctor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gribdoctor

Utility functions for handling quirks of weather data rasters in grib2 format

Installation

pip install gribdoctor --pre

Usage - smoosh

stack multiple gribs of the same or varying resolutions

Usage: gribdoctor smoosh [OPTIONS] [INPUTS]... OUTPUT

OPTIONS:

-dev, --develoment Dev tag for experimental features

-uw, --unwrap Unwrap GFS Rasters

--help Show this message and exit.

Use this subcommand to "smoosh" together any number of variable resolution gribs into one tiff. This also effectively performs the below globewrap operation on all inputs if indicated with --unwrap, and outputs a raster of 2x (due to unwrapping) the highest input resolution.

Usage - unwrap

gribdoctor unwrap [OPTIONS] INGRIB OUTRASTER

OPTIONS

-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.

About

Utilities for handling quirks of weather data grib files.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages