netCDF_Extract4DVarAsSF: Create a 'sf' dataframe representing a single time step and...

View source: R/netCDF_Extract4DVarAsSF.R

netCDF_Extract4DVarAsSFR Documentation

Create a sf dataframe representing a single time step and depth layer from a ROMS 4DVar in a netcdf file

Description

Function to create a sf dataframe representing a single time step and depth layer from a ROMS 4DVar in a netcdf file.

Usage

netCDF_Extract4DVarAsSF(
  netcdf,
  roms_grid,
  variable,
  timeslice = 1,
  layer = 1,
  verbose = FALSE
)

Arguments

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

Details

Creates an sf dataframe representing a single time step and depth layer from a ROMS 4DVar in a netcdf file.

Value

A sf dataframe object representing the layer


wStockhausen/wtsROMS documentation built on Feb. 2, 2025, 9:16 p.m.