How to subset a file with searchString argument.
#63
Unanswered
blaylockbk
asked this question in
Q&A
Replies: 1 comment
|
The searchString argument can be used in a few of the Herbie methods. For example: H = Herbie('2021-01-01')
searchString = 'TMP:2 m' # search for 2-m temperature
H.read_idx(searchString) # read index lines that match the searchString (this is a great way to test your searchString)
H.download(searchString) # download a subset of the file that matches the searchString
H.xarray(searchString) # read the data into xarray that matches the searchStringMore examples of how to set searchString is in the docs. Essentially it can be any regular expression to look through the index files. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
From a question I was asked in an email
All reactions