Open DaveStrickland opened 3 years ago
We have two alternatives:
fmodhead
. It would be up to them to automate the process for all files and all necessary keywords, e.g. with a shell script. Conceptually simple, but more work in the long run, and not very robust.Other considerations: Raw iTelescope files lack the TELESCOP
FITS keyword, it is added in their calibrated images by whatever calibration software they use. AstroPhotography already has a tool, ap_add_metadata.py/ApAddMetadata
, that adds keywords and detects the iTelescope telescope used based on the file name using a hard-wired internal dictionary. Currently that must be run only on self-calibrated files before performing star detection and astrometry, but it could easily be moved to being run on all files and run before calibration.
Modifying this, with maybe a longer term goal of moving the configuration out of the code into a file and generalizing it for user-defined telescope names, seems like a good place to start.
Issue #2 opened for end-to-end processing scripts that have a simple configuration mechanism. This could be used to also specify FITS keywords to override/add.
Need to check if this is still an issue when issue #2 merged.
Processing of iTelescope images from T32 and T09, in particular, fails in
ap_find_stars.py
:T32 and T09 images from Q3 2020 lack gain information in either the raw or calibrated FITS files, which is present in T05 images using the
EGAIN
keyword. T09 raw/calibrated FITS files have an incorrect focal lengthFOCALLEN
andAPTDIA
keywords:Expected values are 680mm and 127mm, see here.
The lack of a gain keyword causes
ap_find_stars.py
to crash when generating a quality report. Working around the lack of the gain keyword when generating the quality report is one option, but is non-optimal given other processing requires knowing the gain correctly (e.g. cosmic ray correction).The incorrect focal length for T09 leads to an incorrect estimated pixel size, approximately 70% larger than expected. This would likely cause
ap_astrometry.py
to fail as the current method limits the solution to be within +/-30% of the approximate pixel size.Here the keywords are present, but incorrect. The software would need some mechanism of applying corrected FITS header metadata to the raw files and or during calibration.