kammerje / spaceKLIP

Pipeline for reducing JWST high-contrast imaging data. Published in Kammerer et al. 2022 and Carter et al. 2022.
https://ui.adsabs.harvard.edu/abs/2022SPIE12180E..3NK/abstract
MIT License
16 stars 10 forks source link

Bright pixels still present in simulated data #17

Closed AarynnCarter closed 2 years ago

AarynnCarter commented 2 years ago

I'm still seeing some bright pixels in the simulated data. @kammerje, do you think this is still a reference file issue or could it be to do with the updates to pyNRC? It significantly affects the contrast.

Screen Shot 2022-04-08 at 4 30 42 PM image
kammerje commented 2 years ago

If this was done with the new simulated data, then these are likely cosmic rays. The question is whether these cosmic rays are correctly flagged by the stage 1 pipeline. If so, we should be using a bad pixel cleaning algorithm before feeding the data into our pipeline. I have a simple script if you are interested. If they are not flagged, then we need to tweak the stage 1 jump detection threshold I think.

AarynnCarter commented 2 years ago

Okay great, I'll try your script, I also might play around with adding an additional stage to start from the uncal.fits file. Does NIRCCos output those, or do we have to start with the rateints?

kammerje commented 2 years ago

Ok! NIRCCoS saves them in the pynrc_data folder.