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

DAMD-89: Document and implement DetectorMap #131

Open
wants to merge 15 commits into
base: tickets/PIPE2D-641
Choose a base branch
from

Conversation

PaulPrice
Copy link
Member

Based on tickets/PIPE2D-641.

@PaulPrice PaulPrice requested a review from hassanxp November 12, 2020 21:13
@PaulPrice PaulPrice force-pushed the tickets/PIPE2D-641 branch 3 times, most recently from e2443f1 to 1edbe52 Compare November 13, 2020 23:23
Hassan Siddiqui added 7 commits November 16, 2020 17:16
Corrected calculations from AB maginitude to flux [nJy]
accordingly.
…Flux

The original code assumed AB magnitude as input. It is now AB flux.
The reference flux calculation was updated accordingly.
…des.

Also renamed local variables from *mag to *flux where appropriate.
and photometry errors fiberFluxErr, psfFluxErr, totalFluxErr
Copy link

@hassanxp hassanxp left a comment

Choose a reason for hiding this comment

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

Only minor comments.



def headerToMetadata(header):
"""Convert FITS header to LSST metadata

Choose a reason for hiding this comment

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

Isn't this something we should move to pfs_utils?

Copy link
Member Author

Choose a reason for hiding this comment

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

pfs_utils should know nothing about LSST.

The detectorMap shouldn't be necessary for building a fiber
flat: the fibers are dithered.
It's useful to have a temporary directory when running tests.
This implementation is taken from LSST's lsst.utils.tests,
but it's not in LSST 18.1.0, so reproduced here.
We don't use this anywhere. These days, we'd use ArcLineSet instead.
Getting an afw-format FITS header (PropertyList) seems to be a common
enough operation that we should have a separate function for it.
By using the I/O in datamodel, we ensure that we're always writing the
correct format, but it means a bit of a refactor. We no longer have to
determine the subclass of data on disk (that's done in the datamodel I/O
code); now we just have to convert to/from the datamodel representation.
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