findValidSnowCrabGridPoints: Find valid snow crab oax grid points

View source: R/calculations.R

findValidSnowCrabGridPointsR Documentation

Find valid snow crab oax grid points

Description

This function identifies points that should be included when calculating various metrics using the oax results for snow crab analysis.

Usage

findValidSnowCrabGridPoints(
  longitude,
  latitude,
  pressure = NULL,
  checkNthl = TRUE,
  checkIgnore = TRUE,
  checkPressure = FALSE,
  pressureMinimum = 20,
  pressureMaximum = 200
)

Arguments

longitude, latitude

an optional numeric vector of longitudes and latitudes, note that both must be supplied if checkNthl or checkIgnore are TRUE.

pressure

an optional numeric vector of pressure, ignored if checkPressure is FALSE.

checkNthl

a logical value indicating whether or not to check points in western Northumberland, default is TRUE.

checkIgnore

a logical value indicating whether or not to check for points that have been identified to be ignored.

checkPressure

a logical value indicating whether or not to check points based on the pressure, default is FALSE.

pressureMinimum

a numeric value indicating the minimum pressure value for valid points, default is 20. If checkPressure is FALSE, then ignored.

pressureMaximum

a numeric value indicating the maximum pressure value for valid points, default is 200. If checkPressure is FALSE, then ignored.

Details

The oax snow crab analysis grids have varied over the years. When a new one was developed, for continuity to past results, various points are ommited from the analysis. See the source code for more details, but in general, there are a handful of points that are omitted from the western Northumberland strait, various ones to be ignored along the coast, and points where the bottom depth of a grid point that is less than 20m and greater than 200 m.

Value

a vector of logical values, TRUE indicating a point that should be included in analysis.

Author(s)

Chantelle Layton


clayton33/csasMarPhys documentation built on June 8, 2025, 3:10 a.m.