class craftutils.observation.image.ESOImage(craftutils.observation.epoch.Epoch.frame_class)

Generic parent class for ESO images, both spectra and imaging

Public members

extract_frame_type()
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)
add_log(action: str, method=None, ...)
open(mode: str = 'readonly')
close()
new_image(path: str)
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_output_file()
update_output_file()
load_headers(force: bool = False, **kwargs)
load_data(force: bool = False)
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_units()
extract_program_id()
extract_gain()
extract_date_obs() str
extract_exposure_time()
extract_noise_read()
extract_object()
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)
write_fits_file()
classmethod from_fits(path: str, mode: str = 'imaging')
classmethod select_child_class(instrument_name: str, **kwargs)
split_fits(output_dir: str | None = None)