Delta-Stewardship-Council / swg-21-connectivity

connectivity synthesis subgroup
2 stars 9 forks source link

cleanup inundation and dayflow get clean functions #42

Closed ryanpeek closed 2 years ago

ryanpeek commented 2 years ago

cleanup inundation to make it a function, and write get_fre flow to a zipped file to save space.

ryanpeek commented 2 years ago

@goertler take a look at this if you'd like...the original code you had wasn't running, so I revised it a bit to make it into a function...I also tried to clean up some of the supporting functions to make things a bit quicker and cleaner (writing to a gz file, reading in saved file instead of downloading it each time, etc). Should work now, but please take a look and test if you'd like. We can also eliminate the wateRshedTools package dependency if you want and pull that function directly into the get_fre code...