- class craftutils.observation.image.ESOImage(craftutils.observation.epoch.Epoch.frame_class)
Generic parent class for ESO images, both spectra and imaging
Public members¶
- classmethod header_keys()
-
instrument_name =
'dummy'
-
num_chips =
1
-
class_dict =
{}
-
ESOImage(path: str, frame_type: str | None =
None, ...) Initialize self. See help(type(self)) for accurate signature.
- __eq__(other)
Return self==value.
- __str__()
Return str(self).
- copy_headers(other: Image)
- close()
-
copy(destination: str, suffix: str =
'') A note to future me: do copy, THEN make changes, or be prepared to suffer the consequences.
- copy_with_outputs(destination: str)
-
load_headers(force: bool =
False, **kwargs)
- to_ccddata(unit: str | Unit)
- get_id()
-
set_header_items(items: dict, ext: int =
0, write: bool =True)
-
set_header_item(key: str, value, ext: int =
0, write: bool =False)
-
add_history(note: str, ext: int =
0)
-
extract_header_item(key: str, ext: int =
0, ...)
-
extract_chip_number(ext: int =
0)
-
extract_unit(astropy: bool =
False)
-
extract_n_pix(ext: int =
0)
- extract_pixel_edges()
Using the FITS convention of origin = 1, 1, returns the pixel coordinates of the edges. :return: tuple: left, right, bottom, top
-
extract_saturate(data_ext: int =
0)
-
remove_extra_extensions(ext: int =
0)
- classmethod select_child_class(instrument_name: str, **kwargs)
-
split_fits(output_dir: str | None =
None)