Pynhd

Latest version: v0.18.0

Safety actively analyzes 693883 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 7

0.10.0

-------------------

- 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.

0.9.0

------------------

- Bump version to the same version as PyGeoHydro.

Breaking Changes
~~~~~~~~~~~~~~~~
- Add a new function for getting basins geometries for a list of USGS station IDs.
The function is a method of ``NLDI`` class called ``get_basins``. So, now
``NLDI.getfeature_byid`` function does not have a basin flag. This change
makes getting geometries easier and faster.
- Remove ``characteristics_dataframe`` method from ``NLDI`` and make a standalone function
called ``nhdplus_attrs`` for accessing NHDPlus attributes directly from ScienceBase.
- Add support for using `hydro <https://hydro.nationalmap.gov/arcgis/rest/services/NHDPlus_HR/MapServer>`_
or `edits <https://edits.nationalmap.gov/arcgis/rest/services/NHDPlus_HR/NHDPlus_HR/MapServer>`_
webs services for getting NHDPlus High-Resolution using ``NHDPlusHR`` function. The new arguments
are ``service`` which accepts ``hydro`` or ``edits``, and ``autos_switch`` flag for automatically
switching to the other service if the ones passed by ``service`` fails.

New Features
~~~~~~~~~~~~
- Add a new argument to ``topoogical_sort`` called ``edge_attr`` that allows adding attribute(s) to
the returned Networkx Graph. By default, it is ``None``.
- 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`` to ``NLDI`` class for getting ComIDs of the closest flowlines from a list of
lon/lat coordinates.
- Add ``bydistance`` to ``WaterData`` for getting features within a given radius of a point.

0.2.0

------------------

Breaking Changes
~~~~~~~~~~~~~~~~
- Re-wrote the ``NLDI`` function to use API v3 of the NLDI service.
- The ``crs`` argument of ``WaterData`` 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 of ``NLDI`` since it's not applicable anymore.

New Features
~~~~~~~~~~~~
- 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``: Getting characteristics of NHDPlus catchments.
* ``navigate_byloc``: Getting the nearest ComID to a coordinate and performing navigation.
* ``characteristics_dataframe``: Getting all the available catchment-scale characteristics
as a data frame.
* ``get_validchars``: Getting a list of available characteristic IDs for a specified
characteristic type.

- The following function is added to ``WaterData``:

* ``byfilter``: Getting data based on any valid CQL filter.
* ``bygeom``: Getting data within a geometry (polygon and multipolygon).

- Add support for Python 3.9 and tests for Windows.

Bug Fixes
~~~~~~~~~
- Refactored ``WaterData`` to fix the CRS inconsistencies (1).

0.1.3

------------------

- Replaced ``simplejson`` with ``orjson`` to speed-up JSON operations.

0.1.2

------------------

- Add ``show_versions`` function for showing versions of the installed deps.
- Improve documentation

0.1.1

------------------

- Improved documentation
- Refactored ``WaterData`` to improve readability.

Page 6 of 7

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.