Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples for filtering grib data within a provided shapefile area #3

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

elliott-spire
Copy link
Contributor

No description provided.

@elliott-spire elliott-spire requested a review from mpkay May 11, 2020 14:04
@elliott-spire elliott-spire force-pushed the feature/cropped-grib-examples branch 4 times, most recently from 0fc4755 to 13a6c75 Compare May 14, 2020 12:29
Copy link
Contributor

@kxfeldhus kxfeldhus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These examples all share much of the same code. We should pull out common functions so they can be shared in these examples and by end users. Maybe a grib_utils module or something would be handy.

AREA = shpfile.GetLayer()

# Compute the wind speed
def wind_speed_from_u_v(row):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The wind speed and direction conversions can be found in conversions.py.

@elliott-spire elliott-spire force-pushed the feature/cropped-grib-examples branch from e7c964f to a057708 Compare June 25, 2020 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants