Skip to content

Clarify what happens in gravfft with NaNs - #6937

Merged
PaulWessel merged 2 commits into
masterfrom
fft-clarification
Aug 7, 2022
Merged

PaulWessel merged 2 commits into
masterfrom
fft-clarification

Conversation

@PaulWessel

Copy link
Copy Markdown
Contributor

Because residual grids with NaNs in areas of no data are common in isostatic studies, we allow gravfft to handle such grids rather than having to use grdmath DENAN. This PR:

  1. Replaces NaNs in the 1-2 input grids with zeros
  2. WIth -Vl we report the number of NaNs as well
  3. The documentation now has a new section that discussion what happens with the NaN grids in input and via -D as a density grid.
  4. Minor typographical fixes in -N and gravfft documentations.

Because residual grids with NaNs in areas of no data are common in isostatic studies, we allow gravfft to handle such grids rather than having to use grdmath DENAN.  This PR:

1. Replaces NaNs in the 1-2 input grids with zeros
2. WIth -Vl we report the number of NaNs as well
3. The documentation now has a new section that discussion what happens with the NaN grids.
@PaulWessel PaulWessel added documentation Improve documentation enhancement Improving an existing feature labels Aug 5, 2022
@PaulWessel PaulWessel added this to the 6.5.0 milestone Aug 5, 2022
@PaulWessel PaulWessel self-assigned this Aug 5, 2022
This is useful when the +s correction is not appropriate or the density is variable.

@PaulWessel PaulWessel left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested adn works

@PaulWessel
PaulWessel merged commit 73180d6 into master Aug 7, 2022
@PaulWessel
PaulWessel deleted the fft-clarification branch August 7, 2022 16:51
@maxrjones maxrjones added the add-changelog Add PR to the changelog label Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

add-changelog Add PR to the changelog documentation Improve documentation enhancement Improving an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants