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

Spectro flat and mask to improve spectral extraction #46

Open
wants to merge 29 commits into
base: main
Choose a base branch
from

Conversation

jeremyneveu
Copy link
Collaborator

@jeremyneveu jeremyneveu commented Apr 10, 2024

The goal of this PR is to propose an upgrade of atmospec to adapt to new v3.1.0 Spectractor version and add:

  • computation of spectroflats
  • use pixel masks

There are some code lines that makes butler call in a non-ideal way that needs to be adapted.

image.gain = self._setGainFromExp(image, exp, .85) # gain required for calculating stat err
import lsst.daf.butler as dafButler
# butler = dafButler.Butler("/sdf/group/rubin/repo/oga/", collections=['LATISS/calib','LATISS/raw/all'])
butler = dafButler.Butler("/repo/embargo", collections=['LATISS/calib','LATISS/raw/all'])
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This initialisation of the butler with hardcoded paths is probably not what I should do but I don't know how to make it nicer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants