Page 1 of 1

Read integration times from FITS file headers for Compose module

Posted: Fri Apr 22, 2022 6:04 pm
by BrendanC
Title says it all really!

Would be great if StarTools could read these details and auto-compile them into the Compose module.

Thanks, Brendan

Re: Read integration times from FITS file headers for Compose module

Posted: Sat Apr 23, 2022 4:58 am
by admin
Thank you for this suggestion.
I never looked into this, as I assumed there was no standard way of specifying total exposure times in the FITS header. If you are aware of a standard (or defacto standard) way these are encoded, please do let me know, as I agree this would be fantastic!

Re: Read integration times from FITS file headers for Compose module

Posted: Sat Apr 23, 2022 3:02 pm
by BrendanC
I know that APP and DSS do this - seems to be a field called Temporal.IntegrationTime in the FITS metadata with the aggregate time from all the subs. The standard FITS Image Headers from APP and DSS also seem to have a field, EXPTIME, with the same value.

That's a good start!

I honestly don't know about other stacking software eg Siril, PixInsight, ASTAP, Affinity etc.

Re: Read integration times from FITS file headers for Compose module

Posted: Sat Apr 23, 2022 7:23 pm
by Mike in Rancho
I checked some ASTAP files and the total integration in seconds is also EXPTIME.

Re: Read integration times from FITS file headers for Compose module

Posted: Tue May 03, 2022 4:11 pm
by BrendanC
Siril uses LIVETIME for total integration, and EXPTIME for the duration of the subs.

Affinity doesn't export FITS file formats, even though it accepts them for stacking!

Re: Read integration times from FITS file headers for Compose module

Posted: Fri May 06, 2022 12:28 am
by admin
Thank you for your sleuthing @BrendanC and @Mike in Rancho!
Though this confirms the problem with EXPTIME being used differently in different software, this, in combination with other fields that identify the originating software, may be enough to start work on integration time detection. :thumbsup:

Re: Read integration times from FITS file headers for Compose module

Posted: Sun May 08, 2022 2:19 am
by BrendanC
No problem! Glad it was useful. I'm trialling PixInsight too and if I ever actually manage to get anything out of it, I'll take a look and see whether it also holds this info in the header.

Re: Read integration times from FITS file headers for Compose module

Posted: Mon May 09, 2022 5:17 am
by admin
I found I can - in typical cases - reconstruct total exposure time from PI FITS files by multiplying the HISTORY ImageIntegration.numberOfImages field by EXPTIME. :thumbsup:

Expect this feature in the first 1.9 alpha release (ETA still unknown).

@BrendanC, if you are trialling PI, have a look at this table, so you get a better feel for how ST terminology relates to PI equivalents.