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-13270: Cleanup ccdImage and gtransfo APIs #117
Conversation
3c62d1e
to
2db888c
Compare
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.
I don't see any major issues, but there are a few things that seem to be inconsistent. I'm happy either way, I just wanted to know if there was a reason some names weren't changed.
include/lsst/jointcal/CcdImage.h
Outdated
|
||
//! | ||
Gtransfo const *getPix2CommonTangentPlane() const { return _pix2CommonTangentPlane.get(); } | ||
std::shared_ptr<Gtransfo> const getPixToCommonTangentPlane() const { return _pixToCommonTangentPlane; } |
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.
Should this be getPixelToCommonTangentPlane()
?
include/lsst/jointcal/CcdImage.h
Outdated
|
||
//! | ||
Gtransfo const *getPix2TangentPlane() const { return _pix2TP.get(); } | ||
std::shared_ptr<Gtransfo> const getPixToTangentPlane() const { return _pixToTangentPlane; } |
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.
getPixelToTangentPlane()
?
include/lsst/jointcal/Gtransfo.h
Outdated
|
||
//! the transformation from pixels to tangent plane (degrees) | ||
GtransfoPoly getPix2TangentPlane() const; | ||
GtransfoPoly getPixToTangentPlane() const; |
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.
getPixelToTangentPlane()
?
include/lsst/jointcal/Gtransfo.h
Outdated
|
||
//! the transformation from pixels to tangent plane (degrees) | ||
GtransfoPoly getPix2TangentPlane() const; | ||
GtransfoPoly getPixToTangentPlane() const; |
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.
getPixelToTangentPlane()
?
include/lsst/jointcal/Gtransfo.h
Outdated
@@ -579,55 +579,57 @@ class BaseTanWcs : public Gtransfo { | |||
|
|||
//! Get a transform from pixels to tangent plane (degrees) | |||
//! This is a linear transform plus the effects of the correction | |||
virtual GtransfoPoly getPix2TangentPlane() const = 0; | |||
virtual GtransfoPoly getPixToTangentPlane() const = 0; |
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.
getPixelToTangentPlane()
?
src/Gtransfo.cc
Outdated
@@ -1300,10 +1300,10 @@ static double deg2rad(double degree) { return degree * M_PI / 180.; } | |||
static double rad2deg(double rad) { return rad * 180. / M_PI; } | |||
|
|||
/************* WCS transfo ******************/ | |||
/************** LinPix2Tan *******************/ | |||
/************** LinPixToTan *******************/ |
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.
LinPixelToTan
here and throughout?
Thanks: this was done in a series of steps as I decided on better and better names for things (and then flattend into one commit), but I clearly didn't catch everything at each step of the way. I'm glad you caught those. |
* Rename sky2TP->skyToTangentPlane * Rename other ccdImage tangent plane/pixel methods and members: `X2Y`->`XToY` and cleanup TP->TangentPlane, CTP->CommonTangentPlane, etc. * Rename gtransfo subclasses: * TanPix2RaDec->TanPixelToRaDec * TanRaDec2Pix->TanRaDecToPixel * TanSipPix2RaDec->TanSipPixelToRaDec
fb940c7
to
c207b65
Compare
X2Y
->XToY
and cleanup TP->TangentPlane, CTP->CommonTangentPlane, etc.
Rename gtransfo subclasses: