- The first release after renaming hydrodata to pygeohydro.
- Make
mypy
checks more strict and fix all the errors and prevent possible bugs. - Speed up CI testing by using
mamba
and caching.
- Bump version to the same version as pygeohydro.
- Add a new function for getting basins geometries for a list of USGS station IDs.
The function is a method of
NLDI
class calledget_basins
. So, nowNLDI.getfeature_byid
function does not have a basin flag. This change makes getting geometries easier and faster. - Remove
characteristics_dataframe
method fromNLDI
and made a standalone function callednhdplus_attrs
for accessing NHDPlus attributes directly from ScienceBase. - Add support for using hydro
or edits
webs services for getting NHDPlus High-Resolution using
NHDPlusHR
function. The new arguments areservice
which acceptshydro
oredits
, andautos_switch
flag for automatically switching to the other service if the ones passed byservice
fails.
- Add a new argument to
topoogical_sort
callededge_attr
that allows to add attribute(s) to the returned Networkx Graph. By default it isNone
. - A new base class,
AGRBase
for connecting to ArcGISRESTful-based services such as National Map and EPA's WaterGEOS. - Add support for setting the buffer distance for the input geometries to
AGRBase.bygeom
. - Add
comid_byloc
toNLDI
class for getting ComIDs of the closest flowlines from a list of lon/lat coordinates. - Add
bydistance
toWaterData
for getting features within a given radius of a point.
- Re-wrote the
NLDI
function to use API v3 of the NLDI service. - The
crs
argument ofWaterData
now is the target CRS of the output dataframe. The service CRS is now EPSG:4269 for all the layers. - Remove the
url_only
argument ofNLDI
since it's not applicable anymore.
- Added support for NHDPlus High Resolution for getting features by geometry, IDs, or SQL where clause.
- The following functions are added to
NLDI
:
getcharacteristic_byid
: For getting characteristics of NHDPlus catchments.navigate_byloc
: For getting the nearest ComID to a coordinate and perform a navigation.characteristics_dataframe
: For getting all the available catchment-scale characteristics as a dataframe.get_validchars
: For getting a list of available characteristic IDs for a specified characteristic type,.
- The following function is added to
WaterData
:
byfilter
: For getting data based on any valid CQL filter.bygeom
: For getting data within a geometry (polygon and multipolygon).
- Add support for Python 3.9 and tests for Windows.
- Refactored
WaterData
to fix the CRS inconsistencies (#1).
- Replaced
simplejson
withorjson
to speed-up JSON operations.
- Add
show_versions
function for showing versions of the installed deps. - Improve documentations
- Improved documentation
- Refactored
WaterData
to improve readability.
- First release on PyPI.