Keck-DataReductionPipelines / KPF-Pipeline

KPF-Pipeline
https://kpf-pipeline.readthedocs.io/en/latest/
Other
10 stars 2 forks source link

Add time to RV table in L2 file #827

Open awhoward opened 3 months ago

awhoward commented 3 months ago

The 'RV' extension is a table in the L2 files that has these columns:

['orderlet1', 'orderlet2', 'orderlet3', 's_wavelength', 'e_wavelength',
       'segment no.', 'order no.', 'RV', 'RV error', 'CAL RV', 'CAL error',
       'SKY RV', 'SKY error', 'CCFBJD', 'Bary_RVC', 'source1', 'source2',
       'source3', 'source CAL', 'source SKY', 'CCF Weights']

Let's add a column called 'DATE-MID-PHW' that is a set of datetimes converted to strings with a format like 2023-10-20T06:44:15.316. The values should be the photon-weighted mid-times per order. These should use the same time system as DATE-MID in the primary header (UTC, I presume?). This allows for comparisons between DATE-MID and the per-order times (from which the preorder CCFBJD values are presumably computed.).

Also, the column CCFBJD is uncertain. Is this in BJD_TBD? If so, let's rename it CCFBJD_TBD.