thredds_extract: Extract FVCOM outputs from the SAMS thredds server

View source: R/thredds.R

thredds_extractR Documentation

Extract FVCOM outputs from the SAMS thredds server

Description

This function is used to extract FVCOM outputs from the SAMS thredds server.

Usage

thredds_extract(dat, var, server_catalog, verbose = TRUE, prompt = FALSE)

Arguments

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 extract).

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.

Details

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.)

Value

The function returns a list, with one element for each date name in dat that contains the associated information in dat and model predictions.

Author(s)

Edward Lavender


edwardlavender/fvcom.tbx documentation built on Nov. 26, 2022, 10:28 p.m.