Skip to content

How do I download 10 m and 80 m wind data for a range of dates? #9

Answered by blaylockbk
blaylockbk asked this question in Q&A
Discussion options

You must be logged in to vote

The secret sauce is knowing how to specify the search string to find both the U and V wind field for 10 m and 80 m winds. In this case, we use regular expression to set searchString='(?:U|V)GRD:(?:10|80) m'

from herbie.tools import fast_Herbie_download
import pandas as pd

# Range of dates (in UTC) at hourly frequency, for 3 days
DATES = pd.date_range('2021-02-01 00:00', '2021-02-03 00:00', freq='1H')

# Download the data, just U and V winds at 10 and 80 m for the model analysis
d = fast_Herbie_download(
    DATES, 
    model='hrrr', 
    product='sfc',
    searchString='(?:U|V)GRD:(?:10|80) m', 
    fxx=0
)

More examples of Fast Herbie in the docs

More examples of specifying the searc…

Replies: 1 comment 3 replies

Comment options

blaylockbk
Apr 6, 2021
Maintainer Author

You must be logged in to vote
3 replies
@blaylockbk
Comment options

blaylockbk Apr 6, 2021
Maintainer Author

@jahanbani
Comment options

@blaylockbk
Comment options

blaylockbk Apr 22, 2022
Maintainer Author

Answer selected by blaylockbk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants