Skip to content

Commit

Permalink
Merge branch 'feature_ensemble_app' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
mollybsmith-noaa committed Jul 7, 2023
2 parents 434770a + b77a7fb commit b8bd451
Show file tree
Hide file tree
Showing 77 changed files with 281 additions and 275 deletions.
2 changes: 1 addition & 1 deletion MATScommon
Submodule MATScommon updated 30 files
+1 −1 .eslintrc.json
+41 −4 meteor_packages/mats-common/imports/startup/api/matsMethods.js
+19 −0 meteor_packages/mats-common/imports/startup/both/mats-curve-params.js
+2 −1 meteor_packages/mats-common/imports/startup/both/mats-types.js
+77 −6 meteor_packages/mats-common/imports/startup/client/curve_util.js
+4 −8 meteor_packages/mats-common/imports/startup/client/graph_util.js
+2 −2 meteor_packages/mats-common/imports/startup/server/data_curve_ops_util.js
+1 −0 meteor_packages/mats-common/imports/startup/server/data_match_util.js
+89 −0 meteor_packages/mats-common/imports/startup/server/data_plot_ops_util.js
+151 −35 meteor_packages/mats-common/imports/startup/server/data_process_util.js
+194 −0 meteor_packages/mats-common/imports/startup/server/data_query_util.js
+4 −0 meteor_packages/mats-common/imports/startup/server/data_util.js
+8 −4 meteor_packages/mats-common/lib/plot_util.js
+2 −0 meteor_packages/mats-common/public/MATSReleaseNotes.html
+3 −3 meteor_packages/mats-common/public/python/python_query_util.py
+1 −0 meteor_packages/mats-common/templates/curves/curve_list.js
+5 −0 meteor_packages/mats-common/templates/curves/curve_param_item_group.js
+12 −7 meteor_packages/mats-common/templates/footer/footer.html
+2 −2 meteor_packages/mats-common/templates/graph/graph.html
+81 −61 meteor_packages/mats-common/templates/graph/graph.js
+31 −39 meteor_packages/mats-common/templates/graphStandAlone/graphStandAlone.js
+1 −0 meteor_packages/mats-common/templates/params/curve_param_group.js
+0 −4 meteor_packages/mats-common/templates/params/param_list.js
+0 −4 meteor_packages/mats-common/templates/params/scorecard_param_list.js
+4 −1 meteor_packages/mats-common/templates/plot/plot_list.js
+1 −1 meteor_packages/mats-common/templates/plotType/plot_type.html
+77 −37 meteor_packages/mats-common/templates/plotType/plot_type.js
+62 −14 meteor_packages/mats-common/templates/textOutput/textOutput.js
+12 −6 meteor_packages/mats-common/templates/topnav/top_nav.html
+4 −5 meteor_packages/mats-common/templates/topnav/top_nav.js
2 changes: 1 addition & 1 deletion apps/met-airquality/server/dataFunctions/data_dieoff.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from "meteor/randyp:mats-common";
import { moment } from "meteor/momentjs:moment";

dataDieOff = function (plotParams, plotFunction) {
dataDieoff = function (plotParams, plotFunction) {
// initialize variables common to all curves
const appParams = {
plotType: matsTypes.PlotTypes.dieoff,
Expand Down
2 changes: 1 addition & 1 deletion apps/met-airquality/server/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2177,7 +2177,7 @@ const doPlotGraph = function () {
matsCollections.PlotGraphFunctions.insert({
plotType: matsTypes.PlotTypes.dieoff,
graphFunction: "graphPlotly",
dataFunction: "dataDieOff",
dataFunction: "dataDieoff",
checked: false,
});
matsCollections.PlotGraphFunctions.insert({
Expand Down
2 changes: 1 addition & 1 deletion apps/met-anomalycor/server/dataFunctions/data_dieoff.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from "meteor/randyp:mats-common";
import { moment } from "meteor/momentjs:moment";

dataDieOff = function (plotParams, plotFunction) {
dataDieoff = function (plotParams, plotFunction) {
// initialize variables common to all curves
const appParams = {
plotType: matsTypes.PlotTypes.dieoff,
Expand Down
2 changes: 1 addition & 1 deletion apps/met-anomalycor/server/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2042,7 +2042,7 @@ const doPlotGraph = function () {
matsCollections.PlotGraphFunctions.insert({
plotType: matsTypes.PlotTypes.dieoff,
graphFunction: "graphPlotly",
dataFunction: "dataDieOff",
dataFunction: "dataDieoff",
checked: false,
});
matsCollections.PlotGraphFunctions.insert({
Expand Down
2 changes: 1 addition & 1 deletion apps/met-cyclone/server/dataFunctions/data_dieoff.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from "meteor/randyp:mats-common";
import { moment } from "meteor/momentjs:moment";

dataDieOff = function (plotParams, plotFunction) {
dataDieoff = function (plotParams, plotFunction) {
// initialize variables common to all curves
const appParams = {
plotType: matsTypes.PlotTypes.dieoff,
Expand Down
8 changes: 7 additions & 1 deletion apps/met-cyclone/server/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,12 @@ const doCurveParams = function () {
HAFS: "HAFS: Hurricane Analysis and Forecast System",
HAFI: "HAFI: Hurricane Analysis and Forecast System",
HAF2: "HAF2: Hurricane Analysis and Forecast System",
HFSA: "HFSA: Hurricane Analysis and Forecast System - A",
HFAI: "HFAI: Hurricane Analysis and Forecast System - A",
HFA2: "HFA2: Hurricane Analysis and Forecast System - A",
HFSB: "HFSB: Hurricane Analysis and Forecast System - B",
HFBI: "HFBI: Hurricane Analysis and Forecast System - B",
HFB2: "HFB2: Hurricane Analysis and Forecast System - B",
HAMN: "HAMN: HAFS Ensemble Mean",
HAMI: "HAMI: HAFS Ensemble Mean",
HAM2: "HAM2: HAFS Ensemble Mean",
Expand Down Expand Up @@ -2260,7 +2266,7 @@ const doPlotGraph = function () {
matsCollections.PlotGraphFunctions.insert({
plotType: matsTypes.PlotTypes.dieoff,
graphFunction: "graphPlotly",
dataFunction: "dataDieOff",
dataFunction: "dataDieoff",
checked: false,
});
matsCollections.PlotGraphFunctions.insert({
Expand Down
2 changes: 1 addition & 1 deletion apps/met-ensemble/server/dataFunctions/data_dieoff.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from "meteor/randyp:mats-common";
import { moment } from "meteor/momentjs:moment";

dataDieOff = function (plotParams, plotFunction) {
dataDieoff = function (plotParams, plotFunction) {
// initialize variables common to all curves
const appParams = {
plotType: matsTypes.PlotTypes.dieoff,
Expand Down
2 changes: 1 addition & 1 deletion apps/met-ensemble/server/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1746,7 +1746,7 @@ const doPlotGraph = function () {
matsCollections.PlotGraphFunctions.insert({
plotType: matsTypes.PlotTypes.dieoff,
graphFunction: "graphPlotly",
dataFunction: "dataDieOff",
dataFunction: "dataDieoff",
checked: false,
});
matsCollections.PlotGraphFunctions.insert({
Expand Down
2 changes: 1 addition & 1 deletion apps/met-object/server/dataFunctions/data_dieoff.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from "meteor/randyp:mats-common";
import { moment } from "meteor/momentjs:moment";

dataDieOff = function (plotParams, plotFunction) {
dataDieoff = function (plotParams, plotFunction) {
// initialize variables common to all curves
const appParams = {
plotType: matsTypes.PlotTypes.dieoff,
Expand Down
2 changes: 1 addition & 1 deletion apps/met-object/server/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1910,7 +1910,7 @@ const doPlotGraph = function () {
matsCollections.PlotGraphFunctions.insert({
plotType: matsTypes.PlotTypes.dieoff,
graphFunction: "graphPlotly",
dataFunction: "dataDieOff",
dataFunction: "dataDieoff",
checked: false,
});
matsCollections.PlotGraphFunctions.insert({
Expand Down
2 changes: 1 addition & 1 deletion apps/met-precip/server/dataFunctions/data_dieoff.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from "meteor/randyp:mats-common";
import { moment } from "meteor/momentjs:moment";

dataDieOff = function (plotParams, plotFunction) {
dataDieoff = function (plotParams, plotFunction) {
// initialize variables common to all curves
const appParams = {
plotType: matsTypes.PlotTypes.dieoff,
Expand Down
2 changes: 1 addition & 1 deletion apps/met-precip/server/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2172,7 +2172,7 @@ const doPlotGraph = function () {
matsCollections.PlotGraphFunctions.insert({
plotType: matsTypes.PlotTypes.dieoff,
graphFunction: "graphPlotly",
dataFunction: "dataDieOff",
dataFunction: "dataDieoff",
checked: false,
});
matsCollections.PlotGraphFunctions.insert({
Expand Down
2 changes: 1 addition & 1 deletion apps/met-surface/server/dataFunctions/data_dieoff.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from "meteor/randyp:mats-common";
import { moment } from "meteor/momentjs:moment";

dataDieOff = function (plotParams, plotFunction) {
dataDieoff = function (plotParams, plotFunction) {
// initialize variables common to all curves
const appParams = {
plotType: matsTypes.PlotTypes.dieoff,
Expand Down
2 changes: 1 addition & 1 deletion apps/met-surface/server/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2031,7 +2031,7 @@ const doPlotGraph = function () {
matsCollections.PlotGraphFunctions.insert({
plotType: matsTypes.PlotTypes.dieoff,
graphFunction: "graphPlotly",
dataFunction: "dataDieOff",
dataFunction: "dataDieoff",
checked: false,
});
matsCollections.PlotGraphFunctions.insert({
Expand Down
2 changes: 1 addition & 1 deletion apps/met-upperair/server/dataFunctions/data_dieoff.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from "meteor/randyp:mats-common";
import { moment } from "meteor/momentjs:moment";

dataDieOff = function (plotParams, plotFunction) {
dataDieoff = function (plotParams, plotFunction) {
// initialize variables common to all curves
const appParams = {
plotType: matsTypes.PlotTypes.dieoff,
Expand Down
2 changes: 1 addition & 1 deletion apps/met-upperair/server/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2074,7 +2074,7 @@ const doPlotGraph = function () {
matsCollections.PlotGraphFunctions.insert({
plotType: matsTypes.PlotTypes.dieoff,
graphFunction: "graphPlotly",
dataFunction: "dataDieOff",
dataFunction: "dataDieoff",
checked: false,
});
matsCollections.PlotGraphFunctions.insert({
Expand Down
36 changes: 18 additions & 18 deletions docs/Users_Guide/apps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ and the mean value of the selected parameter on the x-axis.

**Die-off**: Die-off plots show how skill (or the inverse, error)
changes with increasing lead time. :numref:`apps_interface_dieoff` shows the user
interface page after selecting the plot type of DieOff. Note that
interface page after selecting the plot type of Dieoff. Note that
another selector is included for DIEOFF TYPE, which has the following
possible values:

Expand All @@ -81,9 +81,9 @@ possible values:

.. figure:: figure/apps_interface_dieoff.png

User Interface screen after selecting plot type of DieOff.
User Interface screen after selecting plot type of Dieoff.

:numref:`apps_upper_air_dieoff_plot` shows a sample of a DieOff plot in METexpress.
:numref:`apps_upper_air_dieoff_plot` shows a sample of a Dieoff plot in METexpress.
This looks more
like a familiar die-off curve when plotting skill, such as anomaly
correlation as plotted in :numref:`apps_anom_corr_dieoff_plot` using the Anomaly Correlation
Expand All @@ -100,13 +100,13 @@ the specified date range.

.. figure:: figure/apps_upper_air_dieoff_plot.png

Upper Air DieOff plot
Upper Air Dieoff plot

.. _apps_anom_corr_dieoff_plot:

.. figure:: figure/apps_anom_corr_dieoff_plot.png

Anomaly Correlation DieOff plot
Anomaly Correlation Dieoff plot

**ValidTime**: The ValidTime plot type (also sometimes known as diurnal
cycle plots) displays valid UTC hour on the x–axis and the mean value of
Expand Down Expand Up @@ -236,7 +236,7 @@ Plot types available include

* Time Series
* Profile
* DieOff
* Dieoff
* ValidTime
* Histogram
* Contour
Expand Down Expand Up @@ -316,12 +316,12 @@ The selector for the Statistic has these possible choices (depending on availabl
Plot types available include:

* Time Series
* DieOff
* Dieoff
* ValidTime
* Histogram
* Contour

Plots in the Surface app for Time Series, DieOff, ValidTime, Histogram, and
Plots in the Surface app for Time Series, Dieoff, ValidTime, Histogram, and
Contour are the same as in Upper Air. An example of a Valid Time plot
is shown in :numref:`apps_surface_plot`.

Expand Down Expand Up @@ -381,13 +381,13 @@ The selector for the Statistic has these possible choices (depending on availabl
Plot types available include

* Time Series
* DieOff
* Dieoff
* Threshold
* ValidTime
* Histogram
* Contour

Plots in the Air Quality app for Time Series, DieOff, ValidTime,
Plots in the Air Quality app for Time Series, Dieoff, ValidTime,
Histogram, and Contour are the same as in Upper Air.

An additional plot type, Threshold, is available in this app.
Expand Down Expand Up @@ -446,15 +446,15 @@ The selector for the Statistic has these possible choices (depending on availabl
Plot types available include

* Time Series
* DieOff
* Dieoff
* ValidTime
* Histogram
* Ensemble Histogram
* Reliability
* ROC
* Performance Diagram

Plots in the Ensemble app for Time Series, DieOff, ValidTime, and
Plots in the Ensemble app for Time Series, Dieoff, ValidTime, and
Histogram are the same as in Upper Air.

Four plot types are specific to this app: Ensemble Histogram,
Expand Down Expand Up @@ -602,14 +602,14 @@ The selector for the Statistic has these possible choices (depending on availabl
Plot types available include

* Time Series
* DieOff
* Dieoff
* Threshold
* ValidTime
* GridScale
* Histogram
* Contour

Plots in the Precipitation app for Time Series, DieOff,
Plots in the Precipitation app for Time Series, Dieoff,
ValidTime, Histogram, and Contour are the same as in Upper Air.

A different plot type, Threshold, is present in this app. Threshold
Expand Down Expand Up @@ -707,12 +707,12 @@ The selector for the Statistic has these possible choices (depending on availabl
Plot types available include

* Time Series
* DieOff
* Dieoff
* ValidTime
* YearToYear
* Histogram

Plots in the Cyclone app for Time Series, DieOff,
Plots in the Cyclone app for Time Series, Dieoff,
ValidTime, and Histogram are the same as in Upper Air.

A different plot type, YearToYear, is present in this app. YearToYear
Expand Down Expand Up @@ -836,11 +836,11 @@ The selector for the Statistic has these possible choices (depending on availabl
Plot types available include

* Time Series
* DieOff
* Dieoff
* Threshold
* ValidTime

Plots in the Objects app for Time Series, DieOff,
Plots in the Objects app for Time Series, Dieoff,
and ValidTime are the same as in Precipitation.

:numref:`apps_interface_objects` shows an example of the user interface for the
Expand Down
2 changes: 1 addition & 1 deletion docs/Users_Guide/interface.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ __________

Immediately below the name of the app is a bar that allows selection of the
plot type. Available types for Upper Air include Time Series, Profile,
DieOff, ValidTime, Histogram, and Contour. Other apps include some plot
Dieoff, ValidTime, Histogram, and Contour. Other apps include some plot
types specific to that application domain, such as Reliability plots in the
Ensemble app or GridScale plots in the Precipitation app. The section for each
app below will describe the available plot types for that app.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Feature: Add Remove Curve

When I click the "Plot Unmatched" button
Then I should be on the graph page
And I should have a "TimeSeries" plot
And I should have a "Time Series" plot

When I click the "Back" button
Then I should be on the main page
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Feature: Add Remove DieOff Curve
Feature: Add Remove Dieoff Curve

As an unauthenticated user to the app,
with the app in its default state,
Expand All @@ -14,9 +14,9 @@ Feature: Add Remove DieOff Curve
Then I expect the app title to be "MET Air Quality"

@watch
Scenario: addRemoveDieOffCurve
When I set the plot type to "DieOff"
Then the plot type should be "DieOff"
Scenario: addRemoveDieoffCurve
When I set the plot type to "Dieoff"
Then the plot type should be "Dieoff"
When I change the "group" parameter to "Test12"
Then the "group" parameter value matches "Test12"
When I change the "database" parameter to "mv_cmaq_g2o"
Expand All @@ -31,7 +31,7 @@ Feature: Add Remove DieOff Curve

When I click the "Plot Unmatched" button
Then I should be on the graph page
And I should have a "DieOff" plot
And I should have a "Dieoff" plot

When I click the "Back" button
Then I should be on the main page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Feature: Add Remove Valid Time Curve

When I click the "Plot Unmatched" button
Then I should be on the graph page
And I should have a "ValidTime" plot
And I should have a "Valid Time" plot

When I click the "Back" button
Then I should be on the main page
Expand Down
Loading

0 comments on commit b8bd451

Please sign in to comment.