ICE_TIME_GRID
CLASS
- class slcode.grid.ICE_TIME_GRID(time_step=array([1, 2]), maxdeg=64, height_time_grid=None, mass_time_grid=None, mass_time_coeff=None, height_time_coeff=None, rho=916.7, grid_name='time_grid', from_file=(False,))
The ICE_TIME_GRID class is used to represent the ice thickness evolution threw time. This class inherit of TIME_GRID.
…
Attributes
- 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. Default is 916.7 kg/m3.
Note
In future development the density may vary threw space and time. We’ll have to make a variable object more then a constant density.
- 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
- ice_correction
correct the grounded ice thickness from the created floating ice by ground vertical mouvement
- save
used to save data
METHODS
- slcode.grid.ICE_TIME_GRID.ice_correction(self, topo, oc)
The ice_correction method is used to correct the grounded ice thickness from the floating ice generted by vertical ground motion. This correction is done for each time step to remove the floating ice. The correction of grounded ice is based on Grounded ice correction.
Attributes
- topoTOPOGRAPHIC_TIME_GRID class object
A topogrphic grid object, used to check if grounded ice become floating ice. The topography is then modified to by this function.
- ocOCEAN_TIME_GRID class object
An oceanic time grid object used only to get the density of ocean set for the model.
Note
To avoid memory consumption the oc parameter should be replace simply by oc_rho the ocean density.
Return
None
- slcode.grid.ICE_TIME_GRID.save(self, save_way='')
The save method is used to save the data of the ice grid. Because of the ice_correction method that update the grid we choosed to preserve the original ice thickness data in a ice parameter that is saved inside the nc file. Otherwise this method use the super method save to save the rest of the data.
Attributes
- save_way :str
The way where the nc file is saved. Default value is the current file (an empty str).
Return
None