Skip to content

Commit

Permalink
adding dummy data for some service layers that were empty
Browse files Browse the repository at this point in the history
  • Loading branch information
nickchadwick-noaa committed Jan 23, 2025
1 parent 948da07 commit 2c73d72
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Core/IAM/Users/wrds-service-account-policy.json.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:ListBucket"
"s3:ListBucket",
"s3:PutObjectAcl"
],
"Resource": "*"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -396,3 +396,13 @@ service_data AS (
SELECT *
INTO publish.rfc_max_forecast
FROM service_data;

INSERT INTO publish.rfc_max_forecast (
is_record_forecast,
generation_time,
update_time
) VALUES (
TRUE,
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')
);
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,14 @@ INTO publish.srf_48hr_rapid_onset_flooding_hucs_hi
FROM derived.huc10s_hi AS hucs
JOIN derived.featureid_huc_crosswalk AS crosswalk ON hucs.huc10 = crosswalk.huc10
JOIN publish.srf_48hr_rapid_onset_flooding_hi AS rof ON crosswalk.feature_id = rof.feature_id
GROUP BY hucs.huc10, hucs.low_order_reach_count, hucs.total_low_order_reach_length, hucs.total_low_order_reach_miles, hucs.geom
GROUP BY hucs.huc10, hucs.low_order_reach_count, hucs.total_low_order_reach_length, hucs.total_low_order_reach_miles, hucs.geom

INSERT INTO publish.srf_48hr_rapid_onset_flooding_hucs_hi (
nwm_waterway_length_flooded_percent,
reference_time,
update_time
) VALUES (
1.0,
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')
);
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,14 @@ INTO publish.srf_48hr_rapid_onset_flooding_hucs_prvi
FROM derived.huc10s_prvi AS hucs
JOIN derived.featureid_huc_crosswalk AS crosswalk ON hucs.huc10 = crosswalk.huc10
JOIN publish.srf_48hr_rapid_onset_flooding_prvi AS rof ON crosswalk.feature_id = rof.feature_id
GROUP BY hucs.huc10, hucs.low_order_reach_count, hucs.total_low_order_reach_length, hucs.total_low_order_reach_miles, hucs.geom
GROUP BY hucs.huc10, hucs.low_order_reach_count, hucs.total_low_order_reach_length, hucs.total_low_order_reach_miles, hucs.geom

INSERT INTO publish.srf_48hr_rapid_onset_flooding_hucs_prvi (
nwm_waterway_length_flooded_percent,
reference_time,
update_time
) VALUES (
1.0,
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')
);

0 comments on commit 2c73d72

Please sign in to comment.