Commit b87bf9fc authored by vertighel's avatar vertighel
Browse files

Added automatic name in the form RAW.telescop_keyword.time_stamp.fits

parent 32086da4
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
monitor_directory = ./input_fits    # Monitors new files (not existing ones)
output_directory = ./processed_fits # If same as monitor, overwrites!
observatory_config = oarpaf         # or path/to/your/config.ini
use_noctis_output_filename = False  # True/False. False use same as input
use_noctis_output_filename = True  # True/False. False use same as input
header_template = 

[Logging]
+1 −3
Original line number Diff line number Diff line
@@ -607,8 +607,6 @@ class Noche:
        noche_hdu.header.insert("NAXIS2", bscale_card, after=True)
        noche_hdu.header.insert('BSCALE', bzero_card, after=True)

        print(noche_hdu.header)

        hdul = fits.HDUList([noche_hdu, original_hdu])

        if overwrite:
@@ -621,7 +619,7 @@ class Noche:
            filename = f"{prefix}.{tel}.{timestamp}.fits"
            log.warning(f"No filename provided, using default")

        log.info(f"Saving as {filename}")
        log.info(f"Saving as ./{filename}")

        hdul.writeto(filename,
                      overwrite=overwrite, checksum=True)