You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The overall aim is to have nice plot with proper ax.coords setting e.g. coord_wrap, format_unit, coord_type for custom Coordinate frames.
Currently half of the is supported, fitswcs.py supports custom ctype to UCD mappings via CTYPE_TO_UCD1_CUSTOM but then on the other side wscapi.py has a hard coded list in transform_coord_meta_from_wcs therefore WCSAxes doesn't recognise the custom UCD.
was mentioned. I wonder if in addition to this approach underlying lists and dictionaries could be exposed and documented that way other packages could add / remove mappings without relying on astropy. For example some sunpy specific mapping can be found here
samaloney
changed the title
Support custom mapping from UCD to WSCAxes properties
Support custom mapping from UCD to WSCAxes properties for custom coordinate frames
Apr 26, 2024
What is the problem this feature will solve?
The overall aim is to have nice plot with proper
ax.coords
setting e.g.coord_wrap
,format_unit
,coord_type
for custom Coordinate frames.Currently half of the is supported,
fitswcs.py
supports custom ctype toUCD
mappings viaCTYPE_TO_UCD1_CUSTOM
but then on the other sidewscapi.py
has a hard coded list intransform_coord_meta_from_wcs
thereforeWCSAxes
doesn't recognise the custom UCD.So currently this can be done
but there is no way to include settings for
custom:pos.myframe.X
in this section of codeastropy/astropy/visualization/wcsaxes/wcsapi.py
Lines 54 to 71 in cf99b9e
where Id like to add something like
Describe the desired outcome
Be able to register or other wise include custom plot setting for custom UCDs in a similar manner to how custom CTYPE to UCD mapping can be included.
Additional context
No response
The text was updated successfully, but these errors were encountered: