From 9d492bc22e19d31d6ebeed7d20fe9d316b4117b7 Mon Sep 17 00:00:00 2001 From: Robert Stein Date: Tue, 12 Jul 2022 15:43:27 -0700 Subject: [PATCH] Mask zero values --- winterdrp/pipelines/wirc/wirc_pipeline.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/winterdrp/pipelines/wirc/wirc_pipeline.py b/winterdrp/pipelines/wirc/wirc_pipeline.py index 0d05f4711..72bb05949 100644 --- a/winterdrp/pipelines/wirc/wirc_pipeline.py +++ b/winterdrp/pipelines/wirc/wirc_pipeline.py @@ -58,6 +58,8 @@ def load_raw_wirc_image( header[coadd_key] = 1 if proc_history_key not in header.keys(): header[proc_history_key] = "" + + data[data == 0] = np.nan return data, header