View source: R/netCDF_Extract4DVarAsSF.R
netCDF_Extract4DVarAsSF | R Documentation |
sf
dataframe representing a single time step and depth layer from a ROMS 4DVar in a netcdf fileFunction to create a sf
dataframe representing a single time step and depth layer from a ROMS 4DVar in a netcdf file.
netCDF_Extract4DVarAsSF(
netcdf,
roms_grid,
variable,
timeslice = 1,
layer = 1,
verbose = FALSE
)
netcdf |
- path to netcdf file with ROMS model output, or a ncdf4 object connected to a netcdf file |
roms_grid |
- roms grid as an sf dataframe object |
variable |
- variable name to extract |
timeslice |
- time slice from file to extract |
layer |
- depth layer to extract [positive numbers start from bottom; non-negative numbers start from surface] |
verbose |
- flag (T/F) to print info |
Creates an sf dataframe representing a single time step and depth layer from a ROMS 4DVar in a netcdf file.
A sf
dataframe object representing the layer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.