httm.fits_utilities.electron_flux_fits¶
This module contains functions for marshalling and de-marshalling
SingleCCDElectronFluxConverter
and the other book-keeping objects it contains to and from FITS files or astropy.io.fits.HDUList objects.
-
electron_flux_converter_flags_from_fits_header(fits_header, flag_overrides=None)[source]¶ Construct a
SingleCCDElectronFluxConverterFlagsfrom a file or file name.Parameters: Return type:
-
electron_flux_converter_from_fits(input_file, command=None, checksum=True, flag_overrides=None, parameter_overrides=None)[source]¶ TODO: Document me
Parameters: Return type:
-
electron_flux_converter_from_hdulist(header_data_unit_list, command=None, origin_file_name=None, flag_overrides=None, parameter_overrides=None)[source]¶ TODO: Document me
Parameters: Return type:
-
electron_flux_converter_parameters_from_fits_header(fits_header, parameter_overrides=None)[source]¶ TODO: Document me
Parameters: Return type:
-
electron_flux_converter_to_simulated_raw_hdulist(converter)[source]¶ This function converts a
SingleCCDElectronFluxConverterinto anastropy.io.fits.HDUListobject, suitable for writing out to a simulated raw FITS file.Parameters: converter ( SingleCCDElectronFluxConverter) – An electron flux converter objectReturn type: astropy.io.fits.HDUList
-
electron_flux_fits_to_raw(fits_input_file, fits_output_file, command=None, checksum=True, flag_overrides=None, parameter_overrides=None, transformation_settings=None)[source]¶ Read an electron flux FITS file in as input, with units specified in electron counts, run a series of transformations over it, and output the results to a specified file.
Parameters: - fits_input_file (str) – A FITS file with electron counts
- fits_output_file (str) – A FITS file to use as output; will be clobbered if it exists
- command (str) – The command issued to be recorded in the
HISTORYheader keyword in the output - checksum (bool) – Whether to use check-sums for data validation in reading and writing
- flag_overrides (
objectordict) – An object or dictionary specifying values transformation flags should take rather than their defaults - parameter_overrides (
objectordict) – An object or dictionary specifying values parameters should take rather than their defaults - transformation_settings (object) – An object which specifies which transformations should run, rather than the defaults
-
make_slice_from_electron_flux_data(pixels, early_dark_pixel_columns, late_dark_pixel_columns, final_dark_pixel_rows, smear_rows, index)[source]¶ Construct a slice from an array of electron flux pixel data given a specified index.
Result is in electron counts.
Parameters: Return type:
-
write_electron_flux_converter_to_simulated_raw_fits(converter, output_file, checksum=True)[source]¶ Write a
SingleCCDElectronFluxConverterto a simulated raw FITS file.Called for effect.
Parameters: - converter (
SingleCCDElectronFluxConverter) – An electron flux converter object - output_file (str) –
- checksum (bool) –
Return type: NoneType
- converter (