MCELS_header_fix
The MCELS images (both for the LMC and SMC) have
Space Telescope Science Institute
Synopsis
The MCELS images (both for the LMC and SMC) have some header info that is depracated, notably:
Command Line Usage
usage: head_fix.py filename
Description
Primary routines:
doit
Primary Routines
doit
Notes
- WARNING - while this does fix the actual problem one will likely still see warnings
apparently there are problems with the astroy wcs library. To suppress these warnings add to your code the following:
import warnings from astropy.wcs import WCS, FITSFixedWarning warnings.filterwarnings(‘ignore’, category=FITSFixedWarning, message=”.*datfix.*”)
Version History
- 250731 ksl
Coding begun
Functions
|
|
|
Try to convert 'DD/MM/YY' → 'YYYY-MM-DD' |
|
Just steer |
Module Contents
- MCELS_header_fix.fix_fits_header(filename)
- MCELS_header_fix.parse_non_iso_date(date_str)
Try to convert ‘DD/MM/YY’ → ‘YYYY-MM-DD’
- MCELS_header_fix.steer(argv)
Just steer