|
Horizontal gradient operator
|
Methods
|
|
__init__
hgradient
|
|
|
__init__
|
__init__ (
self,
lats,
lons,
asdegrees=1,
PBlon=0,
)
Constructor for the class HGRADIENT
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).
|
|
|
hgradient
|
hgradient (
self,
phi,
R=6.37e6,
)
Horizontal gradient
Arguments:
-
phi
- 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)
|
|