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 searchString More examples of how to set searchString is in the docs. Essentially it can be any regular expression to look through the index files. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
From a question I was asked in an email
Beta Was this translation helpful? Give feedback.
All reactions