Upload example data for AK Glacier demo; update example notebook accordingly; adjust P_rain/snow var updates #4
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.
TL;DR
P_rain
andP_snow
variables to allow compatibility with both gridded and non-gridded air temp dataMore Details:
Previously, the example data and config files for running the Glacier Demo notebook was hosted on Google Drive for internal use. So that users can readily replicate this demo, I uploaded the example data and configs to the examples folder. Because the time varying grid of air temperature is too large to host on GitHub, I updated the notebook to use a time series of air temperature that does not vary in space.
As briefly considered in PR#15 to the peckhams/topoflow36 repo (but later reversed), the update of the P_rain and P_snow variables as-is causes issues if input air temperature data is not gridded, so I also made a change to the line updating these variables in
met_base.py
. This solution does allocate the variable to new memory (not ideal), but for now may be the best solution to get TopoFlow running properly out-of-the-box for users following the demo notebook. Future development can help consider how we can reduce this potential inefficiency.