ortk95 / planetmapper

PlanetMapper: An open source Python package for visualising, navigating and mapping Solar System observations
https://planetmapper.readthedocs.io
MIT License
10 stars 1 forks source link

Add option create and plot lon/lat grids using planetocentric coordinates (rather than the default of planetographic) #366

Closed ortk95 closed 3 months ago

ortk95 commented 3 months ago

It is now possible to create a grid of planetocentric lon/lat coordinates with e.g. visible_lonlat_grid_radec(planetocentric=True). With this new argument, the gridlines will be evenly spaced planetocentric coordinates, rather than the default of evenly spaced planetographic coordinates.

Similarly, wireframe plots have a new planetocentric_grid argument, that will plot the wireframe's grid using planetocentric coordinates. For example:

body = planetmapper.Body('Jupiter', utc='2005-01-01T00:00:00')
body.plot_wireframe_radec()
body.plot_wireframe_radec(planetocentric_grid=True, color='r')
plt.show()

image The default planetographic wireframe is in black, and the customised planetocentric wireframe in red.

Closes #364

Pull request checklist

See CONTRIBUTING.md for more details.

coveralls commented 3 months ago

Pull Request Test Coverage Report for Build 9498963097

Details


Totals Coverage Status
Change from base Build 9486440826: 0.002%
Covered Lines: 2972
Relevant Lines: 2984

💛 - Coveralls