harmonica.tesseroid_layer#
- harmonica.tesseroid_layer(coordinates, surface, reference, properties=None)[source]#
- Create a layer of tesseroids of equal size - Parameters:
- coordinatestuple
- List containing the coordinates of the centers of the tesseroids in spherical coordinates in the following order - longitudeand- latitude.
- surface2d-array
- Array used to create the uppermost boundary of the tesserois layer. All radii should be in meters. On every point where - surfaceis below- reference, the- surfacevalue will be used to set the- bottomboundary of that tesseroid, while the- referencevalue will be used to set the- topboundary 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. 
- propertiesdictorNone
- Dictionary containing the physical properties of the tesseroids. The keys must be strings that will be used to name the corresponding - data_varinside the- xarray.Dataset, while the values must be 2d-arrays. All physical properties must be passed in SI units. If None, no- data_varwill be added to the- xarray.Dataset. Default is None.
 
- coordinates
- Returns:
- datasetxarray.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
 
