Keck-DataReductionPipelines / KCWI_DRP

KCWI python DRP
BSD 3-Clause "New" or "Revised" License
8 stars 12 forks source link

Pipeline not producing standard star calibrated data #151

Closed gannonjs closed 9 months ago

gannonjs commented 9 months ago

I've run the pipeline for both the red and blue arms and I am unable to get standard star calibrated data out (the icubes). I go through all of the fitting of the standard stars and the inversens are produced however these do not seem to be applying to the actual science data. The most advanced science product I can get out of the pipeline are the `cubed' files.

scizen9 commented 9 months ago

Can you let me know which particular data set you are having trouble with? What date and which science frames are not being calibrated?

gannonjs commented 9 months ago

The files are 20230915 (2023 Sept 15). We were second half, program W156 PI Forbes

scizen9 commented 9 months ago

Unfortunately, you chose a very sparsely sampled standard star. In the DRP code, under the directory kcwidrp/data/stds you will see the reference fits files along with plots of the data. If you look at the plot for Feige24, you'll see that there are only two points in common with your data and this is not enough to calibrate your data. When I try to run it, the pipeline crashes and complains that there are only two points in common between the standard and your data. image

gannonjs commented 9 months ago

Thank you for the quick response and help!. Note that, it was failing not just in the red, but also in the blue. Have you been able to get the blue arm working?

Also, I have already contacted Rosalie on the standard stars for low flux in the red reasons, but standard stars that are not able to provide a solution for the red arm should be removed or at least they need to be noted in the standard star list somewhere.

scizen9 commented 9 months ago

This standard should work for the low resolution gratings that span a larger wavelength range. That is the purpose of the plots: to show where the wavelength samples are so observers can select a good standard for their specific configuration. I'll try the blue channel and report back.

scizen9 commented 9 months ago

I was able to successfully produce a flux calibration for the blue channel BL grating using Feige 25. It's pretty low order, but in an emergency, it would be useful. We will be sure to put in the documentation a request that observers check the plots in the pipeline before choosing a standard star.

gannonjs commented 9 months ago

I was also able to produce a fit for Feige 25 in the blue. My problem is that the fit does not then go and apply to the other cubes. After fitting the standard did your reduction then go on to produce 'icubes'?

On Fri, Oct 6, 2023 at 4:04 AM Don Neill @.***> wrote:

I was able to successfully produce a flux calibration for the blue channel BL grating using Feige 25. It's pretty low order, but in an emergency, it would be useful. We will be sure to put in the documentation a request that observers check the plots in the pipeline before choosing a standard star.

— Reply to this email directly, view it on GitHub https://github.com/Keck-DataReductionPipelines/KCWI_DRP/issues/151#issuecomment-1749321160, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFCSJKKHFQIJHD6LTYPJSCTX53SABAVCNFSM6AAAAAA5SEFJLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBZGMZDCMJWGA . You are receiving this because you authored the thread.Message ID: @.***>