fatiando / harmonica

Forward modeling, inversion, and processing gravity and magnetic data
https://www.fatiando.org/harmonica
BSD 3-Clause "New" or "Revised" License
211 stars 69 forks source link

Add examples for grid transformations #377

Closed santisoler closed 1 year ago

santisoler commented 1 year ago

Add a User Guide page showcasing examples on how to apply grid transformations using the Lighting Creek Sill Complex magnetic data available in Ensaio. Also add gallery examples for the upward continuation, upward derivative and reduction to the pole using the same dataset.

Relevant issues/PRs:

Implement examples for functions introduced in #299

RichardScottOZ commented 1 year ago

so we need a vertical derivative example?

also, a standard way to show people how to handle an irregular area - e.g. a polygon with nodata outside it?

santisoler commented 1 year ago

so we need a vertical derivative example?

In this PR I added a gallery example for the upward derivative (vertical derivative) and also in the User Guide. They both are the same example of computing the upward derivative on the Lightning Creek Sill Complex magnetic grid we have in Ensaio.

also, a standard way to show people how to handle an irregular area - e.g. a polygon with nodata outside it?

That's a nice idea! I think I will add it in this PR, but we can open an issue for it, for sure. I have a few magnetic grids available in NRCAN in mind for it. Do you have any prefer method to deal with such grids besides replacing the nans with zeros and then masking them out?

RichardScottOZ commented 1 year ago

Nothing really cleverer than that, no.