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

DM-20548: Update HSC's camera geometry to use units of millimeters #219

Merged
merged 3 commits into from Aug 22, 2019

Conversation

laurenam
Copy link
Contributor

No description provided.

For (historical?) reasons, the obs_subaru camera geometry has been
using an effective scaling of "unity" (i.e. plateScale = 1 arcsec/mm,
pixelSize = 1 mm).  LSST has always preferred to define cameras in their
actual physical scaling units and, as of the work being done on DM-19943,
the physical scaling is actually required for the initial WCS-from-metadata
creation.

The situation is remedied here so that all camera definitions are now in
their physical units (namely mm for pixelSize and arcsec/mm for plateScale).
The distortion coefficients, which where derived assuming the unit scaling,
are scaled in the makeHscDistortion() function in
lsst.obs.subaru.hsc.transformRegistry to map them into the appropriate
physical scaling.
Copy link
Contributor

@PaulPrice PaulPrice left a comment

Choose a reason for hiding this comment

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

Well done! Thanks for all your hard work on this.


def main(camera, sample=20, names=False, showDistortion=True, plot=True, outputFile=None):
baseFileName = outputFile.rsplit("/")[-1].split(".")[0] if outputFile else None
Copy link
Contributor

Choose a reason for hiding this comment

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

Use os.path.basename?

Copy link
Member

Choose a reason for hiding this comment

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

Yes please. Something like: os.path.splitext(os.path.basename(outputFile))[0] should do it.

HSC used to use pixel scaling for the focal plane.  This has been updated to
use the appropriate plateScale = 11.2 arcsec/mm and pixelSize = 0.015 mm for
HSC, so the pickled dataset for test_distortion.py required regenerating.
@laurenam laurenam merged commit 632a304 into master Aug 22, 2019
@timj timj deleted the tickets/DM-20548 branch February 25, 2021 17:44
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.

None yet

3 participants