API#
Ocean#
Ocean module containin algorithms specifically built to work with ocean data
- class dmelon.ocean.DispersionRelation[source]#
Bases:
object
Dispersion Relation
Methods
low_freq
(m)Compute the scaled wavenumber and frequency for the mode m
ARGO#
ARGO module made for some specific usage in downloading data from the GDAC center using rsync and screen
BM95#
Python implementation of the Boulanger & Menkes 1995 paper
- class dmelon.ocean.bm95.Projection(sea_level, nmodes)[source]#
Bases:
object
Projection object that computes the projection vector, wave coefficient vector and decomposed sea level as calculated by J.-P.Boulanger & C.Menkes (1995).
It constructs the meridional structures when instantiated.
- Attributes:
decomposed_sea_level
Decompose the sea level
meridional_structures
Return the meridional structures used for the decomposition
projection_vector
Return the computed projection vector b
wave_coefficient_vector
Return the computed wave coefficient vector r.
- property decomposed_sea_level#
Decompose the sea level
- property meridional_structures#
Return the meridional structures used for the decomposition
- property projection_vector#
Return the computed projection vector b
- property wave_coefficient_vector#
Return the computed wave coefficient vector r. This variable represents the weights of the corresponding meridional structure present in the original sea level signal
- dmelon.ocean.bm95.hermite_function(n, x)[source]#
Evaluates the hermite function of order n at a point x
Spectral#
Module containing spectral methods
Filters#
Lanczos filter port from MATLAB
- dmelon.spectral.filters.lanczosfilter(X, Cf, dT=1, M=100, kind='low', *args)[source]#
Core function that filters the signal in either low or high pass
- dmelon.spectral.filters.lowpass_cosine_filter_coef(Cf, M)[source]#
Compute the lowpass coeficients using the cut frequency Cf
Power#
Module that contains algorithms mostly using the power spectra
Wavelet#
Submodule containing wavelet methods
Statistics#
Statistics module
Plotting#
Plotting module that contains most boilerplate code I use for my plots
Utils#
Helper functions that fit into a more general category
- dmelon.utils.check_folder(base_path: str, name: Optional[str] = None) None [source]#
Create a folder if it does not exists
- dmelon.utils.findPointsInPolys(pandas_df: DataFrame, shape_df: GeoDataFrame, crs: str = 'EPSG:4326') GeoDataFrame [source]#
Filter DataFrame by their spatial location within a GeoDataFrame