Ejemplo n.º 1
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]")
Ejemplo n.º 2
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]")
Ejemplo n.º 3
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]")
Ejemplo n.º 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]")
Ejemplo n.º 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]")
Ejemplo n.º 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]")