get_var | R Documentation |
This function fetches variables for given depths from a netcdf file created by running GOTM-FABM
get_var(
file = "output.nc",
var = "temp",
z_out = NULL,
t_out = NULL,
res = 0.5,
reference = "surface",
long = FALSE
)
file |
Path to the netcdf file |
var |
Name of the variable to get |
z_out |
Vector of depths from which to get the variable. If no depths are selected (NULL, the default) all depths from the lowest to the highest depth in a equal distance of 'res' |
t_out |
Vector of times (as POSIX) for which the variable should be fetched. If no times are selected (NULL, the default) all available times from the netcdf file are returned |
res |
Spatial resolution for depths, if no depths are explicitly specified by 'z_out' |
reference |
Either "surface" or "bottom". The reference point for the depths sepified in 'z_out' |
long |
Boolean, output the variable in long format? Defaults to FALSE |
Johannes Feldbauer
## Not run:
temp <- get_var(file = "output.nc", var = "temp")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.