MickaelRigault / pysedm

Data Reduction Pipeline for the SEDmachine
Apache License 2.0
9 stars 6 forks source link

Calibration diagnostics reporting #7

Open scizen9 opened 6 years ago

scizen9 commented 6 years ago

We are trying to get the pipeline to update the database on pharos and I was wondering the best way to extract certain parameters. In particular, I would like the avg rms of the wavelength fits, along with the minimum and maximum rms. I would also like the mean width of the spaxel traces, along with the minimum and maximum widths. Would it be easiest to put this in the header of one of the cal files like the Flat.fits file, or is there a diagnostic report that can be generated somehow for the calibration part of the pipeline? A simple keyword, value text file, like the header of the spec_.txt files, say named 'calib_stats.txt' would work (maybe with the UTDate pre-pended like the .pkl files). I also would like to get the total number of spaxels that were fit. Any other relevant statistic or diagnostic would be good to add to the report.

MickaelRigault commented 6 years ago

To be added to the e3d header: tracewidth -> ellipse "b" value nMAD of the wavelength solution of the night.

MickaelRigault commented 6 years ago

Create a .txt or .fits UTDate_Calib containing the calibration reports. capture d ecran 2018-10-08 a 18 26 55