Skip to content

Commit

Permalink
High Water Probability HUCS SQL Fix (#581)
Browse files Browse the repository at this point in the history
I found an issue in UAT - this was my fault for missing this in my
testing. Sorry!
  • Loading branch information
TylerSchrag-NOAA authored Nov 1, 2023
1 parent 53e2fd9 commit 664e7aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SELECT
hucs.huc8,
TO_CHAR(hucs.huc8, 'fm00000000') AS huc8_str,
hucs.total_nwm_features,
count(hwp.feature_id)::double precision / hucs.total_nwm_features::double precision AS nwm_features_flooded_percent,
(count(hwp.feature_id)::double precision / hucs.total_nwm_features::double precision)*100 AS nwm_features_flooded_percent,
avg(hours_3_to_120) as avg_prob,
to_char('1900-01-01 00:00:00'::timestamp without time zone, 'YYYY-MM-DD HH24:MI:SS UTC') AS reference_time,
to_char(now()::timestamp without time zone, 'YYYY-MM-DD HH24:MI:SS UTC') AS update_time,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SELECT
hucs.huc10,
TO_CHAR(hucs.huc10, 'fm0000000000') AS huc10_str,
hucs.total_nwm_features,
count(hwp.feature_id)::double precision / hucs.total_nwm_features::double precision AS nwm_features_flooded_percent,
(count(hwp.feature_id)::double precision / hucs.total_nwm_features::double precision)*100 AS nwm_features_flooded_percent,
avg(srf_prob) as avg_prob,
to_char('1900-01-01 00:00:00'::timestamp without time zone, 'YYYY-MM-DD HH24:MI:SS UTC') AS reference_time,
to_char(now()::timestamp without time zone, 'YYYY-MM-DD HH24:MI:SS UTC') AS update_time,
Expand Down

0 comments on commit 664e7aa

Please sign in to comment.