Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add image times used in averages to subtraction FITS header #335

Open
1 of 3 tasks
jburkepile opened this issue May 4, 2023 · 2 comments
Open
1 of 3 tasks

Add image times used in averages to subtraction FITS header #335

jburkepile opened this issue May 4, 2023 · 2 comments
Assignees
Labels
enhancement new feature
Milestone

Comments

@jburkepile
Copy link
Collaborator

jburkepile commented May 4, 2023

The new subtraction code creates a subtraction every 30 seconds. If there are no data gaps, the subtraction is created by averaging 2 adjacent images (<=16 seconds apart) for both the foreground and the background image.

Please save the times used in the averages in the FITS header.

  • Create variables to store 2 image times in hh:mm:ss

  • Create a string that stores the 2 image times 'hh:mm:ss hh:mm:ss'

  • UseFXADDPAR to write the label to a new FITS keyword 'AVGTIME0', e.g.:

    fxaddpar, goodheader,'AVGTIME0', labelstring,' Img times used in avg'
    
@jburkepile jburkepile added the enhancement new feature label May 4, 2023
@mgalloy mgalloy changed the title Add image times used in averages to subtraction fits header Add image times used in averages to subtraction FITS header May 4, 2023
@mgalloy
Copy link
Member

mgalloy commented May 4, 2023

So there should be an AVGTIME0 (for the background image) and an AVGTIME1 (for the foreground image)?

@mgalloy
Copy link
Member

mgalloy commented May 5, 2023

@jburkepile says:

Thanks asking that. I left that out entirely. You are exactly right. AVGTIME0 can be the 2 times used to make the background image and AVGTIME1 the 2 times used to make the foreground image. Obviously when there is a data gap, there will be only 1 image (no averaging).
Thanks very much!

@mgalloy mgalloy added this to the 2.3 reprocessing milestone Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement new feature
Projects
None yet
Development

No branches or pull requests

2 participants