thredds_extract | R Documentation |
This function is used to extract FVCOM outputs from the SAMS thredds server.
thredds_extract(dat, var, server_catalog, verbose = TRUE, prompt = FALSE)
dat |
A dataframe which defines the FVCOM array date names, hours, layers (if applicable) and mesh cell IDs for which FVCOM predictions should be extracted from FVCOM arrays (see |
var |
A character which defines the FVCOM variable for which predictions are to be extracted. |
server_catalog |
A character that defines the URL of the catalog. |
verbose |
A logical input that defines whether or not to print messages to the console. These can be useful for monitoring progress. |
prompt |
A logical input that defines whether or not to prompt the user before each query. |
This function can only be used to query .nc files.
All files corresponding to date names in dat
must be located in server_catalog
,
Across all files, only one variable can be queried.
For each file, an iterative approach is used to extract the predictions for hour/layer/mesh IDs specified in dat
. (This may be refined in the future.)
The function returns a list, with one element for each date name in dat
that contains the associated information in dat
and model predictions.
Edward Lavender
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.