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

Dateline crossing dcw polygons and tiles #8318

Merged
merged 4 commits into from
Jan 22, 2024
Merged

Conversation

PaulWessel
Copy link
Member

Description of proposed changes

See #8266 for background. We kept getting a bad west/east string for the three polygons USA, RU, and FJ that crossed the 180-degree meridian. In combination with tiled remote data sets we ended up with no plot, but always worked well with non-tiled (e.g., 06m and lower resolutions). Ensuring monotonically increasing longitudes from west to east fixed this, and I added a new test just so we stay alert (dcw_180_crossers.sh).

The new test pass:

dcw-180-crossers

While master gives empty frames:

dcw-180-crossers

For odd reasons, the US, Russia and Fiji all cross the 180-meridian and yield idiotic west/east limits like 172.436/-66.9489, resulting in no plots for commands like

gmt grdimage @earth_relief_05m -B -RUS -png USA -Vi

This PR checks for this cse and now gives sensible continuous longitudes.
Add test script for the three 180-meridian DCW polygons USA, Russia, and Fiji.
@PaulWessel PaulWessel added the bug Something isn't working label Jan 20, 2024
@PaulWessel PaulWessel added this to the 6.6.0 milestone Jan 20, 2024
@PaulWessel PaulWessel self-assigned this Jan 20, 2024
Copy link
Contributor

github-actions bot commented Jan 20, 2024

Summary of changed images

This is an auto-generated report of images that have changed on the DVC remote

Status Path
added test/baseline/grdimage/dcw-180-crossers.ps
modified test/baseline/grdimage/

Image diff(s)

Added images

  • test/baseline/grdimage/dcw-180-crossers.png

Modified images

Path Old New

Report last updated at commit 98545fe

@Esteban82 Esteban82 merged commit 5c0821b into master Jan 22, 2024
7 checks passed
@Esteban82 Esteban82 deleted the dateline-crossing-dcw branch January 22, 2024 03:37
remkos added a commit that referenced this pull request Jan 23, 2024
* 'master' of https://github.com/GenericMappingTools/gmt: (24 commits)
  Bump actions/cache from 3 to 4 (#8323)
  Add longoptions support for psbarb. (#8283)
  Add longoptions support for nearneighbor. (#8281)
  Add longoptions support for makecpt. (#8280)
  Add longoptions support for kml2gmt. (#8279)
  Add longoptions support for inset. (#8278)
  Add longoptions support for grdvolume. (#8276)
  Add longoptions support for grdview. (#8275)
  Batch #8 of longoptions translation tests. (#8272)
  Enable longoptions support for grdconvert. (#8197)
  Enable longoptions support for grd2xyz. (#8178)
  Update gmt_init.c
  Allow -A even if movie is not generated
  typos
  Update std-opts.rst
  Same case, clearer titles
  Dateline crossing dcw polygons and tiles (#8318)
  Missed a space before -T synopsis
  Improve windbarb docs, synopsis and usage for -Q and parsing of -Q (#8314)
  Let grdmix create RGB imagea for red, green, blue grids in 0-255 range (#8316)
  ...
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

Successfully merging this pull request may close these issues.

None yet

2 participants