easyclimate.physics.geo.linrood_latwgt

Latitudes and weights in the Lin-Rood model

This module provides functions to calculate the latitudes and weights used in the Lin-Rood model, which is commonly employed in atmospheric modeling and semi-Lagrangian transport schemes.

Functions

calc_lat_weight_lin_rood(→ Tuple[numpy.ndarray, ...)

Calculate the latitudes and weights used by the Lin-Rood model.

Module Contents

easyclimate.physics.geo.linrood_latwgt.calc_lat_weight_lin_rood(nlat: int) Tuple[numpy.ndarray, numpy.ndarray]

Calculate the latitudes and weights used by the Lin-Rood model.

The Lin-Rood model requires a specific distribution of latitudes and corresponding weights for numerical integration on a spherical grid. This function generates these values based on the number of desired latitudes.

Parameters

nlatint

Number of latitudes. Must be at least 2 to define a valid grid (from pole to pole).

Returns

Tuple[ndarray, ndarray]

A tuple containing two numpy arrays: - lat : ndarray

Array of latitudes in degrees, ranging from -90 (South Pole) to 90 (North Pole).

  • weightndarray

    Array of weights corresponding to each latitude, used for numerical integration.

Tip

The weights are computed such that they are suitable for use in the Lin-Rood semi-Lagrangian transport scheme. The latitudes are uniformly spaced between the poles.

References