Skip to content

Add function to create tesseroid layers #83

Closed

Description

@santisoler

Description of the desired feature

A tesseroid layer could be defined as a collection of tesseroids sorted in a regular way within a region, whose longitudinal and latitudinal boundaries touch each other leaving no empty space in between nor overlapping each other.
Tesseroids layers are very useful for gravity inversion (e.g. Moho inversion). So the function should allow us to modify the top and bottom boundaries of the tesseroid layer according to a given topography data or to a predicted radii by an inversion algorithm.

The tesseroid layer should be returned as an xarray object, what will ease the process of computing the forward model of the layer.

Are you willing to help implement and maintain this feature? Yes

Activity

  1. added
    enhancement
    on Jul 30, 2019
  2. added this to the v0.2.0 milestone on Jan 27, 2020
  3. removed this from the v0.2.0 milestone on Jul 16, 2021
  4. aguspesce commented on May 23, 2022

    @aguspesce
    Member

    Hello @santisoler,
    Can I try this?

  5. santisoler commented on May 23, 2022

    @santisoler
    MemberAuthor

    Sure! Be my guest! Take a look at what we did for the prism layer. The tesseroid layer should be analogous to that one but defined in spherical coordinates.

    The only corner case I can think of right now is that for tessseroids we would need to check if the longitude coordinates don't exceed a full turn around the globe and create overlapping tesseroids. Because the longitude coordinates will correspond to the center of the tesseroids, we need to check if the difference between the eastmost boundary and the westmost boundary is not larger than 360:

    westmost = longitude[0] - longitude_spacing / 2
    eastmost = longitude[-1] + longitude_spacing / 2
    
    assert eastmost - westmost <= 360

    This snippet is just to give an idea, feel free to implement it as you consider the best way.

    A similar thing would happen for the latitude coordinate, we need to check that the southermost boundary is not lower than -90, and that the northernmost boundary is not larger than 90.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions