diff --git a/CHANGELOG.md b/CHANGELOG.md index f20ec7759f39d926ccb67d0f9c324bf10cc2b838..80bf44ed074aa70f775e4c10114163adfaf01d8c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [Unreleased](https://github.com/usgs/waterdataui/compare/waterdataui-0.39.0...master) +### Added +- Instantaneous Values data availability information page ## [0.39.0](https://github.com/usgs/waterdataui/compare/waterdataui-0.38.0...waterdataui-0.39.0) - 2020-12-09 ### Added diff --git a/assets/src/styles/main.scss b/assets/src/styles/main.scss index 386fc046772fb69884f58d468b69b550e3334daf..0c24009dcd52d445f850ac708c897775dd0cbf04 100644 --- a/assets/src/styles/main.scss +++ b/assets/src/styles/main.scss @@ -12,6 +12,8 @@ $fa-font-path: './fonts' !default; @import './partials/social-share'; @import './partials/tooltip'; +@import './pages/iv-data-availability-statement'; + .wdfn-component { &[data-component='hydrograph'] { @import './components/hydrograph/app'; diff --git a/assets/src/styles/pages/_iv-data-availability-statement.scss b/assets/src/styles/pages/_iv-data-availability-statement.scss new file mode 100644 index 0000000000000000000000000000000000000000..9cfe314f9d06a0caad483d7bbdb00c52f74f28f1 --- /dev/null +++ b/assets/src/styles/pages/_iv-data-availability-statement.scss @@ -0,0 +1,9 @@ + +#iv-data-availability-statement { + section { + @include u-padding-bottom(1); + } + .iv-statement-subsection { + @include u-padding-left(2); + } +} diff --git a/wdfn-server/waterdata/templates/iv_data_availability_statement.html b/wdfn-server/waterdata/templates/iv_data_availability_statement.html new file mode 100644 index 0000000000000000000000000000000000000000..9fc48912713635e5a0737a48c0209f09882ccfe3 --- /dev/null +++ b/wdfn-server/waterdata/templates/iv_data_availability_statement.html @@ -0,0 +1,60 @@ +{% extends "base.html" %} + +{% block content %} + <div id="iv-data-availability-statement" class="usa-prose"> + <h1>Current and Historical<br>Instantaneous Data Availability</h1> + <section class="usa-prose"> + <p> + The available parameters from the Current Conditions and Historical Observations pages on the National + Water Information System Web Interface have two categories of instantaneous data availability. + For some parameters, historical data are available as far back as October 1, 1950, whereas for + others only the most recent 120 days of provisional data are available. The period of + availability depends on the intended use of the data and can vary from monitoring location to + monitoring location and/or between parameters at a monitoring location as described below. + </p> + </section> + <section class="usa-prose iv-statement-subsection"> + <h2>Available Historical Instantaneous Data:</h2> + <p> + Parameters with historical instantaneous data are measured by the USGS Water Science Center (WSC) + with the intent to publish and are subject to a thorough review and approval process. Typically, + these data have corresponding historical daily values available for the period of record. + These instantaneous data are limited to data collected since October 1, 1950. + </p> + <p> + Data are presented as approved or + <a href="{{ url_for('provisional_data_statement')}}">PROVISIONAL</a> + as appropriate, however provisional data will be provided for only the most recent three years. + In cases where data are not approved within a three year period, + interested users should contact the local WSC for further information. + </p> + <h2>Available Operational Instantaneous Data:</h2> + <p> + These parameters typically are collected by the USGS for the purposes of supporting short-term + operational needs of the data network (for example precipitation at some locations) or parameters + measured to facilitate the computation of another parameter of interest (for example, stage is + used in the computations of streamflow). In either case, these parameters are not necessarily + corrected for errors or omissions either because the short-term need for the operational data + has passed or because other methods were used to estimate the primary parameter of interest. + Operational instantaneous data typically are not intended for publication and therefore are + limited to the most recent 120 days. + </p> + </section> + <section class="usa-prose"> + <p> + Please note that the above designations are not uniformly applied from monitoring location to + monitoring location for a given parameter. For example, whereas stage data at some monitoring + locations are fully quality assured, published, and are historically available, at other monitoring + locations they are not quality assured and will only be available for 120 days. The same monitoring + location-to-monitoring location variations will exist for precipitation and other parameters + depending on the intended uses of the data. + </p> + <p> + Significant gaps in the availability of historical instantaneous data may exist due to instrument + problems, environmental conditions or other factors that affect the ability to collect data. + For some parameters, especially streamflow and others that are routinely estimated as + necessary, a complete record may be available as Daily Data. + </p> + </section> + </div> +{% endblock content %} diff --git a/wdfn-server/waterdata/tests/test_views.py b/wdfn-server/waterdata/tests/test_views.py index 5bb93ae57996ab162e7423d3f5352f80532b0235..30d0ed091c22da595afb5fce1ad506b8c677b5fc 100644 --- a/wdfn-server/waterdata/tests/test_views.py +++ b/wdfn-server/waterdata/tests/test_views.py @@ -30,12 +30,22 @@ class TestProvisionalDataStatementView(TestCase): def setUp(self): self.app_client = app.test_client() - def test_version(self): + def test_successful_view(self): response = self.app_client.get('/provisional-data-statement') self.assertEqual(response.status_code, 200) +class TestIvDataAvailabilityStatementView(TestCase): + def setUp(self): + self.app_client = app.test_client() + + def test_successful_view(self): + response = self.app_client.get('/iv-data-availability-statement') + + self.assertEqual(response.status_code, 200) + + class TestMonitoringLocationView(TestCase): # pylint: disable=R0902 diff --git a/wdfn-server/waterdata/views.py b/wdfn-server/waterdata/views.py index 505f58cc0164c8f61141acaf2320096476bc1d47..3ca4aedf271a9bd2ef10d1a56c165c6a2e645b8e 100644 --- a/wdfn-server/waterdata/views.py +++ b/wdfn-server/waterdata/views.py @@ -33,10 +33,11 @@ def provisional_data_statement(): """Render the provisional data statement page.""" return render_template('provisional_data_statement.html') + @app.route('/iv-data-availability-statement') def iv_data_availability(): """Render the IV data availability statement page.""" - return "Not yet implemented" + return render_template('iv_data_availability_statement.html') @app.route('/monitoring-location/<site_no>/', methods=['GET'])