USGS-WiM / FEV

Version 2 of the Flood Event Viewer (FEV)
Other
2 stars 2 forks source link

Add Event Stats to FEV #207

Open HansVraga opened 5 years ago

HansVraga commented 5 years ago

props to Todd for writing up a bitchin' issue on this.

Issue moved from STNWeb (https://github.com/USGS-WiM/STNWeb/issues/411):

Field managers spend a lot of time reporting daily stats to executives on daily calls for things like HWM counts, sensor counts, etc. These get passed up the line, wasting a lot of time at each step. A dashboard with all of the required elements would streamline the data entry and make the results available to any user with access.

After 10/4/18 meeting, we decided it would be best to make the STN reporting feature part of FEV where everyone could access it, and we would only report stats found in our own data. (I.e. we will not collect other data like personnel, gages down, rating extensions, etc.). Here's a list of Counts that we need to display for the event:

High Water Marks
all HWMs (FilteredHWMs.json?Event=) surveyed HWMs (FilteredHWMs.json?Event=&SurveyComplete=True) unsurveyed HWMs (FilteredHWMs.json?Event=&SurveyComplete=False) approved HWMs (HWMs.json?Event=&IsApproved=True) unapproved HWMs (HWMs.json?Event=&IsApproved=False) HWM sites (count of all unique sites that have at least 1 HWM for the event)

Sensors RDGs (FilteredInstruments.json?Event=&SensorType=5) Deployed RDGs (FilteredInstruments.json?Event=&SensorType=5&CurrentStatus=1) Retrieved RDGs (FilteredInstruments.json?Event=&SensorType=5&CurrentStatus=2) Lost RDGs (FilteredInstruments.json?Event=&SensorType=5&CurrentStatus=3) SPTs (FilteredInstruments.json?Event=&SensorType=1&DeploymentType=1,2,3) Barometers (FilteredInstruments.json?Event=&SensorType=1&DeploymentType=3) Water level (FilteredInstruments.json?Event=&SensorType=1&DeploymentType=1) Wave level (FilteredInstruments.json?Event=&SensorType=1&DeploymentType=2) Deployed Water+Wave (FilteredInstruments.json?Event=&SensorType=1&CurrentStatus=1&DeploymentType=1,2) Retrieved Water+Wave (FilteredInstruments.json?Event=&SensorType=1&CurrentStatus=2&DeploymentType=1,2) Lost SPTs (FilteredInstruments.json?Event=&SensorType=1&CurrentStatus=3) Sites (number of sites containing at least one sensor of any sensor type for the event)

Peaks Peaks (FilteredPeaks.json?Event=) Sites (number of sites with at least 1 entered peak for the event)

In addition, the stats page needs to break down all of the above by state so that the first column contains the total numbers above, while the remaining columns have the same counts for each state that is currently part of the event.

Finally, we need to create an endpoint that gives the same results so that these stats can be ingested into other reporting applications.

lprivette commented 4 years ago

modal with nice table with counts

lprivette commented 4 years ago

If we're going to make an endpoint for these counts then we should wait until that's done before starting work on this.

Branch 207 has a skeleton modal for it.