LOAD_TIME_GRID

CLASS

class slcode.grid.LOAD_TIME_GRID(sdelL=array([], dtype=float64), beta_l=array([], dtype=float64), E=array([], dtype=float64), E_T=array([], dtype=float64), a=7371000, Me=5000, time_step=array([1, 2]), maxdeg=64, height_time_grid=None, mass_time_grid=None, mass_time_coeff=None, height_time_coeff=None, rho=0, grid_name='time_grid', from_file=(False,), g=9.80665)

The LOAD_TIME_GRID class is used to save and include all the topographic variations. This class inherits of TIME_GRID and LOAD.

Attributes

sdelLnp.array([time_step_number,maxdeg,maxdegx2])

The load variation grid used to compute earth vertical motion.

betalnp.array([time_step_number,time_step_number,maxdeg])

The beta love number as described in Variation of geoïd and ground Equations section. There calculated in the LOVE class.

Enp.array([(maxdeg+1)(maxdeg+2)/2,])

The elastic component of the earth as love numbers computed form LOVE class.

afloat

The earth radius in meter, set by default to 7371000 meters.

Mefloat

The earth mass in set by default to 5000.

time_stepnp.array([time_step_number,])

This array contains the time step of the data you are importing. They will be use for temporal interpolation.

maxdegint

Maximum harmonic coefficient degree of the data. this define the chape of the grid and coefficient arrays

height_time_gridnp.array([maxedg*2,maxdeg])

This array is the height grid at each time steps defined in grid_time_step

mass_time_gridnp.array([maxedg*2,maxdeg])

This array is the mass grid at each time steps defined in grid_time_step

height_time_coeffnp.array([(maxdeg+1)(maxedg+2)/2,])

This array is the height spherical harmonic coefficient at each time steps defined in grid_time_step

mass_time_coeffnp.array([(maxdeg+1)(maxedg+2)/2,])

This array is the mass spherical harmonic coefficient at each time steps defined in grid_time_step

rhofloat

The density of the considered layer.

grid_namestr

The name of the grid. We recommand you to choose a specific name for each grid you create. This name is used to save the grid in an nc file with `save`_.

from_file(bool,way)

This parameter define if the data are new or loaded from a previously saved model in a nc file. If the first element is False, the code will create a blank object, based on provided datas. If the first element is True, the method will get the data from the file way specified in the second element of this attribute.

Methods

calc_viscuous:

Compute the viscous motion of the geoïd and ground for one time step.

calc_viscuous_time :

Compute the viscous ground motion of the earth on all time steps.

calc_elastic_time :

Compute the elastic ground motion of the earth on all time steps.

save :

Save the load data

Methods

slcode.grid.LOAD_TIME_GRID.calc_viscuous(self, sdelL, beta, t_it)

The calc_viscuous method is used to calculate the ground and geoïd deformation based on viscuous love numbers.

Attribute

sdelLnp.array([t_it,(maxdeg+1)(maxdeg+20/2)])

The load grid used to estimate the ground vertical mouvement. This include all previous loading history because of the viscous comportment of earth.

betanp.array([time_step_number,time_step_number,(maxdeg+1)(maxdeg+2)/2])

The beta love numbers used to compute the earth deformation to include the viscous part. These love numbers are particularly heavy in the memory due to the representation of the time.

t_itint

The time iteration at wich the computation is performed.


slcode.grid.LOAD_TIME_GRID.calc_viscuous_time(self, backend=False)

The calc_viscuous_time method compute the vicuous vertical ground motion. This method call the LOAD method for this.

Attribute

backendbool

Specifie if the method give backend (True) or not (False). Default is False.

Return

None


slcode.grid.LOAD_TIME_GRID.calc_elastic_time(self)

The calc_elastic_time method compute the elactic vertical ground motion. This method call the LOAD method for this.

Attribute

None

Return

None


slcode.grid.LOAD_TIME_GRID.save(self, save_way='')

The save method is used to save the data from the class. It is based on the inherited save method. Because of the particularity of this TIME_GRID, we had to save the new parameters, and calculated data. This function save for each data the real and complex part of the data due to the nc file particularity. The saved data are, The load (load), the viscuous groud motion (viscous_deformation), the elastic ground motion (elastic_deformation), the elastic love numbers (elastic_love), earth radius (a), earth mass (Me).

Attribute

save_waystr

file path to where the grid will be saved.

Return

None


slcode.grid.LOAD_TIME_GRID.clean_memory(self)

This method is used to clean the memory to avoïd over charging RAM.