Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grdimage [ERROR]: Option -Q: Cannot specify a transparent color for grids when intensities are also used #8411

Open
vjpbd opened this issue Mar 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@vjpbd
Copy link

vjpbd commented Mar 19, 2024

Description of the problem

In GMT 6.4.0 and earlier, I could use the -Q option at the same time as intensities in the module grdimage.
Since GMT 6.5.0, this doesn't work anymore.

Script that generated the error

(Modern mode, Bash script)

gmt makecpt -T-1/1 -Cgray
gmt grdimage $dem_shade
gmt makecpt -C$cpt $cpt_range
gmt grdimage $img -I$dem_shade -nn+a -Q

Full error message

grdimage [ERROR]: Option -Q: Cannot specify a transparent color for grids when intensities are also used

Expected outcome

I use this code to plot a grid, shaded with intensity, over a shaded DEM.
The grid contain NaN values and the projection is Lambert.
In version 6.4.0 and earlier, I get the following result:
crop_good

Actual outcome

In version 6.5.0, I have to remove the -Q option and I get the following result:
crop_bad

System information

  • Operating system: Debian Bullseye
  • GMT version: 6.5.0
@vjpbd vjpbd added the bug Something isn't working label Mar 19, 2024
@joa-quim
Copy link
Member

Can you make a reproducible example. A small one without unnecessary details an no variable? Just plain commands that can be copy-pasted on Windows.

@vjpbd
Copy link
Author

vjpbd commented Apr 17, 2024

Hello @joa-quim
Here is an archive with a minimal example (script, input files and results):
example.tar.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants