Bases: list, pyfits.verify._Verify
HDU list class. This is the top-level FITS object. When a FITS file is opened, a HDUList object is returned.
Construct a HDUList object.
Parameters: | |
---|---|
hdus : sequence of HDU objects or single HDU, optional
file : file object, optional
|
Append a new HDU to the HDUList.
Parameters: | |
---|---|
hdu : instance of _BaseHDU
classExtensions : dict
|
Close the associated FITS file and memmap object, if any.
Parameters: | |
---|---|
output_verify : str
verbose : bool
closed : bool
|
Returns a dictionary detailing information about the locations of the indexed HDU within any associated file. The values are only valid after a read or write of the associated file with no intervening changes to the HDUList.
Parameters: | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
index : int
|
|||||||||||||||||
Returns: | |||||||||||||||||
dictionary or None :
|
Return the file name associated with the HDUList object if one exists. Otherwise returns None.
Returns: | |
---|---|
filename : a string containing the file name associated with the
|
Force a write of the HDUList back to the file (for append and update modes only).
Parameters: | |
---|---|
output_verify : str
verbose : bool
classExtensions : dict
|
Get the index of an HDU from the HDUList.
Parameters: | |
---|---|
key : int, str or tuple of (string, int)
|
|
Returns: | |
index : int
|
Summarize the info of the HDUs in this HDUList.
Note that this function prints its results to the console—it does not return a value.
Parameters: | |
---|---|
output : file, bool (optional)
|
Insert an HDU into the HDUList at the given index.
Parameters: | |
---|---|
index : int
hdu : _BaseHDU instance
classExtensions : dict
|
Read data of all HDUs into memory.
Make sure that if the primary header needs the keyword EXTEND that it has it and it is correct.
Verify all values in the instance.
Parameters: | |
---|---|
option : str
|
Write the HDUList to a new file.
Parameters: | |
---|---|
fileobj : file path, file object or file-like object
output_verify : str
clobber : bool
checksum : bool
|