[AstroPy] Inheriting HDUList
Joe Philip Ninan
indiajoe at gmail.com
Sun Feb 2 09:10:21 EST 2014
Hi,
Is there any online example of how to create a new child object from
HDUList of astropy.io.fits ? (The object astropy.io.fits.open() returns).
I want to create an object class which inherits everything from HDUList,
and then add some additional functions.
The part i cannot figure out is how to initialize the HDUList inside the
new class.
class MyFitsObject(HDUList):
def __init__(self,filename):
# How do i initialise HDUList here, when all i have is the Fits File
name?
-cheers
joe
--
/---------------------------------------------------------------
"GNU/Linux: because a PC is a terrible thing to waste" - GNU Generation
************************************************
Joe Philip Ninan
Research Scholar /________________\
DAA, | Vadakeparambil |
TIFR, | Pullad P.O. |
Mumbai-05, India. | Kerala, India |
Ph: +917738438212 | PIN:689548 |
------------------------------\_______________/--------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20140202/7c29605e/attachment.html>
More information about the AstroPy
mailing list