Skip to contents

This function generates a bottom temperature indicator from a GLORYS netCDF file. The function passes data through EDABUtilities::make_2d_summary_ts, which provides summary statistics of 2d gridded data as time series by area. Converts .nc files to data frame.

This function generates a sea surface temperature indicator from an OISST ERDDAP netCDF file. The function passes data through EDABUtilities::make_2d_summary_ts, which provides summary statistics of 2d gridded data as time series by area. Converts .nc files to data frame.

This function generates a salinity indicator from a GLORYS netCDF file. The function passes data through EDABUtilities::make_2d_summary_ts, which provides summary statistics of 2d gridded data as time series by area. Converts .nc files to data frame.

This function generates a chlorophyll-a indicator from an OCCCI ERDDAP netCDF file. The function passes data through EDABUtilities::make_2d_summary_ts, which provides summary statistics of 2d gridded data as time series by area. Converts .nc files to data frame.

This function generates a primary productivity indicator from an ERDDAP netCDF file. The function passes data through EDABUtilities::make_2d_summary_ts, which provides summary statistics of 2d gridded data as time series by area. Converts .nc files to data frame.

Usage

lhs %>% rhs

lhs %>% rhs

lhs %>% rhs

lhs %>% rhs

lhs %>% rhs

Arguments

data.in

Either a character vector of full input file names for a list of spatRasters

output.files

character vector of full output file names corresponding to each input file

shp.file

string. Shape file you wish to crop each input file to

var.name

string. Variable name you wish to extract = 'pp'

area.names

character vector. Names of shape file areas you want to summarize.

statistic

string. Which statistic to calculate = 'mean'

agg.time

character. Time scale to calculate over (days, doy, months, season, or years)

tz

string. Time zone to convert. No correction if NA

touches

logical. If TRUE, all cells touched by lines or polygons will be masked, not just those on the line render path, or whose center point is within the polygon

write.out

logical. If TRUE, will write a netCDF file with output.files. If FALSE will return a list of spatRasters

Value

Saves R object bottomT, returns bottom temp indicator in a data frame summarized by timestep for each area.names

Saves R object sst, returns sea surface temp indicator in a data frame summarized by timestep for each area.names

Saves R object sal, returns salinity indicator in a data frame summarized by timestep for each area.names

Saves R object chl, returns chlorophyll-a indicator in a data frame summarized by timestep for each area.names

Saves R object pp, returns primary production indicator in a data frame summarized by timestep for each area.names