GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Enhance gravprisms -D with +c for computing contrasts by PaulWessel · Pull Request #6894 · GenericMappingTools/gmt

Conversation

@PaulWessel

@PaulWessel PaulWessel commented Jul 17, 2022

Copy link
Copy Markdown
Contributor

It occurred to me that it is convenient to allow -D to be used not only to set a constant density contrast for all prisms, but with a modifier (+c) instead compute the density contrast between the variable prism densities and the constant given in -D. Otherwise, I need to compute two sets of prisms just to be able to display the densities and to compute gravity using a contrast with sea water. This PR adds the +c modifier. It basically reverts very recent behavior implemented after 6.4 so it has no backwards complications. FYI, @joa-quim.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@PaulWessel
Enhance gravprisms -D with +c for computing contrasts
33c3732
It occurred to me that it is convenient to allow -D to be used not only to set a constant density contrast for all prisms, but with a modifier (+c) instead compute the density contrast between the variable prism densities and the constant given in -D.  Otherwise I may need to compute two sets of prisms just to be able to display the densities and to compute gravity using a contrast with sea water.  This PR adds the +c modifier.  It basically reverts very recent behavior implemented after 6.4 so it has no release effect.
@PaulWessel PaulWessel added the enhancement Improving an existing feature label Jul 17, 2022
@PaulWessel PaulWessel added this to the 6.5.0 milestone Jul 17, 2022
@PaulWessel PaulWessel self-assigned this Jul 17, 2022
joa-quim
joa-quim approved these changes Jul 17, 2022
View reviewed changes
@PaulWessel
PaulWessel merged commit 89620db into master Jul 18, 2022
@PaulWessel
PaulWessel deleted the prism-dens-contrast branch July 18, 2022 08:35
@PaulWessel

PaulWessel commented Jul 18, 2022

Copy link
Copy Markdown
Contributor Author

Note FYI: I also added a modifier +rrhor to -D. The reason is as follows:

I have a variable density grid used with topography to drive flexure. This is done via -Hrho.grd. However, the density structure rho(x,y) is not perfectly known and I will be running numerical experiments to modify the rho.grd grid by a small scalar 1+f (with f in the ±0.2 range and determine the f that minimizes some rms). So, multiplying rho(x,y) by f changes the mean load density. When the infill density and the load density are set separately then we do the Wessel [2001;2016] approximation which requires these two densities, and now the rho load density will change. However, I wish to keep the same root density (and infill density) in all these experiments, hence I wish to pass that constant root density and the scaled rho.grd so that the approximation stays the same by just adjusting the topography by 1+f. That way the flexural response to me changing 1+f is given by (1+f) times w(x,y).

Anyway, I suspect I am the only one doing this, and it does not affect any tests.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@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

Reviewers

@joa-quim joa-quim joa-quim approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@PaulWessel PaulWessel

Labels

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

Projects

None yet

Milestone

6.5.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@PaulWessel @joa-quim @maxrjones
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.