Get station data using get_data() function #488
+241
−17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of changes and related issue
Added the ability to retrieve station data using
get_data()
function. Also added the ability to see weather station options usingget_subsetting_options()
.Relevant motivation and context
These functions were unfinished without station data. Plus, Victoria needs this functionality for some code she’s writing for an IOU.
How to test
Run the notebook
climakitae_direct_data_download.ipynb
in the branchget-station-data
incae-notebooks
. At the bottom of that notebook, there’s some code related to how to use the new functionality from this branch. Try retrieving some different stations, resolutions, etc. Make sure the error messages make sense when you put a bad input, and that the data that is retrieved matches what you input in the function arguments.Type of change
To-Do
_
before the name