Commit 8c82cf20 authored by Francesco Amadori's avatar Francesco Amadori
Browse files

added files C management for stare mode

parent 4e409f13
Loading
Loading
Loading
Loading
+38 −27
Original line number Original line Diff line number Diff line
@@ -31,6 +31,16 @@ if os.path.exists(folder_gofio + os.sep + "raw" + os.sep + night + os.sep):
    execute2c = "python gofioDRS.py " + night + " --une --only_calib " + single
    execute2c = "python gofioDRS.py " + night + " --une --only_calib " + single
    execute3 = "python gofioDRS.py --use_flat=" + str(flat) + " " + night + " " + single
    execute3 = "python gofioDRS.py --use_flat=" + str(flat) + " " + night + " " + single
    execute4 = "mkdir -p " + folder_output_complete
    execute4 = "mkdir -p " + folder_output_complete
    if stare:
        execute5 = (
                "cp "
                + str(Path(folder_gofio, "reduced", night, "offline")) + os.sep + "*_C_ms1d.fits "
                + folder_output_complete
        )
        execute6 = (
                "echo only_C_files"
        )
    else:
        execute5 = (
        execute5 = (
            "cp "
            "cp "
            + str(Path(folder_gofio, "reduced", night, "offline")) + os.sep + "*_A_ms1d.fits "
            + str(Path(folder_gofio, "reduced", night, "offline")) + os.sep + "*_A_ms1d.fits "
@@ -66,6 +76,7 @@ if os.path.exists(folder_gofio + os.sep + "raw" + os.sep + night + os.sep):
    print(execute)
    print(execute)
    os.system(execute)
    os.system(execute)


    if not stare:
        file_pattern_A = "*_A_ms1d.fits"  # Replace with your desired pattern
        file_pattern_A = "*_A_ms1d.fits"  # Replace with your desired pattern
        file_pattern_B = "*_B_ms1d.fits"  # Replace with your desired pattern
        file_pattern_B = "*_B_ms1d.fits"  # Replace with your desired pattern