Description Usage Arguments Details Value
View source: R/sf_CalcTdepGrowthRatesFromROMS.R
Function to get a pkgsf dataframe with spatially-explicit temperature-dependent growth rates from ROMS model output.
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
)
|
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) |
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.
sf dataframe with spataly-explicit temperature-dependent growth rates
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.