Exemplo n.º 1
0
def test9():
    '''ASTRODATA-open TEST 9: Pass params header and data'''
    hdulist_sef = pyfits.open(sci1)
    header = hdulist_sef[1].header
    data = hdulist_sef[1].data
    ad = AstroData(header=header, data=data)
    checkad(ad)
    hdulist_sef.close()
Exemplo n.º 2
0
def test8():
    '''ASTRODATA-open TEST 8: Pass params phu, header, and data'''
    hdulist_sef = pyfits.open(sci1)
    phu = hdulist_sef[0]
    header = hdulist_sef[1].header
    data = hdulist_sef[1].data
    ad = AstroData(phu=phu, header=header, data=data)
    checkad(ad)
    hdulist_sef.close()
Exemplo n.º 3
0
def test4():
    '''ASTRODATA-open TEST 4: Pass pyfits HDUList (SEF, SCI1)'''
    hdulist_sef = pyfits.open(sci1)
    ad = AstroData(hdulist_sef)
    checkad(ad)
    hdulist_sef.close()
Exemplo n.º 4
0
def test7():
    '''ASTRODATA-open TEST 7: Pass param phu=pyfits header'''
    hdulist_sef = pyfits.open(sci1)
    ad = AstroData(phu=hdulist_sef[0].header)
    checkad(ad)
    hdulist_sef.close()
Exemplo n.º 5
0
def test1():
    '''ASTRODATA-open TEST 1: Pass filename (MEF, SCI123)'''
    ad = AstroData(sci123)
    checkad(ad)
Exemplo n.º 6
0
def test2():
    '''ASTRODATA-open TEST 2: Pass filename (SEF, SCI1)'''
    ad = AstroData(sci1)
    checkad(ad)
Exemplo n.º 7
0
def test6():
    '''ASTRODATA-open TEST 6: Pass param phu=pyfits PHU'''
    hdulist_sef = pyfits.open(sci1)
    ad = AstroData(phu=hdulist_sef[0])
    checkad(ad)
    hdulist_sef.close()
Exemplo n.º 8
0
def test3():
    '''ASTRODATA-open TEST 3: Pass pyfits HDUList (MEF, SCI123)'''
    hdulist_mef = pyfits.open(sci123)
    ad = AstroData(hdulist_mef)
    checkad(ad)
    hdulist_mef.close()
Exemplo n.º 9
0
def test5():
    '''ASTRODATA-open TEST 5: Pass None (AstroData())'''
    ad = AstroData()
    checkad(ad)