ArtObservation¶
- class artpop.image.ArtObservation(raw_counts, src_counts, sky_counts, image, var_image, calibration, zpt, bandpass, exptime, mag_error)[source]¶
Bases:
Observation
Return object for the artificial imager.
- Parameters
- raw_counts
ndarray
Raw count image, including Poisson noise.
- src_counts
ndarray
Source count image before Poission noise is added.
- sky_countsfloat
Counts per pixel from the sky.
- var_image
ndarray
Variance image.
- calibrationfloat
Calibration factor that converts counts to calibrated flux units.
- bandpassstr
Filter of the observation.
- zptfloat
The magnitude zero point.
- exptime
Quantity
The exposure time of the mock observation.
- raw_counts
Methods Summary
copy
()Create deep copy of observation object.
from_pickle
(file_name)Load pickle of observation object.
to_fits
(file_name[, overwrite, image_type])Write image to fits file.
to_pickle
(file_name)Pickle observation object.
Methods Documentation
- copy()¶
Create deep copy of observation object.
- static from_pickle(file_name)¶
Load pickle of observation object.
- to_fits(file_name, overwrite=True, image_type='image', **kwargs)¶
Write image to fits file.
- Parameters
- file_namestr
Name of fits file.
- overwritestr, optional
If True (default), overwrite the image if it exists.
- image_typestr, optional
Attribute name of the image to be written.
- to_pickle(file_name)¶
Pickle observation object.