cilVolume: Calculate cold intermediate layer thickness

View source: R/calculations.R

cilVolumeR Documentation

Calculate cold intermediate layer thickness

Description

Calculate cold intermediate layer thickness

Usage

cilVolume(T, p, longitude, latitude, dlongitude, dlatitude, Tlim = 4)

Arguments

T

a vector of temperatures

p

a vector of pressure

longitude, latitude

the location

dlongitude, dlatitude

the grid spacing the longitude and latitude coordinates respectively

Tlim

cold intermediate layer temperature limit, default of 4

Details

This function calculates the thickness and volume of the cold intermediate layer at a given location. The thickness at 3 different locations along the profile is calculated in the following manner. If the surface value is below Tlim, the thickness is calculated as (p_i + p_(i+1)) / 2. If the bottom value, (p_i - p_(i-1))/2. If interior, (p_(i+1) - p(i-1)) / 2.

Value

a list with thickness with units kilometer, volume with units kilometer^3, and minimum temperature.

Author(s)

Chantelle Layton


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