generated from NOAA-OWP/owp-open-source-project-template
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #802 from NOAA-OWP/new-public-5day-services
This PR implements two new public 5 day services: * 5 Day MRF NBM Max Flood Inundation Extent * 5 Day NBM High Flow Magnitude
- Loading branch information
Showing
8 changed files
with
2,162 additions
and
1 deletion.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
...db_postprocess_sql/summaries/mrf_nbm_10day_max_high_flow_magnitude/5day_public_subset.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
DROP TABLE IF EXISTS publish.mrf_nbm_5day_max_high_flow_magnitude_public; | ||
|
||
SELECT | ||
feature_id_str, | ||
strm_order, | ||
name, | ||
huc6, | ||
state, | ||
nwm_vers, | ||
reference_time, | ||
maxflow_5day_cfs, | ||
recur_cat_5day, | ||
high_water_threshold, | ||
flow_2yr, | ||
flow_5yr, | ||
flow_10yr, | ||
flow_25yr, | ||
flow_50yr, | ||
update_time, | ||
geom | ||
INTO publish.mrf_nbm_5day_max_high_flow_magnitude_public | ||
FROM publish.mrf_nbm_10day_max_high_flow_magnitude AS main | ||
JOIN derived.channels_conus AS channels ON main.feature_id = channels.feature_id | ||
WHERE public_fim_domain = True; | ||
|
||
INSERT INTO publish.mrf_nbm_5day_max_high_flow_magnitude_public ( | ||
reference_time, | ||
update_time | ||
) VALUES ( | ||
to_char('1900-01-01 00:00:00'::timestamp without time zone, 'YYYY-MM-DD HH24:MI:SS UTC'), | ||
to_char(now()::timestamp without time zone, 'YYYY-MM-DD HH24:MI:SS UTC') | ||
); |
14 changes: 14 additions & 0 deletions
14
...ions/viz_db_postprocess_sql/summaries/mrf_nbm_10day_max_inundation/5day_public_subset.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
-- We'll temporarily increase work_mem to 512MB, to help with performance on PostGIS spatial joins (default is 4MB) | ||
SET work_mem TO '1024MB'; | ||
DROP TABLE IF EXISTS publish.mrf_nbm_max_inundation_5day_public; | ||
|
||
SELECT | ||
inun.feature_id_str, | ||
inun.geom, | ||
inun.streamflow_cfs, | ||
inun.reference_time, | ||
to_char(now()::timestamp without time zone, 'YYYY-MM-DD HH24:MI:SS UTC') AS update_time | ||
INTO publish.mrf_nbm_max_inundation_5day_public | ||
FROM publish.mrf_nbm_max_inundation_5day as inun | ||
JOIN derived.channels_conus AS channels ON inun.feature_id = channels.feature_id | ||
WHERE public_fim_domain = True; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.