Releases: hyriver/pygeohydro
Releases · hyriver/pygeohydro
v0.19.4
v0.19.3
Release Notes
New Features
- Add support for POLARIS soil dataset. The new function is called
soil_polaris. The function returns soil properties from the POLARIS dataset for a given location. The dataset includes soil properties such as soil texture, bulk density, organic carbon, pH, and soil moisture. The dataset is available for CONUS at 30m resolution.
Internal Changes
- Make
matplotlibandfoliumoptional dependencies instead of required dependencies. This is to reduce the size of the package and make it more lightweight. They are now required only if theplotmodule is used. - Move the plotting functionality of PyGeoHydro for hydrologic signatures to HydroSignatures package. For now, the plot module is exported from HydroSignatures package to maintain backward compatibility.
v0.19.0
Release Notes
Internal Changes
- Update all dependencies on HyRiver libraries to the latest versions and modify the code to be compatible with the latest versions of the libraries.
v0.18.0
Release Notes
Bug Fixes
- Bump the minimum version of
aiohttp-client-cache>=0.12.3to fix an issue with the latest version ofaiohttp. (124{.interpreted-text role="issue_hydro"})
Breaking Changes
- Drop support for Python 3.8 since its end-of-life date is October 2024.
- Remove all exceptions from the main module and raise them from the
exceptionsmodule. This is to declutter the public API and make it easier to maintain.
v0.17.1
Release Notes
Internal Changes
- Drop support for Python 3.8 since its end-of-life date is October 2024.
Bug Fixes
- Update the
nlcdmodule to reflect the changes in the MRLC web service. There have been some breaking changes in the NLCD web service, and the module is updated to reflect these changes. Thus, previous versions of the module will not work with the new NLCD web service. (122{.interpreted-text role="issue_hydro"}) - Update the
nidmodule based on the latest changes to the NID web service. The changes include the addition of new fields to the NID dataset and the removal of some fields. The module is updated to reflect these changes. - Update the
nfhlmodule to reflect the changes in the NFHL web service. There have been some breaking changes in the NFHL web service, and the module is updated to reflect these changes. Thus, previous versions of the module will not work with the new NFHL web service.
v0.17.0
Release Notes
New Features
- Add support for the National Levee Dataset (NLD) from the USACE. The new class is called
NLDand gives users the ability to subset the NLD dataset by geometry, ID, or SQL queries. The class has three methods:bygeom,byids, andbysql.
Enhancements
- Add a new argument to
EHydrofor passing a directory to store the raw downloaded data. This is useful since most times the raw data is needed for further processing and reuse. So, by storing them in a folder other than its previous default location, i.e.,./cache, users can easily access and manage them.
Internal Changes
- Add the
exceptionsmodule to the high-level API to declutter the main module. In the future, all exceptions will be raised from this module and not from the main module. For now, the exceptions are raised from both modules for backward compatibility. - Switch to using the
srclayout instead of theflatlayout for the package structure. This is to make the package more maintainable and to avoid any potential conflicts with other packages. - Add artifact attestations to the release workflow.
- Move
NIDclass to thenidmodule to make the package more organized and the main module less cluttered.
v0.16.5
v0.16.4
Release Notes
Bug Fixes
- Fix an issue in
NID.stage_nid_inventorywhere the function was failing when the response status code was 206 (partial content). This issue is fixed by checking the response status code and if it's 206, the function will continue reading the headers and the get the modified date from the response headers. Also, the function incorrectly didn't check if the local database was up-to-date with the remote database when the processed database already existed. Now, the function will check changes in the remote database and re-download the data even if necessary even if the processed database exists.
v0.16.3
Release Notes
Internal Changes
- More robust handling of failed download links for eHydro data. For example, sometimes, eHydro web service uses placeholder as actual links. There are also cases where links are in the database but they are dead.
- Add the
exceptionsmodule to the high-level API to declutter the main module. In the future, all exceptions will be raised from this module and not from the main module. For now, the exceptions are raised from both modules for backward compatibility.
Bug Fixes
- In
EHydroclass, sometimes the requested surveys are not in the same CRS, so they couldn't be combined into a singleGeoDataFrame. This issue is fixed by reprojecting all the requested surveys to 5070 CRS before combining them.
v0.16.1
Release Notes
Bug Fixes
- In
nlcd_helperfunction the roughness value for class 82 was set to 0.16 instead of 0.037.
New Features
- Converted all methods of
NWISclass toclassmethodso the class can be used without instantiating it. This change makes the class more flexible and easier to use. - In
NIDclass, thestage_nid_inventorymethod now checks if the remote NID database has been modified since the last download and only downloads the new data if it has been modified. This change makes the method more efficient and reduces the network traffic while ensuring that the local database is always up-to-date.