Skip to content

Commit

Permalink
Merge pull request #287 from lsst/tickets/DM-26327
Browse files Browse the repository at this point in the history
DM-26327: Support WCS flip in X in gen3 raw formatter
  • Loading branch information
timj committed Aug 18, 2020
2 parents 35a73e1 + cb142d6 commit fe344e5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/lsst/obs/base/_fitsRawFormatterBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ class FitsRawFormatterBase(FitsExposureFormatter, metaclass=ABCMeta):
FITS files.
"""

# This has to be explicit until we fix camera geometry in DM-20746
wcsFlipX = False
"""Control whether the WCS is flipped in the X-direction (`bool`)"""

def __init__(self, *args, **kwargs):
self.filterDefinitions.reset()
self.filterDefinitions.defineFilters()
Expand Down Expand Up @@ -254,7 +258,7 @@ def makeRawSkyWcsFromBoresight(cls, boresight, orientation, detector):
skyWcs : `~lsst.afw.geom.SkyWcs`
Reversible mapping from pixel coordinates to sky coordinates.
"""
return createInitialSkyWcsFromBoresight(boresight, orientation, detector)
return createInitialSkyWcsFromBoresight(boresight, orientation, detector, flipX=cls.wcsFlipX)

def _createSkyWcsFromMetadata(self):
"""Create a SkyWcs from the FITS header metadata in an Exposure.
Expand Down

0 comments on commit fe344e5

Please sign in to comment.