Skip to content

Commit

Permalink
Update MUSE_WFMAON.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ameliafm612 authored Dec 10, 2024
1 parent 30f8136 commit 66a79f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ngistPipeline/readData/MUSE_WFMAON.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ def readCube(config):
wave >= config["READ_DATA"]["LMIN_SNR"],
wave <= config["READ_DATA"]["LMAX_SNR"],
np.logical_or(
wave < 5750 / (1 + config["GENERAL"]["REDSHIFT"]), # was 5820 or similar
wave > 6000 / (1 + config["GENERAL"]["REDSHIFT"]), # was 5970
wave < 5770 / (1 + config["GENERAL"]["REDSHIFT"]), # was 5820 or similar
wave > 6050 / (1 + config["GENERAL"]["REDSHIFT"]), # was 5970
),
]
)
Expand All @@ -163,8 +163,8 @@ def readCube(config):
# Replacing the np.nan in the laser region by the median of the spectrum
idx_laser = np.where(
np.logical_and(
wave > 5720,# / (1 + config["GENERAL"]["REDSHIFT"]), # was 5820 then 5780
wave < 5970,# / (1 + config["GENERAL"]["REDSHIFT"]), # was 5970 then 5970
wave > 5770,# / (1 + config["GENERAL"]["REDSHIFT"]), # was 5820 then 5780
wave < 6050,# / (1 + config["GENERAL"]["REDSHIFT"]), # was 5970 then 5970
)
)[0]
spec[idx_laser, :] = signal
Expand Down

0 comments on commit 66a79f1

Please sign in to comment.