View source: R/read_analysis.R
read_analysis | R Documentation |
read_analysis
generates file names, based on the arguments given,
reads data from them, and optionally performs a transformation on those data.
Works in much the same as read_forecast
except dates must be
given explictly. These can be generated from seq_dates
. Also,
data are returned by default. If just want to use this function for
interpolating to points and writing the results to sqlite files, make sure to
set return_data = FALSE
.
read_analysis(
dttm,
analysis_model,
parameter,
members = NULL,
members_out = members,
lags = NULL,
vertical_coordinate = c("pressure", "model", "height", "depth", NA),
file_path = getwd(),
file_format = NULL,
file_template = "an{YYYY}{MM}{DD}{HH}.grib",
file_format_opts = list(),
transformation = c("none", "interpolate", "regrid", "xsection", "subgrid"),
transformation_opts = NULL,
param_defs = get("harp_params"),
output_file_opts = sqlite_opts(),
return_data = TRUE,
merge_lags = TRUE,
show_progress = TRUE,
stop_on_fail = FALSE,
start_date = NULL,
end_date = NULL,
by = "6h"
)
When return_date = TRUE
, a harp_analysis object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.