ecpi.common.io.fits_tools Module

Created on 20 mars 2018

based on ‘Tools.py’ python program of Cyril Lachaud Generic functions to manipulate fits file

@author: Catalano Camille, APC

Functions

common_keyword(fits_header, tstart, tstop[, …]) add to the fits header the common keywords used in all the pipeline products
energy_keywords(fits_header, chanmin, …) add to fits header the keywords related to energy
get_caldb_files_with_name(name, workdir) Return list of .fits files whose CCNM0001 is equal to name.
get_fits_files_with_extname(card_name, workdir) Return list of .fits files whose CARD is equal to card_name.
get_mjd_ref() return the mjd reference for the SVOM mission
glob(pathname, *[, recursive]) Return a list of paths matching a pathname pattern.
grouphdu_keyword(fits_header, …) add to the fits header the specific keywords for a group HDU
image_plot(image[, save, show, title, clim, …]) plot/show/save the image of the array
pointing_keywords(fits_header, attitude, …) add to fits header the keywords related to pointing of ECLAIRs
read_fits(name[, ugts_standard]) Read an array from a fits file
set_array_and_header_from_file(filename[, …]) read a fits file
set_array_from_file(filename[, ugts_standard]) read a fits file (using read_fits)
write_fits(filename, data) Save an array into a fits file