RMS icon indicating copy to clipboard operation
RMS copied to clipboard

SkyFit2 does not put image name in ECSV

Open markmac99 opened this issue 3 years ago • 0 comments

SkyFit2 is not correctly filling the image_file attribute in the ECSV fle (its blank). This is causing an inconsistency downstream when processing in WMPL since trajectories calculated from FTPdetect files contain the image name in the comment field, whereas orbits calculated from ECSV files do not.

Its a simple fix: add the below at line 5262, and then change meta_dict to use ff_name for the image_file attribute. I've tested this for multiple fireballs during December, all looks good.

    if self.img_handle.input_type == 'ff':
        ff_name = self.img_handle.current_ff_file
    else:
        ff_name = "FF_{:s}_".format(self.platepar.station_code) \
                      + self.img_handle.beginning_datetime.strftime("%Y%m%d_%H%M%S_") \
                      + "{:03d}".format(int(self.img_handle.beginning_datetime.microsecond//1000)) \
                      + "_0000000.fits"

markmac99 avatar Dec 09 '22 12:12 markmac99