noraeisner / LATTE

Lightcurve Analysis Tool for Transiting Exoplanet
GNU Lesser General Public License v3.0
39 stars 10 forks source link

Clarify the orientation of pixel level plots #25

Closed orionlee closed 4 years ago

orionlee commented 4 years ago

It'd be great if the orientation of pixel level plots can be clarified. It seems that the pixels plotted upside down: with CCD rows running from smallest to largest (largest row number at the bottom).

E.g., for a report from TIC 294272049 sector 28, I got the following that shows the dip comes from pixels at the bottom:

image

image

I was stumped a bit when they don't seem to match what I observed from lightkurve, which showed the dips come from the pixels at the top.

image

Comparing them (and also check the aperture plot from lightkurve), I realized while lightkurve plots with CCD rows starting from largest to smallest (i.e., smallest row number at the bottom), LATTE plots it the other way, with the largest row number at the bottom).

It'd be great if this can be clarified, e.g., if LATTE consistently plots the pixels in such a way. Alternatively, if the plots include pixel row / column numbers, any confusion can be avoided as well.

noraeisner commented 4 years ago

Thanks for the suggestion - labelling the pixels would definitely be useful. I have updated the code such that the first and last pixel of the column and rows are labeled (I want to avoid labelling all of the pixels so that it doesn't become too cluttered). I've also rotated the tpf images such that the pixels increase from left to right and bottom to top (in line with what lightkurve does).

55525572_individual_pixel_LCs_1