sqlite_opts | R Documentation |
Generate a list for passing to the output_format_opts
argument of
read_forecast and read_obs. sqlite_opts
is the general
set of options, also suitable for forecast data, and fctable_opts
and
obstable_opts
have specific defaults to be used with
read_forecast and read_obs respectively.
sqlite_opts(
path = NULL,
template = "fctable_det",
index_cols = c("fcst_dttm", "lead_time", "SID"),
synchronous = c("off", "normal", "full", "extra"),
journal_mode = c("delete", "truncate", "persist", "memory", "wal", "off"),
remove_model_elev = FALSE
)
fctable_opts(
path = NULL,
template = "fctable",
index_cols = c("fcst_dttm", "lead_time", "SID"),
synchronous = c("off", "normal", "full", "extra"),
journal_mode = c("delete", "truncate", "persist", "memory", "wal", "off"),
remove_model_elev = FALSE
)
obstable_opts(
path = NULL,
template = "obstable",
index_cols = "auto",
synchronous = c("off", "normal", "full", "extra"),
journal_mode = c("delete", "truncate", "persist", "memory", "wal", "off")
)
path |
If not NULL, sqlite files are generated and written to the directory specified here. |
template |
The template for the filenames of the sqlite files. See
|
index_cols |
The columns to index by. In the case of
|
synchronous |
The synchronus setting for sqlite files. The defualt is "off", but could also be "normal", "full", or "extra". See https://www.sqlite.org/pragma.html#pragma_synchronous for more information. |
journal_mode |
The journal mode for the sqlite files. The default is "delete", but can also be "truncate", "persist", "memory", "wal", or "off". See https://www.sqlite.org/pragma.html#pragma_journal_mode for more information. |
remove_model_elev |
Set to TRUE to not include model elevation in the sqlite output files. For multi model ensembles, members having different model elevations from each other will make it impossible to include all members in the same row and thus break unique constraints for the row indexing. |
A list with options for writing sqlite files
sqlite_opts()
sqlite_opts(path = tempdir())
sqlite_opts(path = tempdir(), template = "fctable_eps_all_leads")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.