Skip to content

Pin velo vector scale to explicit cm unit in geodesy_08 test - #9207

Merged
Esteban82 merged 1 commit into
masterfrom
fix-geodesy_08-velo-unit
Sep 14, 2026
Merged

Esteban82 merged 1 commit into
masterfrom
fix-geodesy_08-velo-unit

Conversation

@Esteban82

Copy link
Copy Markdown
Member

#9092 fixed gmt movie to correctly propagate the top directory's gmt.conf into each frame before "gmt begin" runs. As a side effect, movie frames now inherit PROJ_LENGTH_UNIT from the test harness's gmt.conf (inch) instead of silently falling back to GMT's SI default (cm). The velo scale in "-Se0.50/0" had no explicit unit, so it now resolves against the wrong default and renders vectors ~2.5x too long, same class of issue already patched for trajectory2/3/5 in #9092 itself.

Fixes #9204

Done with Claude Sonnet 5.

#9092 fixed gmt movie to correctly propagate the top directory's
gmt.conf into each frame before "gmt begin" runs. As a side effect,
movie frames now inherit PROJ_LENGTH_UNIT from the test harness's
gmt.conf (inch) instead of silently falling back to GMT's SI default
(cm). The velo scale in "-Se0.50/0" had no explicit unit, so it now
resolves against the wrong default and renders vectors ~2.5x too
long, same class of issue already patched for trajectory2/3/5 in
#9092 itself.

Fixes #9204

@joa-quim joa-quim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hmm, I guess I don't understand this. both -Se0.50c/0 and -Se0.50/0 should give the same result (default units in GMT is cm). If it doesn't, that sounds like it is hiding a more serious issue.

@Esteban82

Copy link
Copy Markdown
Member Author

This is Claude's response:

GMT's own default is cm, but the test harness overrides it: test/gmtest.in runs gmt set -Du GMT_GRAPHICS_FORMAT ps for these tests, which writes PROJ_LENGTH_UNIT=inch into gmt.conf. Before #9092, movie frames never saw that file (the cp happened after gmt begin); now they do, so unitless lengths like -Se0.50/0 resolve against inch instead of cm.

@Esteban82

Copy link
Copy Markdown
Member Author

-Du stands for US units, so that's why PROJ_LENGTH_UNIT was set to inches.

@joa-quim joa-quim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ok, Ok.

@Esteban82
Esteban82 merged commit 6c8ef7f into master Sep 14, 2026
8 of 11 checks passed
@Esteban82
Esteban82 deleted the fix-geodesy_08-velo-unit branch September 14, 2026 21:27
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.

Something broke the test/geodesy/geodesy_08.sh test

2 participants