ifw-daq  3.0.0-pre2
IFW Data Acquisition modules
Public Member Functions | Static Public Attributes | List of all members
Fits.Fits Class Reference

Robot library providing FITS related keywords. More...

Public Member Functions

def fits_read_primary_hdu (self, MaybeHdu path_or_hdu, Optional[bool] with_checksum=None)
 Returns list of keywords from primary HDU as a list of pairs [["KEYWORD": "VALUE"], ...]. More...
 
def fits_get_hdu_ext_names (self, MaybeHdu path_or_hdu)
 Returns list of keywords from primary HDU as a list of pairs. More...
 
def fits_create_empty (self)
 
def fits_create_image (self)
 
def fits_get_info (self, MaybeHdu path_or_hdu)
 
def fits_set_keyword (self, MaybeHdu path_or_hdu, *name, value, comment="", hdu_num=0)
 
def fits_add_image_ext (self, MaybeHdu path_or_hdu, *name)
 
def fits_add_bintable_ext (self, MaybeHdu path_or_hdu, *name)
 
def fits_close (self, fits.HDUList hdul)
 
def fits_write_to (self, MaybeHdu path_or_hdu, str path)
 
def fits_verify (self, MaybeHdu path_or_hdu)
 Executes astropy verify() verify_checksum() and verify_datasum() More...
 
def fits_verify_checksum (self, MaybeHdu path_or_hdu, Union[str, int] hdu_num, Optional[str] expected=None)
 Verify checksum. More...
 
def fits_verify_datasum (self, MaybeHdu path_or_hdu, Union[str, int] hdu_num, Optional[str] expected=None)
 Verify datasum. More...
 
def fits_read_primary_hdu (self, MaybeHdu path_or_hdu, Optional[bool] with_checksum=None)
 Returns list of keywords from primary HDU as a list of pairs [["KEYWORD": "VALUE"], ...]. More...
 
def fits_get_hdu_ext_names (self, MaybeHdu path_or_hdu)
 Returns list of keywords from primary HDU as a list of pairs. More...
 
def fits_create_empty (self)
 
def fits_create_image (self)
 
def fits_get_info (self, MaybeHdu path_or_hdu)
 
def fits_set_keyword (self, MaybeHdu path_or_hdu, *name, value, comment="", hdu_num=0)
 
def fits_add_image_ext (self, MaybeHdu path_or_hdu, *name)
 
def fits_add_bintable_ext (self, MaybeHdu path_or_hdu, *name)
 
def fits_close (self, fits.HDUList hdul)
 
def fits_write_to (self, MaybeHdu path_or_hdu, str path)
 
def fits_verify (self, MaybeHdu path_or_hdu)
 Executes astropy verify() verify_checksum() and verify_datasum() More...
 
def fits_verify_checksum (self, MaybeHdu path_or_hdu, Union[str, int] hdu_num, Optional[str] expected=None)
 Verify checksum. More...
 
def fits_verify_datasum (self, MaybeHdu path_or_hdu, Union[str, int] hdu_num, Optional[str] expected=None)
 Verify datasum. More...
 

Static Public Attributes

string ROBOT_LIBRARY_SCOPE = "GLOBAL"
 

Detailed Description

Robot library providing FITS related keywords.

Definition at line 12 of file Fits.py.

Member Function Documentation

◆ fits_add_bintable_ext() [1/2]

def Fits.Fits.fits_add_bintable_ext (   self,
MaybeHdu  path_or_hdu,
name 
)

Definition at line 87 of file Fits.py.

◆ fits_add_bintable_ext() [2/2]

def Fits.Fits.fits_add_bintable_ext (   self,
MaybeHdu  path_or_hdu,
name 
)

Definition at line 87 of file Fits.py.

◆ fits_add_image_ext() [1/2]

def Fits.Fits.fits_add_image_ext (   self,
MaybeHdu  path_or_hdu,
name 
)

Definition at line 80 of file Fits.py.

◆ fits_add_image_ext() [2/2]

def Fits.Fits.fits_add_image_ext (   self,
MaybeHdu  path_or_hdu,
name 
)

Definition at line 80 of file Fits.py.

◆ fits_close() [1/2]

def Fits.Fits.fits_close (   self,
fits.HDUList  hdul 
)

Definition at line 99 of file Fits.py.

◆ fits_close() [2/2]

def Fits.Fits.fits_close (   self,
fits.HDUList  hdul 
)

Definition at line 99 of file Fits.py.

◆ fits_create_empty() [1/2]

def Fits.Fits.fits_create_empty (   self)

Definition at line 52 of file Fits.py.

◆ fits_create_empty() [2/2]

def Fits.Fits.fits_create_empty (   self)

Definition at line 52 of file Fits.py.

◆ fits_create_image() [1/2]

def Fits.Fits.fits_create_image (   self)

Definition at line 57 of file Fits.py.

◆ fits_create_image() [2/2]

def Fits.Fits.fits_create_image (   self)

Definition at line 57 of file Fits.py.

◆ fits_get_hdu_ext_names() [1/2]

def Fits.Fits.fits_get_hdu_ext_names (   self,
MaybeHdu  path_or_hdu 
)

Returns list of keywords from primary HDU as a list of pairs.

Definition at line 42 of file Fits.py.

◆ fits_get_hdu_ext_names() [2/2]

def Fits.Fits.fits_get_hdu_ext_names (   self,
MaybeHdu  path_or_hdu 
)

Returns list of keywords from primary HDU as a list of pairs.

Definition at line 42 of file Fits.py.

◆ fits_get_info() [1/2]

def Fits.Fits.fits_get_info (   self,
MaybeHdu  path_or_hdu 
)

Definition at line 62 of file Fits.py.

◆ fits_get_info() [2/2]

def Fits.Fits.fits_get_info (   self,
MaybeHdu  path_or_hdu 
)

Definition at line 62 of file Fits.py.

◆ fits_read_primary_hdu() [1/2]

def Fits.Fits.fits_read_primary_hdu (   self,
MaybeHdu  path_or_hdu,
Optional[bool]   with_checksum = None 
)

Returns list of keywords from primary HDU as a list of pairs [["KEYWORD": "VALUE"], ...].

Definition at line 24 of file Fits.py.

◆ fits_read_primary_hdu() [2/2]

def Fits.Fits.fits_read_primary_hdu (   self,
MaybeHdu  path_or_hdu,
Optional[bool]   with_checksum = None 
)

Returns list of keywords from primary HDU as a list of pairs [["KEYWORD": "VALUE"], ...].

Definition at line 24 of file Fits.py.

◆ fits_set_keyword() [1/2]

def Fits.Fits.fits_set_keyword (   self,
MaybeHdu  path_or_hdu,
name,
  value,
  comment = "",
  hdu_num = 0 
)

Definition at line 69 of file Fits.py.

◆ fits_set_keyword() [2/2]

def Fits.Fits.fits_set_keyword (   self,
MaybeHdu  path_or_hdu,
name,
  value,
  comment = "",
  hdu_num = 0 
)

Definition at line 69 of file Fits.py.

◆ fits_verify() [1/2]

def Fits.Fits.fits_verify (   self,
MaybeHdu  path_or_hdu 
)

Executes astropy verify() verify_checksum() and verify_datasum()

Definition at line 108 of file Fits.py.

◆ fits_verify() [2/2]

def Fits.Fits.fits_verify (   self,
MaybeHdu  path_or_hdu 
)

Executes astropy verify() verify_checksum() and verify_datasum()

Definition at line 108 of file Fits.py.

◆ fits_verify_checksum() [1/2]

def Fits.Fits.fits_verify_checksum (   self,
MaybeHdu  path_or_hdu,
Union[str, int]  hdu_num,
Optional[str]   expected = None 
)

Verify checksum.

Definition at line 127 of file Fits.py.

◆ fits_verify_checksum() [2/2]

def Fits.Fits.fits_verify_checksum (   self,
MaybeHdu  path_or_hdu,
Union[str, int]  hdu_num,
Optional[str]   expected = None 
)

Verify checksum.

Definition at line 127 of file Fits.py.

◆ fits_verify_datasum() [1/2]

def Fits.Fits.fits_verify_datasum (   self,
MaybeHdu  path_or_hdu,
Union[str, int]  hdu_num,
Optional[str]   expected = None 
)

Verify datasum.

Definition at line 147 of file Fits.py.

◆ fits_verify_datasum() [2/2]

def Fits.Fits.fits_verify_datasum (   self,
MaybeHdu  path_or_hdu,
Union[str, int]  hdu_num,
Optional[str]   expected = None 
)

Verify datasum.

Definition at line 147 of file Fits.py.

◆ fits_write_to() [1/2]

def Fits.Fits.fits_write_to (   self,
MaybeHdu  path_or_hdu,
str  path 
)

Definition at line 102 of file Fits.py.

◆ fits_write_to() [2/2]

def Fits.Fits.fits_write_to (   self,
MaybeHdu  path_or_hdu,
str  path 
)

Definition at line 102 of file Fits.py.

Member Data Documentation

◆ ROBOT_LIBRARY_SCOPE

string Fits.Fits.ROBOT_LIBRARY_SCOPE = "GLOBAL"
static

Definition at line 14 of file Fits.py.


The documentation for this class was generated from the following file: