Reference¶
The vast majority of the functionality provided by PyGeode is available within
the top level namespace of the module pygeode, along with the
fundamental classes Var, Axis, and Dataset. The
contents of this top level namespace is summarized here. Several submodules
with further functionality are also included.
pygeode
The top level pygeode namespace
|
Returns a |
|
Returns a |
|
Returns a |
|
Fundamental Classes
|
The base class of all data objects in PyGeode. |
|
An object that describes a single dimension of a |
|
Container class for |
Axis Types
|
Generic axis object identified by its name. |
|
Longitude axis. |
|
Latitude axis. |
|
Geometric height axis. |
|
Pressure height axis. |
|
Hybridized vertical coordinate axis. |
|
Time axis describing the standard Gregorian calendar. |
|
Time axis describing a model 365-day calendar. |
|
Time axis describing a model 360-day calendar. |
|
Time axis describing a calendar with no months or years. |
|
Non-coordinate axis (disables nearest-neighbour value matching, etc.) |
Axis helper functions
|
Constructs a regularly spaced |
|
Rotates longitude axis to start at a new origin. |
|
Constructs a regularly spaced |
|
Constructs a Gaussian |
|
Creates a |
|
Creates a |
|
Creates a |
|
Creates a |
|
Creates a |
|
Creates a |
|
Creates a |
|
Tries to convert a collection of objects into a single dataset. |
|
Concatenates multiple Var or Dataset objects together. |
|
Creates an ensemble out of a set of similar variables. |
|
Multiplies an arbitrary number of variables together |
|
Adds an arbitrary number of variables together |
|
Sign (+1 = positive, -1 = negative). |
|
Natural exponent. |
|
Natural logarithm. |
|
Base-10 logarithm. |
|
Cosine of angle (in radians). |
|
Sine of angle (in radians). |
|
Tangent of angle (in radians). |
|
Cosine of angle (in degrees) |
|
Sine of angle (in degrees) |
|
Tangent of angle (in degrees) |
|
Hyperbolic sine. |
|
Hyperbolic cosine. |
|
Hyperbolic tangent. |
|
Inverse sine (in radians). |
|
Inverse cosine (in radians). |
|
Inverse tangent (in radians). |
|
Inverse tangent. |
|
Inverse sine (in degrees). |
|
Inverse cosine (in degrees). |
|
Inverse tangent (in degrees). |
|
Inverse tangent. |
|
Inverse hyperbolic sine. |
|
Inverse hyperbolic cosine. |
|
Inverse hyperbolic tangent. |
|
Square root. |
|
Absolute value. |
|
Replace nan with zero and inf with finite numbers. |
|
Element-wise minimum of the two given arguments. |
|
Element-wise maximum of the two given arguments. |
|
Real part of a complex array. |
|
Imaginary part of a complex array. |
|
Angles (arguments) of a complex array. |
|
Complex conjugate of a complex array. |
|
Clips values to given interval. |
|
Computes an average value for each day. |
|
Averages over each month. |
|
Averages over each season. |
|
Averages over each year. |
|
Computes an average value for each time of day (averages over all years, months, days). |
|
Computes a climatological mean. |
|
Computes a nan-aware average value for each day. |
|
Computes daily standard deviation. |
|
Computes nan-aware daily standard deviation. |
|
Counts number of non-nan data points contributing to daily mean. |
|
For each month, day, hour, etc., compute a least-squares fit to a linear trend over all years. |
|
Reconstructs linear timeseries from a given trend. |
… and other similar routines; see Climat module
|
Given two time axes, return new axes such that their values are comparable. |
|
Returns time interval between two dates. |
|
Returns the interval between values of a given time axis. |
|
Convert a variable with a 2D time axis into one with a 1D time axis. |
|
Modifies the auxiliary arrays associated with a time axis. |
|
Returns time axis values relative to a given reference date. |
|
Removes leap day(s) from data on a standard calendar. |
|
Convert a variable with a 1D time axis into one with a 2D time axis. |
|
Returns a modified date dictionary such that all fields lie within standard values. |
|
Computes Pearson correlation coefficient between variables X and Y. |
|
Computes least-squares linear regression of Y against X. |
|
Computes least-squares multiple regression of Y against variables Xs. |
|
Computes the mean value and statistics of X - Y. |
|
Computes the mean value and statistics of X - Y, assuming that individual elements of X and Y can be directly paired. |
|
Computes the mean value of X and statistics relevant for a test against the hypothesis that it is 0. |
|
Computes the leading Empirical Orthogonal Function(s) for the given variable. |
|
Finds coupled EOFs of two fields. |
|
Plot variable, showing a contour plot for 2d variables or a line plot for 1d variables. |
|
Create grid of contour plots of multiple variables. |
|
Produce line plots of a list of 1D variables on a single figure. |
|
Create a contour plot (lines, filled, or both) from a variable. |
|
Create a line plot of a variable. |
|
Create a scatter plot from two variables with the same shape. |
|
Create a quiver plot from two variables. |
|
Create a streamplot from two variables. |
|
Add significance shading to a contour plot from a variable. |
|
Create a histogram of values taken by a variable. |
|
Returns kwargs to |
|
Returns kwargs to |
|
Returns kwargs to |
|
Returns kwargs to |
|
Converts a PyGeode Dataset into an xarray Dataset. |
|
Converts an xarray Dataset into a PyGeode Dataset. |