From e8165db5a40e6d3b01c9c85d0de9ea98109a8e75 Mon Sep 17 00:00:00 2001 From: cheginit Date: Wed, 17 Feb 2021 10:24:23 -0600 Subject: [PATCH] Add explanation for using nhdplushr auto_switch and service args. --- HISTORY.rst | 5 +++++ README.rst | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index beafea2..c17621b 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -15,6 +15,11 @@ Breaking Changes makes getting geometries easier and faster. - Remove ``characteristics_dataframe`` method from ``NLDI`` and made a standalone function called ``nhdplus_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 + 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 ~~~~~~~~~~~~ diff --git a/README.rst b/README.rst index 711ed27..f6731f5 100644 --- a/README.rst +++ b/README.rst @@ -223,14 +223,16 @@ points `__: :align: center Next, we retrieve the medium- and high-resolution flowlines within the bounding box of our -watershed and compare them. +watershed and compare them. Moreover, Since serveral web services offer access to NHDPlus database, +``NHDPlusHR`` has an argument for selecting a service and also an argument for automatically +switching between services. .. code:: python mr = WaterData("nhdflowline_network") nhdp_mr = mr.bybox(basin.geometry[0].bounds) - hr = NHDPlusHR("networknhdflowline") + hr = NHDPlusHR("networknhdflowline", service="hydro", auto_switch=True) nhdp_hr = hr.bygeom(basin.geometry[0].bounds) .. image:: https://raw.githubusercontent.com/cheginit/hydrodata/master/docs/_static/hr_mr.png @@ -238,7 +240,7 @@ watershed and compare them. :width: 400 :align: center -Additionally, ``WaterData`` can find features within a given radius (in meters) of a point: +Moreover, ``WaterData`` can find features within a given radius (in meters) of a point: .. code:: python