harmonica.tesseroid_layer
Contents
harmonica.tesseroid_layer¶
- harmonica.tesseroid_layer(coordinates, surface, reference, properties=None)[source]¶
Create a layer of tesseroids of equal size
- Parameters
coordinates (tuple) – List containing the coordinates of the centers of the tesseroids in spherical coordinates in the following order
longitude
andlatitude
.surface (2d-array) – Array used to create the uppermost boundary of the tesserois layer. All radii should be in meters. On every point where
surface
is belowreference
, thesurface
value will be used to set thebottom
boundary of that tesseroid, while thereference
value will be used to set thetop
boundary of the tesseroid.reference (2d-array or float) – Reference surface used to create the lowermost boundary of the tesseroids layer. It can be either a plane or an irregular surface passed as 2d array. Radii must be in meters.
properties (dict or None) – Dictionary containing the physical properties of the tesseroids. The keys must be strings that will be used to name the corresponding
data_var
inside thexarray.Dataset
, while the values must be 2d-arrays. All physical properties must be passed in SI units. If None, nodata_var
will be added to thexarray.Dataset
. Default is None.
- Returns
dataset (
xarray.Dataset
) – Dataset containing the coordinates of the center of each tesseroid, the height of its top and bottom boundaries ans its corresponding physical properties.
See also
harmonica.DatasetAccessorsTesseroidLayer