tilupy.make_mass
Functions
|
Construct mass on topography as volume between sphere and topography. |
Module Contents
Functions
- tilupy.make_mass.calotte(x: numpy.ndarray, y: numpy.ndarray, z: numpy.ndarray, x0: float, y0: float, radius: float, norm_offset: float = 0, res_type: str = 'projected_normal') numpy.ndarray
Construct mass on topography as volume between sphere and topography.
- Parameters:
x (numpy.ndarray) – X-axis array, with length nx.
y (numpy.ndarray) – Y-axis array, with length ny.
z (numpy.ndarray) – Array of altitudes, of size (ny, nx). z[0, 0] has coordinates (x[0], y[-1]).
x0 (float) – X position of the calotte.
y0 (float) – Y position of the calotte.
radius (float) – Radius of the shpere.
norm_offset (float, optional) – Downwards offset between the sphere center and the topography, in the direction normal to the topography, by default 0.
res_type (string, optional) –
Type of thickness output:
’true_normal’: Real thickness in the direction normal to the topography.
’vertical’: Thickness in the vertical direction.
’projected_normal’: Thickness normal to the topography is computed from the vertical thickness projected on the axe normal to the topography.
The default is ‘projected_normal’.
- Returns:
Array of mass height, in the direction normal to topography.
- Return type:
numpy.ndarray