Skip to contents

Subsets ZooMSS model output to include only specified size range, useful for focusing analysis on particular size ranges.

Usage

extractSizeRange(mdl, var, min_size, max_size)

Arguments

mdl

ZooMSS model results object containing model parameters and output arrays

var

Character string specifying which variable to extract (e.g., "N", "Z", "Growth")

min_size

Minimum size (log10 grams) to extract

max_size

Maximum size (log10 grams) to extract

Value

Array with same dimensions as original variable but subsetted size range

Details

Extract Size Range from ZooMSS Output

This function extracts a subset of size classes from the specified ZooMSS model variable. Useful for analyzing specific size ranges (e.g., microzooplankton, mesozooplankton) or excluding boundary effects from model analysis. The function converts log10 size values to size class indices automatically.

Examples

if (FALSE) { # \dontrun{
# Run ZooMSS model
results <- zoomss_model(input_params, Groups)

# Extract mesozooplankton size range from abundance data
meso_abundance <- extractSizeRange(results, "N", min_size = -8, max_size = -5)

# Extract microzooplankton size range from growth data
micro_growth <- extractSizeRange(results, "Growth", min_size = -10, max_size = -8)
} # }