love
This module is used to manage the love numbers for the earth deformation calculation.
Functions
- slcode.love.love_lm(num, maxdeg)
the love_lm funtion get from love numbers the h_lm spherical coefficient.
Attribute
- numnp.array([n,])
Love number coefficient of the size of the entry file
- maxdegint
The maximum harmonic coefficient degree.
Returns
- h_lmnp.array([(maxdeg+1)(maxdeg+2)/2,])
Array of the love number repeated on harmonic degree orders.
- slcode.love.get_tlm(maxdeg, a, Me)
The get_lm function generate the T spherical harmonic coefficient as defined in Theory.
Attribute
- maxdegint
maximum degree of spherical harmonic defined in the model parameters.
- afloat
The earth radius in meters.
- Mefloat
The earth mass.
Returns
- T_lmnp.array([(maxdeg+1)(maxdeg+2)/2])
The T harmonic coefficient
CLASS
- class slcode.love.LOVE(maxdeg, way, time_step, a, Me, type='time', T=None)
The LOVE class is used to keep the love numbers values and prepare them for the computation of geoïd and ground vertical motion. The love number are calculted and loaded from a file as described in Implementation of Love numbers. This function also include the possibility to compute the love numbers from normal modes love numbers parameters.
Attributes
- maxedegint
The spherical harmonic maximum degree.
- waystr
The file path to the ALMA output file. This file must follow the described pattern in …
- time_stepnp.array([time_step_number,])
The time step of the model, used to prepare the viscuous love numbers.
- afloat
The earth radius in meter.
- Mefloat
The earth mass.
- typestr
The type of love number in input. could be ‘time’, ‘normal’ or ‘spectral’, where ‘time’ is for love numbers from ALMA3 code, ‘normal’ is for love number in normale mode from MIT server and ‘spectral’ is the frequential decomposition of the Love numbers available in ALMA3. Default is ‘time’.
Methods
- dev_beta :
This method is used to calculate the beta love numbers.
- dev_beta_tide :
This method is used to calculate the beta tidal love numbers.
- clean_memory :
This method is used to clean the memory of your computer.
Methods
- slcode.love.LOVE.dev_beta(self, applied='beta')
The dev_beta method can be used to rise the love numbers to their full shape to fit the computation method. This is required before using the beta in the methods from LOAD.
Attribute
- appliedstr
The kinf of beta you are calculating. Three values are possible : beta, beta_R et beta_G. ‘beta’ define the love numbers used to caculate the variation of ocean thickness. ‘beta_R’ define the love numbers used to calculate the variation of groud. ‘beta_G’ define the love numbers used to calculate the variation of geoïd.
Return
None
- slcode.love.LOVE.dev_beta_tide(self, applied='beta')
The dev_beta_tide method can be used to rise the love numbers to their full shape to fit the computation method. This is required before using the beta in the methods from LOAD.
Attribute
- appliedstr
The kinf of beta you are calculating. Three values are possible : beta, beta_R et beta_G. ‘beta’ define the love numbers used to caculate the variation of ocean thickness. ‘beta_R’ define the love numbers used to calculate the variation of groud. ‘beta_G’ define the love numbers used to calculate the variation of geoïd.
Return
None