sf_CalcTdepGrowthRatesFromROMS: Get a pkgsf dataframe with spatially-explicit...

Description Usage Arguments Details Value

View source: R/sf_CalcTdepGrowthRatesFromROMS.R

Description

Function to get a pkgsf dataframe with spatially-explicit temperature-dependent growth rates from ROMS model output.

Usage

1
2
3
4
5
6
7
8
sf_CalcTdepGrowthRatesFromROMS(
  rateFcn = postflexionLarvae_GrowthRate_WW,
  roms_grid = wtsROMS::getGrid("CGOA"),
  roms_mo = "~/Work/Projects/ROMS/CGOA/cgoa_avg_0005.nc",
  timeslice = 1,
  vertical_layer = 1,
  crs = NULL
)

Arguments

rateFcn

- temperature-dependent rate function to use

roms_grid

- sf dataframe representing a ROMS grid object

roms_mo

- sf dataframe representing a ROMS model object, or path to a ROMS model netcdf file

timeslice

- time slice to extract (if roms_mo is a file path)

vertical_layer

- vertical layer to extract (if roms_mo is a file path)

crs

- sf-style coordinate reference system object, or NULL (default)

Details

Output dataframe will be in the coordinate reference system of the ROMS model grid unless the input crs was not NULL (the default).

@note This function can also calculate spatially-explicit egg hatch success if egg_HatchSuccess is given as the rateFcn. The "growth_rate" column of the resulting sf dataframe will contain the hatch success information.

Value

sf dataframe with spataly-explicit temperature-dependent growth rates


wStockhausen/rPacificCod documentation built on March 25, 2021, 2:39 p.m.