Skip to content

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

Open
elliott-spire wants to merge 10 commits into
masterfrom
feature/cropped-grib-examples
Open

Examples for filtering grib data within a provided shapefile area#3
elliott-spire wants to merge 10 commits into
masterfrom
feature/cropped-grib-examples

Conversation

@elliott-spire

Copy link
Copy Markdown
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

@kxfeldhus kxfeldhus left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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