GithubHelp home page GithubHelp logo

grib-doctor's Introduction

gribdoctor

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

Installation -------.. role:: console(code) :language: console

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.

grib-doctor's People

Contributors

dnomadb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

grib-doctor's Issues

Update grib doctor to Rasterio 1.0

I am using Python 2.7.13 (64 bit) in windows 7 and I have successfully installed gdal, rasterio (following https://mapbox.github.io/rasterio/installation.html) and gribdoctor (using pip). So, whenever I am using gribdoctor smoosh -dev -uw raw.grib2 unwrap.tif command, I am getting the
error- "with rasterio.drivers(): TypeError: 'module' object is not callable." How can I fix this problem so that I can get converted output? Please note that raw.grib2 is the input GRIB file and unwrap.tif will be the output file.

error_screenshot

"AttributeError: 'DatasetReader' object has no attribute 'affine'."

Hello, thanks for the tutorial!
I am using Python 3 on mac.
I have Installed gribdoctor using pip, but when I use gribdoctor smoosh -dev -uw raw.grib2 unwrap.tif command, I am getting the
error- "AttributeError: 'DatasetReader' object has no attribute 'affine'."
Do you know how I can fix the problem? I'm able to import the file on qgis but it's flipped.. Is there a way to fix it directly in qgis? thanks! I'll attach both my qgis screenshot and the terminal
Screenshot 2023-02-19 at 6 56 10 PM
Screenshot 2023-02-19 at 6 57 25 PM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.