Other Functions
signalproc module
This module contains functions for performing common digital signal processing tasks. Many are utilized by other modules within the package. In the context of the cmv and field modules, these functions are used primarily to calculate relationships between signals, specifically relative delays.
Signal Processing Functions
|
Calculate an averaged power spectral density for a signal. |
|
Calculate a transfer function between two signals, along with their coherence. |
|
Compute the cross correlation between two signals, including the full range of possible time lags. |
|
Compute the delay based on the phase of a transfer function |
|
Compute the delay between two timeseries using cross correlation. |
|
Compute the delay between two sets of timeseries using cross correlation. |
|
Interpolate a transfer function in the frequency domain by magnitude and phase independently. |
|
Apply a time delay to a transfer function. |
spatial module
Coordinates and Vector Projections
These functions are utilized as parts of the CMV and field modules. The first two are used to transform between latitude and longitude coordinates and a cartesian frame more suitable for use with the CMV and field routines. The remaining functions are used to perform vector operations on the field of points within the cartesian coordinate frame.
|
Convert a latitude/longitude pair from WGS84 into UTM coordinates. |
|
Convert from UTM coordinates to latitude/longitude (WGS84) |
|
Convert a set of vectors into a list of distances in a given direction. |
|
Compute a list of vectors pointing from a reference origin to each site. |
|
Computes intersection, C, of the lines perpendicular to the tips of two vectors (A and B) who share a starting point at the origin. |
Basic Vector Operations
The following functions are simply implementations of common vector operations that are utilized by other sections of the code. They are only included here for completeness.
|
Vector dot product for 2-D cartesian |
|
Get the unit vector matching a vector's direction |
|
Get the magnitude of a vector |
|
2D polar vector to cartesian form |
|
2D cartesian vector to polar form |
|
2D rotation of a vector in cartesian form |
stats module
Variability Metrics
These functions represent metrics that are used to analyze variability.
|
Compute the variability score as proposed by Lave et al. [1]. |
|
Compute the variability index, defined by Stein et al. [1]. |
|
Compute the Daily Aggregate Ramp Rate as described by Van Haaren et al. [1]. |
|
Calculate a single-day percentile-based summary of data by aggregating multiple days. |
Basic Statistics
These are just implementations of basic statistical error calculations and are only included as shortcuts for the user.
|
Computation of Root Mean Squared Error |
|
Computation of Mean Squared Error |
|
Time series of Squared Error |
|
Computation of Mean Absolute Error |
|
Time series of Absolute Error |
|
Time series of Bias Error |
|
Computation of Mean Bias Error |
irradiance module
This module solely serves as a helper, wrapping the pvlib function pvlib.irradiance.clearsky_index, which doesn’t natively handle some of the data types used by this package.
Functions
|
Wrapper for pvlib.irradiance.clearsky_index. |