Skip to content

Conversation

@Esteban82
Copy link
Member

Description

When running the script below, the following error is triggered:

grdview [ERROR]: Categorical data (as implied by CPT) cannot be interpolated and require -T or just -Qm.
This PR adds an exception that allows using -Qt with categorical CPTs when grdview is run with a 3-D projection (-JZ).

Full script:

gmt begin ex05_3d png
 	gmt makecpt -Ccategorical -T0/4/1 -F+cOceanic,Land,Lakes,Islands,Ponds
	gmt grdview @earth_relief -G@earth_mask -JM15c -JZ5c -B -Bza -BSEwnZ -N-500+gwhite -R-58/-54/-36/-32/-500/500 -p120/30 -C -Qt100i
gmt end

See details and the expected output figure in #8855 (comment)

@Esteban82 Esteban82 requested a review from joa-quim January 6, 2026 13:20
@Esteban82 Esteban82 self-assigned this Jan 6, 2026
Copy link
Member

@joa-quim joa-quim left a comment

Choose a reason for hiding this comment

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

Our CI tests are in a miserable state. Each day they fail for a different reason.

@Esteban82
Copy link
Member Author

Our CI tests are in a miserable state. Each day they fail for a different reason.

Ok, I will merge it.

@Esteban82 Esteban82 merged commit 17610ee into master Jan 6, 2026
8 of 13 checks passed
@Esteban82 Esteban82 deleted the Add-grdview_Qt-option branch January 6, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants