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-23946: Change localWcs plugins to use a localGnomonicWcs transform. #361

Merged
merged 1 commit into from Apr 15, 2020

Conversation

TallJimbo
Copy link
Member

Debug test fuctors

Copy link
Member Author

@TallJimbo TallJimbo left a comment

Choose a reason for hiding this comment

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

Looks good. Only style/naming comments.

-------
raDecTuple : tuple
RA and dec conversion of x and y given the local Wcs. Returned
units are in radians.
Copy link
Member Author

Choose a reason for hiding this comment

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

I think the documentation for tuple returns is to document each tuple element separately, i.e.:

Returns
------
ra : `pandas.Series`
    RA coordinate from conversion of (x, y)
dec : ...

Also, if the arguments could be scalar floats or np.ndarray as well as pandas.Series, it's probably best to document that somehow. Maybe @jonathansick has thoughts on how - there's no single interface type AFAIK, but it's got to be a common pattern.

"""
return (x * cd11 + y * cd12, x * cd21 + y * cd22)

def computeSkySeperation(self, ra1, dec1, ra2, dec2):
Copy link
Member Author

Choose a reason for hiding this comment

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

typo: separation (also below)

Several tests/changes were performed during the corse
of this ticket including different wcs approximations.
To see the full set of attempts see:
https://jira.lsstcorp.org/browse/DM-23946

Debug test fuctors

Test different declinations

Change dec range

Debug setting declination.

Add random xy locations.

Change LocalWcs functors and tests.

Debug and change distance to 3 vectors.

addapt functors and unittests.

Debug unittests.
@morriscb morriscb changed the title DM-23946: Chance localWcs unittest to linearizePixelToSky DM-23946: Change localWcs plugins to use a localGnomonicWcs transform. Apr 15, 2020
@morriscb morriscb merged commit 9638b22 into master Apr 15, 2020
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

2 participants