예제 #1
0
    def test31035(self):
        """Test that illegal values in the header can be round-tripped."""
        with lsst.utils.tests.getTempFilePath(".fits") as fileName:
            exp = ExposureF(width=100, height=100)
            md = exp.getMetadata()
            md['BORE-RA'] = 'NaN'
            md['BORE-DEC'] = 'NaN'
            md['BORE-AZ'] = 'NaN'
            md['BORE-ALT'] = 'NaN'
            md['BORE-AIRMASS'] = 'NaN'
            md['BORE-ROTANG'] = 'NaN'
            md['OBS-LONG'] = 'NaN'
            md['OBS-LAT'] = 'NaN'
            md['OBS-ELEV'] = 'NaN'
            md['AIRTEMP'] = 'NaN'
            md['AIRPRESS'] = 'NaN'
            md['HUMIDITY'] = 'NaN'

            exp.writeFits(fileName)

            _ = ExposureF.readFits(fileName)
예제 #2
0
 def setUp(self):
     self.exp = ExposureF.readFits(
         os.path.join(datadir, 'v695833-e0-c000-a00.sci.fits'))
     self.data = make_data(self.exp.getBBox(), self.exp.getWcs())