Skip to main content

Utility functions for handling grib2s

Project description

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

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.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gribdoctor-0.0.2dev.tar.gz (3.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page