Skip to content

Commit

Permalink
Limits AK FIM to branch 0 to subvert memory issue
Browse files Browse the repository at this point in the history
Refs #998
  • Loading branch information
shawncrawley committed Nov 26, 2024
1 parent a4d2917 commit ff35221
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ FROM {max_flows_table} max_forecast
JOIN derived.recurrence_flows_{domain} rf ON rf.feature_id=max_forecast.feature_id
JOIN derived.fim4_featureid_crosswalk AS crosswalk ON max_forecast.feature_id = crosswalk.feature_id
WHERE
max_forecast.discharge_cfs >= rf.high_water_threshold AND
(max_forecast.discharge_cfs >= rf.high_water_threshold AND
rf.high_water_threshold > 0::double precision AND
crosswalk.huc8 IS NOT NULL AND
crosswalk.lake_id = -999;
crosswalk.lake_id = -999)
AND (
('{max_flows_table}' LIKE '%ak%' AND crosswalk.branch_id != 0)
OR '{max_flows_table}' NOT LIKE '%ak%'
);

0 comments on commit ff35221

Please sign in to comment.