[PIPE2D-86] Change pixel centers from [0.5,0.5] to [0,0] Created: 29/Sep/16 Updated: 23/Jun/17 Resolved: 23/Jun/17 |
|
| Status: | Done |
| Project: | DRP 2-D Pipeline |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Story | Priority: | Major |
| Reporter: | aritter | Assignee: | aritter |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||
| Story Points: | 2 | ||||||||||||||||||||||||||||||||||||
| Sprint: | 2014-16 | ||||||||||||||||||||||||||||||||||||
| Reviewers: | price | ||||||||||||||||||||||||||||||||||||
| Description |
|
Currently the pipeline assumes that pixel centers are at [0.5,0.5] what is non-standard and can lead to confusion in ds9 and possibly in other packages. Please set the pixel centers to the standard [0,0] |
| Comments |
| Comment by swinbank [ 05/Oct/16 ] |
|
Hey Andreas – what is "the pipeline" in this context? Is this just an assumption embedded in drp_stella, or will you be proposing changes to LSST code? |
| Comment by aritter [ 05/Oct/16 ] |
|
drp_stella only. LSST I believe has the pixel centers at [0,0] |
| Comment by aritter [ 28/Feb/17 ] |
|
I compared the new version to the old one and made sure that the resulting spectra and RMS of the wavelength solution are identical for both PIXEL_CENTER = 0.0 and 0.5. Note that I have filed the ticket |
| Comment by swinbank [ 04/Mar/17 ] |
|
I am not price (to everybody's great relief, I'm sure), but my suggestion would be that you move all the "cleanup" work here onto a separate ticket. There are currently 28 separate commits in total, of which only about 7 or 8 seem relevant to the work actually being ticketed. Cleaning up formatting etc is nice, but a mountain of changes like this is much harder to review than a small, focused change. |
| Comment by aritter [ 11/Mar/17 ] |
|
Here is an image showing the FiberTrace centers and limits: And here an image showing a PSF extracted from multiple dithered PSF representations in one FiberTrace: |
| Comment by aritter [ 11/Mar/17 ] |
|
Currently the integration test in tests/testDRP.py still fails on modern Mac OS X due to SIP. This is getting fixed in |
| Comment by rhl [ 07/Jun/17 ] |
|
Does this ticket now pass all its tests? Also, looking at the changesets I wasn't sure if the fiber trace code still uses (0.0, 0.0) as the bottom left of a pixel internally. Does it? If so, please file a ticket to fix that. |
| Comment by aritter [ 09/Jun/17 ] |
|
I strongly believe that nothing uses (0.0, 0.0) as the bottom left of a pixel anymore, not even internally. All tests are passing. |
| Comment by aritter [ 17/Jun/17 ] |
|
rhl Can you please send me the lines you wanted me look at? |
| Comment by rhl [ 20/Jun/17 ] |
|
My concern was the routine ccdToFiberTraceCoordinates but now that I look more carefully I see that it's not converting between CCD and internal FiberTrace coordinates so that's OK. I don't understand why you need this function, as it looks to me like something that would have been naturally handled via a definition of dataXY::operator-, but that's out of scope. Actually, it only seems to be used in the PSF code which is slated for removal anyway so we definitely don't want to fix it. |
| Comment by aritter [ 20/Jun/17 ] |
|
Good to merge then? |
| Comment by rhl [ 22/Jun/17 ] |
|
Yes. I thought that was implicit from the comment, but apparently not. |
| Comment by aritter [ 23/Jun/17 ] |
|
merged into master |