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-13270: Cleanup ccdImage and gtransfo APIs #117

Merged
merged 1 commit into from Nov 29, 2018
Merged

Conversation

parejkoj
Copy link
Collaborator

@parejkoj parejkoj commented Nov 27, 2018

  • 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

Copy link
Contributor

@czwa czwa left a 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.


//!
Gtransfo const *getPix2CommonTangentPlane() const { return _pix2CommonTangentPlane.get(); }
std::shared_ptr<Gtransfo> const getPixToCommonTangentPlane() const { return _pixToCommonTangentPlane; }
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be getPixelToCommonTangentPlane()?


//!
Gtransfo const *getPix2TangentPlane() const { return _pix2TP.get(); }
std::shared_ptr<Gtransfo> const getPixToTangentPlane() const { return _pixToTangentPlane; }
Copy link
Contributor

Choose a reason for hiding this comment

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

getPixelToTangentPlane()?


//! the transformation from pixels to tangent plane (degrees)
GtransfoPoly getPix2TangentPlane() const;
GtransfoPoly getPixToTangentPlane() const;
Copy link
Contributor

Choose a reason for hiding this comment

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

getPixelToTangentPlane()?


//! the transformation from pixels to tangent plane (degrees)
GtransfoPoly getPix2TangentPlane() const;
GtransfoPoly getPixToTangentPlane() const;
Copy link
Contributor

Choose a reason for hiding this comment

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

getPixelToTangentPlane()?

@@ -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;
Copy link
Contributor

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 *******************/
Copy link
Contributor

Choose a reason for hiding this comment

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

LinPixelToTan here and throughout?

@parejkoj
Copy link
Collaborator Author

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants