Skip to content

Commit

Permalink
Dieoff station plots fully work
Browse files Browse the repository at this point in the history
  • Loading branch information
mollybsmith-noaa committed Nov 30, 2023
1 parent c4aa691 commit beecdda
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion MATScommon
2 changes: 1 addition & 1 deletion METexpress
Submodule METexpress updated 1 files
+1 −1 MATScommon
3 changes: 2 additions & 1 deletion apps/cb-metar/server/dataFunctions/data_dieoff.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ dataDieoff = function (plotParams, plotFunction) {
statement = "Station plot -- no one query.";
const tss = new matsMiddleDieoff.MatsMiddleDieoff(cbPool);
rows = tss.processStationQuery(
queryVariable,
statType,
variableDetails[0],
sitesList,
model,
null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ WHERE m0.type = 'DD'
AND m0.version = 'V01'
AND m0.model = '{{vxMODEL}}'
AND m0.region = '{{vxREGION}}'
AND m0.fcstLen IN [0,3,6,9,12,15,18,21,24,30,36,42,48]
AND (m0.fcstLen % 3) = 0
AND m0.fcstValidEpoch %(24 * 3600) / 3600 IN [{{vxVALID_TIMES}}]
AND m0.fcstValidEpoch >= {{vxFROM_SECS}}
AND m0.fcstValidEpoch <= {{vxTO_SECS}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ WHERE m0.type = 'DD'
AND m0.version = 'V01'
AND m0.model = '{{vxMODEL}}'
AND m0.region = '{{vxREGION}}'
AND m0.fcstLen IN [0,3,6,9,12,15,18,21,24,30,36,42,48]
AND (m0.fcstLen % 3) = 0
AND m0.fcstValidEpoch - m0.fcstLen * 3600 = {{vxFROM_SECS}}
GROUP BY m0.fcstLen
ORDER BY fcst_lead;
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ WHERE m0.type = 'DD'
AND m0.version = 'V01'
AND m0.model = '{{vxMODEL}}'
AND m0.region = '{{vxREGION}}'
AND m0.fcstLen IN [0,3,6,9,12,15,18,21,24,30,36,42,48]
AND (m0.fcstLen % 3) = 0
AND (m0.fcstValidEpoch - m0.fcstLen * 3600) %(24 * 3600) / 3600 IN [{{vxUTC_CYCLE_START}}]
AND m0.fcstValidEpoch - m0.fcstLen * 3600 >= {{vxFROM_SECS}}
AND m0.fcstValidEpoch - m0.fcstLen * 3600 <= {{vxTO_SECS}}
Expand Down

0 comments on commit beecdda

Please sign in to comment.