v0.11.0
Release Notes
Breaking Changes
- Drop support for Python 3.6 since many of the dependencies such as
xarray
andpandas
have done so. - Remove
get_nid
andget_nid_codes
functions since NID now has a
ArcGISRESTFul service.
New Features
- Add a new class called
NID
for accessing the recently released National Inventory of Dams web service. This service is based on ArcGIS's RESTful service. So now the user just need to instantiate the class like soNID()
and with three methods ofAGRBase
class, the user can retrieve the data. These methods are:bygeom
,byids
, andbysql
. Moreover, it has anattrs
property that includes descriptions of the database fields with their units. - Refactor
NWIS.get_info
to be more generic by accepting any valid
queries that are documented at USGS Site Web Service. - Allow for passing a list of queries to
NWIS.get_info
and use
async_retriever
that significantly improves the network response time. - Add two new flags to
interactive_map
for limiting the stations to
those with daily values (dv=True
) and/or instantaneous values (iv=True
). This function now includes a link to stations webpage on USGS website.
Internal Changes
- Use persistent caching for all send/receive requests that can significantly improve the network response time.
- Explicitly include all the hard dependencies in
setup.cfg
. - Refactor
interactive_map
andNWIS.get_info
to make them more efficient and reduce their code complexity.