-
Notifications
You must be signed in to change notification settings - Fork 6
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
Review for DM-2674: Make meas_mosaic work on LSST. #1
Merged
Merged
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
8c319f9
Use LSST exception names.
jdswinbank 70f1d62
cameraGeom::Ccd::Ptr -> PTR(cameraGeom::Detector)
jdswinbank 53fc296
Replace calls to Detector::get{Cos,Sin}Yaw().
jdswinbank a76fac9
Convert fluxfit.cc to new cameraGeom.
jdswinbank 6cc9af5
Convert mosaicfit.cc to new cameraGeom.
jdswinbank 189183b
Correct location of PerTractCcdDataIdContainer.
jdswinbank 751b6ff
Adapt to new meas_astrom.
jdswinbank e31fc2c
Adapt to new colorterm system.
jdswinbank c069ccb
Make photometry catalog name a config parameter.
jdswinbank c700ef9
Use meas_base-style field names.
jdswinbank da21d15
Adapt MosaicTask to new cameraGeom.
jdswinbank f36d3fd
Adapt CheckMosaicTask to new MosaicRunner.
jdswinbank 33a48ea
Make use of LaTeX in figure captions optional.
jdswinbank a32f6bf
Add wrappers to map to the old cameraGeom API.
jdswinbank 6994ed3
Adapt existing code to use cameraGeom shim.
jdswinbank 98984e4
Remove unused & broken test.
jdswinbank 1c27fa9
Adapt to running on OSX/SIP.
jdswinbank 94f3c00
Correct include file name.
jdswinbank a627301
Reword source loading for LSST.
jdswinbank f961819
Make it possible to correct flux only.
jdswinbank a644076
Specify coadd type in MosaicTaskConfig.
jdswinbank 8c67389
Account for astrometry catalogs being read in Jy.
laurenam a08f7d2
Make it possible to correct Wcs only.
jdswinbank 1ce11a3
Update to match recent Butler API changes.
jdswinbank 6907577
Update to match new ProcessCcdTask.
jdswinbank 626bf5d
Fix reference flux key name for colorterm
laurenam 2e2038b
Adjust formatting & clean up.
laurenam 3ef9dcb
De-boostification
laurenam d5a7939
Add function name to print statements
laurenam f6b1ce5
Account for catalogs read in janskys: fluxSigmas
laurenam 056f48e
Update diagnostics output.
laurenam 927de8c
Rotate catalog centroids to meas_mosaic coords
laurenam 6bc2ac5
Account for w<-->h for oddly rotated CCDs
laurenam 59d2d7d
Accommodate running on HSC stack products
laurenam 47a3aba
Add options to select against objects for mosaic fit
laurenam 72d414f
Use full pivoting when using Eigen
laurenam 6fe95ec
Force use of Eigen over MKL
laurenam 536471f
Move appropriate functions to utils.py.
laurenam ea73947
Make minor plot updates: labels and font size
laurenam 1a1a0cd
Make minor style and formatting updates
laurenam 009cb28
Update applyMosaicResultsCatalog
laurenam f86d34b
Update getFluxKeys in updateExposure.py
laurenam 3804a84
Update applyCalib in updateExposure.py
laurenam d5f1045
Drop dependencies on MKL and OpenBLAS
jdswinbank File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# -*- python -*- | ||
from lsst.sconsUtils import scripts | ||
scripts.BasicSConscript.shebang() |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// -*- lsst-c++ -*- | ||
#ifndef LSST_MEAS_MOSAIC_SHIM_CAMERAGEOM_H | ||
#define LSST_MEAS_MOSAIC_SHIM_CAMERAGEOM_H | ||
|
||
#include "lsst/afw/geom.h" | ||
#include "lsst/afw/cameraGeom.h" | ||
|
||
namespace lsst { | ||
namespace meas { | ||
namespace mosaic { | ||
|
||
// Get the number of quarter rotations of the detector. | ||
int getNQuarter(CONST_PTR(afw::cameraGeom::Detector)); | ||
|
||
// Get the detector yaw. | ||
afw::geom::Angle getYaw(CONST_PTR(afw::cameraGeom::Detector)); | ||
|
||
// Return a linear transform which scales from dimensions in mm to dimensions | ||
// in pixels. | ||
afw::geom::LinearTransform makeScalingMmToPx(afw::geom::Extent2D const pSize); | ||
|
||
// Return the position of the center of the detector in pixels on the focal plane. | ||
// Mimics HSC's camGeom: ccd.getCenter().getPixels(ccd.getPixelSize()) | ||
afw::geom::Point2D getCenterInFpPixels(CONST_PTR(afw::cameraGeom::Detector)); | ||
|
||
// Return the position of the center of the detector in pixels on the | ||
// detector. | ||
// Mimics HSC's camGeom: ccd.getCenterPixel() | ||
afw::geom::Point2D getCenterInDetectorPixels(CONST_PTR(afw::cameraGeom::Detector)); | ||
|
||
// Return the width of the detector in pixels. | ||
int getWidth(CONST_PTR(afw::cameraGeom::Detector)); | ||
|
||
// Return the height of the detector in pixels. | ||
int getHeight(CONST_PTR(afw::cameraGeom::Detector)); | ||
|
||
// Convert a pixel position on a given detector to a pixel position on the focal plane. | ||
afw::geom::Point2D detPxToFpPx(CONST_PTR(afw::cameraGeom::Detector), afw::geom::Point2D const); | ||
|
||
// Convert a pixel position on a given detector to a pixel position on the focal plane | ||
// accounting for yaw rotation. | ||
// Mimics HSC's camGeom: ccd.getPositionFromPixel(point).getPixels(ccd.getPixelSize()) | ||
afw::geom::Point2D detPxToFpPxRot(CONST_PTR(afw::cameraGeom::Detector), afw::geom::Point2D const); | ||
|
||
// Compute new position of lower left corner in Focal Plane pixels: X0, Y0 | ||
afw::geom::Point2D computeX0Y0(CONST_PTR(afw::cameraGeom::Detector), double, double); | ||
|
||
}}} // lsst::meas::mosaic | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alias