get_vari_z: Extract variables from NetCDF file for a certain depth

View source: R/get_vari_z.R

get_vari_zR Documentation

Extract variables from NetCDF file for a certain depth

Description

Extracts a selected parameter from the netCDF file for a certain depth and formats it into a dataframe.

Usage

get_vari_z(ncdf, var, z, constant_z = F)

Arguments

ncdf

filepath; Name of the netCDF file to extract variable

var

character; Name of the variable to be extracted. Must match short name in netCDF file

z

numeric; Depth at which the variable should be extracted. Must be negative.

constant_z;

If set to TRUE, only the first row of the depth data is used. If FALSE, the depth data is checked for varying water levels. Defaults to FALSE.

Value

dataframe

Author(s)

Jorrit Mesman

Examples

## Not run: 
get_vari_z("output.nc", "temp", z = -1)

## End(Not run)

aemon-j/gotmtools documentation built on April 12, 2024, 4:35 p.m.