def test_reset_datasec_stars(self):
     datasec = "[100:2000,100:4450]"
     cutout = "[*, *]"
     naxis1 = 2048
     naxis2 = 4600
     self.assertEquals(
         storage.reset_datasec(cutout, datasec, naxis1, naxis2),
         "[100:2000,100:4450]")
 def test_reset_datasec_flipped_stars(self):
     datasec = "[100:2000,100:4450]"
     cutout = "[-*, -*]"
     naxis1 = 2048
     naxis2 = 4600
     self.assertEquals(
         storage.reset_datasec(cutout, datasec, naxis1, naxis2),
         "[49:1949,151:4501]")
 def test_reset_datasec_flipped(self):
     datasec = "[100:2000,100:4450]"
     cutout = "[200:101, 200:101]"
     naxis1 = 2048
     naxis2 = 4600
     self.assertEquals(
         storage.reset_datasec(cutout, datasec, naxis1, naxis2),
         "[1:101,1:101]")
Exemple #4
0
 def test_reset_datasec_stars(self):
     datasec = "[100:2000,100:4450]"
     cutout = "[*, *]"
     naxis1 = 2048
     naxis2 = 4600
     self.assertEquals(storage.reset_datasec(cutout, datasec, naxis1, naxis2), "[100:2000,100:4450]")
Exemple #5
0
 def test_reset_datasec_flipped_stars(self):
     datasec = "[100:2000,100:4450]"
     cutout = "[-*, -*]"
     naxis1 = 2048
     naxis2 = 4600
     self.assertEquals(storage.reset_datasec(cutout, datasec, naxis1, naxis2), "[49:1949,151:4501]")
Exemple #6
0
 def test_reset_datasec_flipped(self):
     datasec = "[100:2000,100:4450]"
     cutout = "[200:101, 200:101]"
     naxis1 = 2048
     naxis2 = 4600
     self.assertEquals(storage.reset_datasec(cutout, datasec, naxis1, naxis2), "[1:101,1:101]")