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

Color palette table groopsPlot.cpt is empty #302

Open
1 of 4 tasks
ShaunFell opened this issue Dec 20, 2024 · 1 comment
Open
1 of 4 tasks

Color palette table groopsPlot.cpt is empty #302

ShaunFell opened this issue Dec 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ShaunFell
Copy link

ShaunFell commented Dec 20, 2024

Description

I'm executing a simple orbit scenario that compute the gravity gradient, then plotting using the PlotMap program. Everything executes just fine, however it outputs

--- PlotMap (groundtracks.png) ---
create temporary data files
create scriptfile
run scriptfile
psscale [ERROR]: Color palette table groopsPlot.cpt is empty
[Session gmt (0)]: Error returned from GMT API: GMT_CPT_READ_ERROR (8)
[Session gmt (0)]: Error returned from GMT API: GMT_CPT_READ_ERROR (8)
=== Finished GROOPS ===

to the screen. It creates the .png file, but there is not colorbar at the bottom, as I would expect. It seems the program cant find this 'groopsPlot.cpt' file. I've searched the repo and google for "groopsPlot.cpt" and the ftp server, but can't find it.

OS: Fedora 41
Kernel: x86_64 Linux 6.12.4-200.fc41.x86_64
GMT version: 6.5.0
g++: 14.2.1
groops version: 2024-06-24

GROOPS version

main (latest commit)

Operating systems

  • Linux
  • Windows
  • macOS
  • Other (please specify in the description)

Log output

2024-12-20 12:21:28 Status  === Starting GROOPS ===
2024-12-20 12:21:28 Info    Config file: </home/<user>/Documents/Github/groops/scenarios/testSimulateOrbit.xml>
2024-12-20 12:21:28 Status  --- PlotMap (groundtracks.png) ---
2024-12-20 12:21:28 Status  create temporary data files
2024-12-20 12:21:28 Status  create scriptfile
2024-12-20 12:21:28 Status  run scriptfile
2024-12-20 12:21:29 Status  === Finished GROOPS ===
@ShaunFell ShaunFell added the bug Something isn't working label Dec 20, 2024
@tmayerguerr
Copy link
Member

Hi Shaun,

I don't think this is a bug, but that you have forgotten to set something.

If you do not set a min/max value in colorbar, the program tries to get these values from layer (e.g. layer->points->value). The color of the symbol must be <none>. Maybe the values are too small for GMT. Then you should convert it to other units (value=1e9*data0).

If you set PlotMap->options->removeFiles=no, the program creates a directory in your plot folder with all the data and the bash script with the GMT commands. There you can see what happens.

regards
Torsten

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