CroatianMeteorNetwork / RMS

RPi Meteor Station
https://globalmeteornetwork.org/
GNU General Public License v3.0
176 stars 49 forks source link

SkyFit2 does not put image name in ECSV #147

Open markmac99 opened 1 year ago

markmac99 commented 1 year ago

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"