Skip to content

Commit

Permalink
Apply some bugs found in code review.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanRyanIrish committed Nov 29, 2024
1 parent 8967aba commit a529872
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions xrayvision/coordinates/frames.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@
__all__ = ["Projective"]


X_CTYPE = "PJLN-TAN"
Y_CTYPE = "PJLT-TAN"
X_CTYPE = "PJLN"
Y_CTYPE = "PJLT"


class Projective(SunPyBaseCoordinateFrame):
"""A generic projective coordinate frame for a imaging taken by an arbitrary imager."""
"""A generic projective coordinate frame for an image taken by an arbitrary imager."""

observer = ObserverCoordinateAttribute(HeliographicStonyhurst)
rsun = astropy.coordinates.QuantityAttribute(default=_RSUN, unit=u.km)
frame_specific_representation_info = {
astropy.coordinates.SphericalRepresentation: [
astropy.coordinates.RepresentationMapping("lon", "Tx", u.arcsec),
astropy.coordinates.RepresentationMapping("lat", "Ty", u.arcsec),
astropy.coordinates.RepresentationMapping("lon", u.arcsec),
astropy.coordinates.RepresentationMapping("lat", u.arcsec),
astropy.coordinates.RepresentationMapping("distance", "distance"),
],
astropy.coordinates.UnitSphericalRepresentation: [
astropy.coordinates.RepresentationMapping("lon", "Tx", u.arcsec),
astropy.coordinates.RepresentationMapping("lat", "Ty", u.arcsec),
astropy.coordinates.RepresentationMapping("lon", u.arcsec),
astropy.coordinates.RepresentationMapping("lat", u.arcsec),
],
}

Expand Down Expand Up @@ -113,8 +113,8 @@ def projective_frame_to_wcs(frame, projection="TAN"):
astropy.wcs.utils.FRAME_WCS_MAPPINGS.insert(1, [projective_frame_to_wcs])

PROJECTIVE_CTYPE_TO_UCD1 = {
"SXLT": "custom:pos.projective.lat",
"SXLN": "custom:pos.projective.lon",
"SXRZ": "custom:pos.projective.z",
"PJLT": "custom:pos.projective.lat",
"PJLN": "custom:pos.projective.lon",
"PJRZ": "custom:pos.projective.z",
}
astropy.wcs.wcsapi.fitswcs.CTYPE_TO_UCD1.update(PROJECTIVE_CTYPE_TO_UCD1)

0 comments on commit a529872

Please sign in to comment.