temperature: Water Temperatures

View source: R/temperature.R

temperatureR Documentation

Water Temperatures

Description

Functions to extract of estimate water temperatures.

Usage

temperature(x, ...)

Arguments

x

Year.

year

Year.

month

Month of the year. Default is ‘september’.

longitude, latitude

Coordinates at which water temperatures are to be estimated. Units in decimal degrees.

depth

Water depth at which temperatures are to be retrieved. Units are in meters. Alternatively, setting depth = 'surface' will return surface temperatures and setting depth = 'bottom' will return bottom temperatures.

radius.search

Search radius in meters used to average out temperatures within a range of the specied depth.

Examples

# Load all september temperature data as a 3-D matrix:
z <- temperature(2019)

z <- temperature(2019, depth = "surface")

# Load snow crab survey data:
s <- read.scsset(2019, valid = 1, survey = "regular")

# Get june bottom temperatures using snow crab survey coordinates:
z <- temperature(2019, month = "June", depth = "bottom", longitude = lon(s), latitude = lat(s))

# Get september bottom temperatures using snow crab survey coordinates:
z <- temperature(2019, depth = "bottom", longitude = lon(s), latitude = lat(s))

# Read temperatures for the top 50 meters at the snow crab survey's coordinates:
z <- temperature(2019, depth = 0:50, longitude = lon(s), latitude = lat(s))
image(1:nrow(s), as.numeric(dimnames(z)$depth), z, xlab = "Sampling station", ylab = "Depth(m)")

TobieSurette/gulf.data documentation built on Jan. 19, 2025, 7:50 p.m.