View source: R/mars_data_fetch_write_functions.R
marsWriteOvertoppingData | R Documentation |
Receive vector of overtopping data, calculated with marsOvertoppingCheck_bool
,
and write to MARS Analysis Database performance_overtopping table
marsWriteOvertoppingData(
con,
overtopping,
observed_simulated_lookup_uid,
ow_uid,
radar_event_uid,
snapshot_uid
)
con |
Formal class PostgreSQL, a connection to the MARS Analysis database |
overtopping |
vector, logical, TRUE if water level reaches max storage depth |
observed_simulated_lookup_uid |
vector, numeric, 1 if observed, 2 if simulated |
ow_uid |
vector, numeric observation well UID |
radar_event_uid |
vector, numeric event UIDs for rain events from radar data |
snapshot_uid |
vector, numeric |
TRUE
if the write is succesful, or an error message if unsuccessful
marsWritePercentStorageData
, marsWriteDraindownData
marsWriteOvertoppingData(con = mars,
overtopping = summary_250$overtop,
observed_simulated_lookup_uid = summary_250$observed_simulated_lookup_uid,
ow_uid = summary_250$ow_uid,
radar_event_uid = summary_250$rainfall_gage_event_uid,
snapshot_uid = summary_250$snapshot_uid)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.