rossyndicate / nps_water_vulnerability

Workflow for the NPS climate change vulnerability assessment – security of park water supplies.
1 stars 3 forks source link

Modification to WBM pulling approach + a few new functions #71

Closed kathryn-willi closed 2 weeks ago

kathryn-willi commented 2 weeks ago

This PR contains changes to the following:

1) I added a few new packages to our setup script. I believe there may be some more packages that are used in some other scripts, so I don't know for sure if it's fully complete yet! 2) I created a new function, get_wbm_grids() that returns both the user-specified climate future grids as well as historic data grids for a park and selected AOI. This function is separate from Caitlin's get_future_wbm.R, but very very similar. Ideally we transition to using get_wbm_grids(). 3) I added functions to pull in water rights data from Colorado and Montana. As we are all aware, each state reports on their water rights/PODs quite differently. As some point, we should settle on naming conventions for particular data of interest (e.g., water right holder info, location of water right, name of water right, priority date, etc.) 4) I modified get_GCMs() so that it looks for "UNITCODE_future" and "UNITCODE_historic" objects in the global environment instead of just" _future" and "_historic". This was done only as an added protective step (I tend to name a lot of things with those suffixes apparently LOL).

My key ask for this request @KECognac - can you run the get_wbm_grids() and let me know if this is what you were envisioning? If there are any mods you'd like I can change them ahead of merging!