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

RA scale inverted in some channels #8

Open
migueldvb opened this issue Mar 20, 2017 · 3 comments
Open

RA scale inverted in some channels #8

migueldvb opened this issue Mar 20, 2017 · 3 comments

Comments

@migueldvb
Copy link
Contributor

This has happened in channel 70 of campaign 102. The mosaic created by k2mosaic seems to have the RA scale inverted as shown in the image below.

mosaic_ch70_132012

I'm not sure why for other channels the scale looks fine. This is a video for the channel 69 mosaic centered on the position of comet 67P that has the righ orientation for RA.

https://vimeo.com/209142702

@barentsen
Copy link
Member

barentsen commented Mar 20, 2017

The wcs and coordinates that k2mosaic produces have not been well-tested, so I wouldn't be surprised to see a bug like this. The wcs is "scraped" from the pipeline-produced FFIs and is likely correct, so it must be the pixel coordinates that are transposed or inverted when k2mosaic writes the pixel arrays.

Kepler's readout gates are at opposite ends of each CCD, so my best guess is that this bug is present for half of all channels.

Unfortunately I do not have time to investigate or fix this bug in the near future. I'd be very happy to add you as a co-author of k2mosaic if you find the fix?

@migueldvb
Copy link
Contributor Author

@barentsen I will look at this issue in the next couple of weeks. Testing these channels in other campaigns they have the same bug so I think your guess is right.

migueldvb pushed a commit to migueldvb/k2mosaic that referenced this issue Mar 23, 2017
@migueldvb
Copy link
Contributor Author

The inverted RA and Dec scale is also present in the FFI frames for some channels. Each channel has a given orientation depending on the readout but the row index is always Dec and the column index always RA as shown in Fig D-1 in the manual.

figure_crop

I think this issue could be fixed when the mosaics are written to frames by checking the values of the coordinates in the WCS and flipping the array if necessary.

migueldvb pushed a commit to migueldvb/k2mosaic that referenced this issue Mar 23, 2017
migueldvb pushed a commit to migueldvb/k2mosaic that referenced this issue Mar 23, 2017
migueldvb pushed a commit to migueldvb/k2mosaic that referenced this issue Mar 7, 2018
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

No branches or pull requests

2 participants