Skip to content

Removing usage of reproject in RGB documentation #5760

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

Merged
merged 4 commits into from
Feb 22, 2017

Conversation

bsipocz
Copy link
Member

@bsipocz bsipocz commented Feb 1, 2017

This PR partly addresses #5570 (the first 3 points, writing a tutorial is clearly beyond the scope of this PR).

Needs astropy/astropy-data#24 to be merged first.

@bsipocz
Copy link
Member Author

bsipocz commented Feb 2, 2017

@pllim - could you please add milestone 1.3.1, too?

@pllim pllim added this to the v1.3.1 milestone Feb 2, 2017
@bsipocz
Copy link
Member Author

bsipocz commented Feb 17, 2017

@larrybradley or @astrofrog - Could you have a look at this?

Copy link
Member

@astrofrog astrofrog 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 in principle but I haven't tried to build the docs locally to check what it looks like.

larrybradley
larrybradley previously approved these changes Feb 17, 2017
Copy link
Member

@larrybradley larrybradley 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 other than the one small typo. I also didn't build the docs though.

`reproject package`_, installable via the astropy conda channel, or via pip),
and compare it with Figure 1 of Lupton et al. (2004):
For a more in-depth example, download the ``g``, ``r``, ``i`` SDSS frames
(the will serve as the blue, green and red channels respectively) of
Copy link
Member

Choose a reason for hiding this comment

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

"the" -> "they"

@bsipocz
Copy link
Member Author

bsipocz commented Feb 17, 2017

@pllim
Copy link
Member

pllim commented Feb 20, 2017

I'm probably nitpicking here -- The image from this doc has larger FOV and different orientation than Lupton et al. 2004 Fig. 1, and does not match the SDSS link at all (i.e., I can't tell which one is the galaxy from your example in the latter). From the viewpoint of someone who is assessing whether this is the function I want to use or not, I would like to see:

  1. Same FOV and orientation as Lupton et al. 2004 Fig. 1.
  2. Given the SDSS UI is limited, no need to have same FOV, but at least center the galaxy of interest.

But you can ignore if package maintainers disagree.

@bsipocz
Copy link
Member Author

bsipocz commented Feb 20, 2017

@pllim - Sounds sensible, however my only aim within this PR was to remove the usage of reproject and get the same result as it was before in the astropy docs: http://docs.astropy.org/en/latest/visualization/lupton_rgb.html

Double checking it I realize that the orientation is upside down, I'm not sure whether that is an issue with the implementation or the with the code that produces the figure in the docs.

@larrybradley
Copy link
Member

@bsipocz Please update the SDSS link to something in the field, e.g.:
http://skyserver.sdss.org/dr13/en/tools/chart/navi.aspx?ra=313.12381&dec=-5.74611

The link currently in master is wrong.

@larrybradley
Copy link
Member

@bsipocz The image is flipped because of a bug in matplotlib 2.0.0 where imsave ignores the origin keyword (matplotlib/matplotlib#7656).

@larrybradley
Copy link
Member

@bsipocz My last comment refers to the jpg output. To fix the flip in the docs simply add origin='lower' to the imshow call.

@larrybradley larrybradley dismissed their stale review February 20, 2017 20:47

Changes needed

Copy link
Member

@larrybradley larrybradley left a comment

Choose a reason for hiding this comment

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

Add origin='lower' to imshow calls.
Fix SDSS link

@bsipocz
Copy link
Member Author

bsipocz commented Feb 22, 2017

@larrybradley - Done

@larrybradley larrybradley merged commit 13d525c into astropy:master Feb 22, 2017
@larrybradley
Copy link
Member

Thanks, @bsipocz!

@pllim
Copy link
Member

pllim commented Feb 22, 2017

bsipocz pushed a commit that referenced this pull request Feb 22, 2017
Removing usage of reproject in RGB documentation
@bsipocz bsipocz deleted the vis_rgb_docs branch September 16, 2024 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants