Published October 27, 2021
| Version v0.13.0
Software
Open
HyRiver: Hydroclimate Data Retriever
Authors/Creators
Description
Release Notes
New Features
- Add a new flag to
nlcd_*functions calledsslfor disabling SSL verification. - Add a new function called
get_camelsfor getting the CAMELS dataset. The function returns ageopandas.GeoDataFramethat includes basin-level attributes for all 671 stations in the dataset and axarray.Datasetthat contains streamflow data for all 671 stations and their basin-level attributes. - Add a new function named
overland_roughnessfor getting the overland roughness values from land cover data. - Add a new class called
WBDfor getting watershed boundary (HUC) data.
from pygeohydro import WBD
wbd = WBD("huc4")
hudson = wbd.byids("huc4", ["0202", "0203"])
Breaking Changes
Remove caching-related arguments from all functions since now they can be set globally via three environmental variables:
HYRIVER_CACHE_NAME: Path to the caching SQLite database.HYRIVER_CACHE_EXPIRE: Expiration time for cached requests in seconds.HYRIVER_CACHE_DISABLE: Disable reading/writing from/to the cache file.You can do this like so:
import os
os.environ["HYRIVER_CACHE_NAME"] = "path/to/file.sqlite"
os.environ["HYRIVER_CACHE_EXPIRE"] = "3600"
os.environ["HYRIVER_CACHE_DISABLE"] = "true"
Internal Changes
- Write
nodataattribute usingrioxarrayinnlcd_bygeomsince the clipping operation ofrioxarrayuses this value as the fill value.
Notes
Files
cheginit/pygeohydro-v0.13.0.zip
Files
(67.2 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:8a9695712d612e5c03527a3c55cb75e2
|
67.2 kB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/cheginit/pygeohydro/tree/v0.13.0 (URL)