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

adding coastlines to float positions plot in ArgoFloat.jl #58

Closed
ggebbie opened this issue Sep 27, 2023 · 3 comments
Closed

adding coastlines to float positions plot in ArgoFloat.jl #58

ggebbie opened this issue Sep 27, 2023 · 3 comments

Comments

@ggebbie
Copy link
Contributor

ggebbie commented Sep 27, 2023

To add coastlines to the float positions plot in the Pluto notebook, ArgoFloat, is the best approach to follow instructions from GeoMakie? This would involve making a GeoAxis, I believe.

An alternative workflow would be using PythonPlot and cartopy, but I assume that this would pull in many dependencies, be difficult to maintain, and might not plot well in Pluto notebooks.

@ggebbie
Copy link
Contributor Author

ggebbie commented Oct 7, 2023

I took the approach of turning the "positions and speed" panel into a GeoAxis plot using GeoMakie. My experiment didn't (so far) give production-quality results. Some issues with GeoMakie:

  1. some projections gave horizontal lines across the domain (workaround, put longitude between -180 and 180
  2. frame of plot does not enclose all coastlines
  3. difficult to layout a GeoAxis with other panels that are regular Axis plots (size and labels change when in a complex layout)
  4. one projection worked ok (ortho), others did not work at all.

I will submit a PR so that the code is available, perhaps for being fixed in the future. I doubt you will want to merge it.

@gaelforget
Copy link
Member

gaelforget commented May 21, 2024

To add coastlines to the float positions plot in the Pluto notebook, ArgoFloat, is the best approach to follow instructions from GeoMakie? This would involve making a GeoAxis, I believe.

An alternative workflow would be using PythonPlot and cartopy, but I assume that this would pull in many dependencies, be difficult to maintain, and might not plot well in Pluto notebooks.

We have been making progress on this in GeoMakie.jl but there are still issues (see MakieOrg/GeoMakie.jl#228 ).

However, I have a working version in the MeshArrays+Makie extension (e.g., projmap) that does this in the geography notebook. Code is in the Pluto notebook file which should run right away.

ps. Sorry for the lag in response.

@gaelforget
Copy link
Member

See #59 (comment)

Closing for now. Should revisit use of GeoMakie later.

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

No branches or pull requests

2 participants