Skip to content

Conversation

@PaulWessel
Copy link
Member

Instead of specifying a specific r/g/b color that should be transparent, or default to grid values that are NaN, this PR adds the option to specifying a specific grid value and then determine what r/g/b color that is via the CPT.
Also fixes some confusion related to the order of checks: If an r/g/b is given via -Q then that should be consulted first before the NaN color.

Seems to work:

gmt grdmath -R0/4/0/4 -I1 X Y MUL = t.grd
gmt grdimage t.grd -JX5i -Baf -Cturbo -Q+z4 -png t

t

Instead of specifying a specific r/g/b color that should be transparent, or default to grid values that are NaN, this PR adds the option to specifying a specific grid value and then determine what r/g/b color that is via the CPT.
Also fixes some confusion related to the order of checks: If an r/g/b is given via -Q then that should be consulted first before the NaN color.
@PaulWessel PaulWessel added the enhancement Improving an existing feature label Jan 17, 2022
@PaulWessel PaulWessel added this to the 6.4.0 milestone Jan 17, 2022
@PaulWessel PaulWessel requested a review from joa-quim January 17, 2022 23:58
@PaulWessel PaulWessel self-assigned this Jan 17, 2022
@PaulWessel PaulWessel merged commit 1e39ddc into master Jan 18, 2022
@PaulWessel PaulWessel deleted the grdimage-z-to-rgb branch January 18, 2022 00:25
@maxrjones maxrjones added the add-changelog Add PR to the changelog label Jan 18, 2022
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 enhancement Improving an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants