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

Fixing differential rotation of coordinates again. #3123

Merged
merged 13 commits into from
May 22, 2019
Merged

Conversation

wafels
Copy link
Member

@wafels wafels commented May 22, 2019

Description

Fixes the differential rotation of coordinates again. With this PR, the solar_rotate_coordinate function returns a coordinate that accounts for the location of the new_observer.

Fixes #

@pep8speaks
Copy link

pep8speaks commented May 22, 2019

Hello @wafels! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 224:101: E501 line too long (198 > 100 characters)
Line 229:101: E501 line too long (198 > 100 characters)

Comment last updated at 2019-05-22 15:32:39 UTC

@ghost
Copy link

ghost commented May 22, 2019

Thanks for the pull request @wafels! Everything looks great!

@nabobalis nabobalis added this to the 1.0 milestone May 22, 2019
@nabobalis nabobalis added the coordinates Affects the coordinates submodule label May 22, 2019
Copy link
Member

@Cadair Cadair left a comment

Choose a reason for hiding this comment

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

Looks generally fine to me but the doctests need fixing.

heliographic_rotated = SkyCoord(heliographic_coordinate.lon + drot,
heliographic_coordinate.lat,
heliographic_coordinate.radius,
obstime = new_observer.obstime,
Copy link
Member

Choose a reason for hiding this comment

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

no spaces around kwarg = please.

@Cadair Cadair merged commit c77ad4c into sunpy:master May 22, 2019
@Cadair
Copy link
Member

Cadair commented May 22, 2019

@nabobalis backport please.

@wafels
Copy link
Member Author

wafels commented May 22, 2019

This and the warping code in #2972 can be used to reproject images to different viewpoints.

@nabobalis
Copy link
Contributor

Can I just protest about the history?

@Cadair
Copy link
Member

Cadair commented May 23, 2019

Me thinks we might have to give @wafels a lesson on rewriting git history 😛

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
coordinates Affects the coordinates submodule
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants