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
longitudeandlatitude.- surface2d-array
Array used to create the uppermost boundary of the tesserois layer. All radii should be in meters. On every point where
surfaceis belowreference, thesurfacevalue will be used to set thebottomboundary of that tesseroid, while thereferencevalue will be used to set thetopboundary of the tesseroid.- reference2d-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
dictorNone Dictionary containing the physical properties of the tesseroids. The keys must be strings that will be used to name the corresponding
data_varinside thexarray.Dataset, while the values must be 2d-arrays. All physical properties must be passed in SI units. If None, nodata_varwill be added to thexarray.Dataset. Default is None.
- coordinates
- 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.
- dataset
See also
harmonica.DatasetAccessorsTesseroidLayer