Skip to content

Curious How EOMaps Calculates Compass Rotation #231

Answered by raphaelquast
moss-xyz asked this question in Q&A
Discussion options

You must be logged in to vote

Hey,
since you have lots of questions... let me ask you one myself:

Just out of curiosity, what's keeping you from using/contributing to EOmaps directly?

OK, and now to your questions 🙂:

First, as_geodetic is coming from the cartopy CRS (which uses pyproj under the hood): here

Concerning the method for determining the rotation, the idea is the following:

  1. transform the position from the plot-crs to lon/lat
  2. get the initial position and a position with a slightly shifted latitude (the use of the hard-coded 0.01 here is something that could actually be improved... )
  3. reproject the points back to the plot-crs and use the triangle spanned by the grid-lines of the projected crs and the transfo…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@moss-xyz
Comment options

@raphaelquast
Comment options

Answer selected by moss-xyz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants