Skip to content

Conversation

@aaarcher-usgs
Copy link
Collaborator

  1. downloads earth features as sf from rnaturalearth package.
  2. combines all site locations
  3. plots site locations for one year on global earth layout

Issue currently: graticule lines are showing some latitudes as being straight across globe, when they should be clipped

image

@aaarcher-usgs aaarcher-usgs changed the title map but with weird graticules global map May 29, 2025
@cnell-usgs cnell-usgs self-requested a review June 11, 2025 19:53
Copy link
Member

@cnell-usgs cnell-usgs left a comment

Choose a reason for hiding this comment

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

nevermind - I was using an outdated version of the dataset

#
global_targets <- list(
tar_target(
global_png,
Copy link
Member

Choose a reason for hiding this comment

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

This appears to be disconnected from the other targets. If I run tar_make(global_png) it errors out due to needing to build gage_melt first

Copy link
Member

Choose a reason for hiding this comment

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

I addressed this issue here #221

sf::st_buffer(dist = 6371000) # match Earth's radius in meters

# clip graticules
graticules_clipped <- sf::st_intersection(graticules_ortho, circle)
Copy link
Member

Choose a reason for hiding this comment

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

Not having a lot of luck removing the horizontal graticules. I suspect they are appearing because when we do this intersection the clipping exceeds the bounds of the globe, and then the plotting tries to wrap them

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.

2 participants