Table of Contents

Class: HDIVERGENCE diffoperators.py

Divergence operator

Methods   
__init__
hdivergence
  __init__ 
__init__ (
        self,
        lats,
        lons,
        asdegrees=1,
        PBlon=0,
        )

Constructor for the class HDIVERGENCE

Arguments:

lats
Array of latitudes
lons
Array of longitudes

Optional Arguments:

asdegrees
Bit parameter indicating wether lats and lons are passed as degrees (default, 1) or not (radians, 0).
PBlon
Bit parameter indicating the use of periodic boundary conditions in longitude. Defaults to 0 (no PB).
  hdivergence 
hdivergence (
        self,
        u,
        v,
        R=6.37e6,
        )

Horizontal field divergence

Arguments:

u
X component of a field (NumPy array) defined in lats, lons
v
Y component of a field (NumPy array) defined in lats, lons

Optional Arguments:

R
The radius of the sphere. (Defaults to the radius of the Earth 6.37e6)

Table of Contents

This document was automatically generated on Mon Dec 9 15:58:37 2002 by HappyDoc version 2.1