Skip to content
Snippets Groups Projects
Unverified Commit 53981fed authored by abriggs-usgs's avatar abriggs-usgs Committed by GitHub
Browse files

Merge pull request #1302 from abriggs-usgs/WDFN-443_implement_instanteous_data_statement_page

Wdfn 443 implement instanteous data statement page
parents 0da059d1 299c86ae
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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';
......
#iv-data-availability-statement {
section {
@include u-padding-bottom(1);
}
.iv-statement-subsection {
@include u-padding-left(2);
}
}
{% 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 %}
......@@ -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
......
......@@ -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'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment