EranOfek / AstroPack

Astronomy & Astrophysics Software Pacakge
Other
17 stars 4 forks source link

prepMasterFlat master flats Only if pwd is the ~/new directory #331

Closed YarinMS closed 9 months ago

YarinMS commented 9 months ago

This issue encountered while processing data on last01e. First, reducing the data from LAST.01.01.01 went well, the pipeline automatically used MasterFlat from the observation date (14/12/23)

Second, reducing the data from LAST.01.01.02 did not go as planned, since the MasterFlats used is from 26/06/23.

First I made sure that im on the right directory : image Then, naively trying to loadCalib('FlatNearJD') to find out there is no MasterFlat from this date., and indeed 26/06/23 is the oldest master flat we have in /last01e/data2/archive/LAST.01.01.02/calib

Next, we try to prepMasterFlat() - expecting from the function to create MasterFlats from the flats taken in the observation date ( and for others as well): image

Following this step we tried to provide prepMasterFlats('FilesList',FN) with the path to the twflat images from the observation date : image

But we got the same result : image

To prepMasterFlat I actually had to manually cd /last01e/data2/archive/LAST.01.01.02/new and then execute the function D.prepMasterFlat, which created the latest Master Flats from single twflat fits files in the new directory and stored them in the calib directory.

EranOfek commented 9 months ago

Fixed Moving to new prior to execution.