From ff0624d973852a217d0ae83b4e7f7944af22d6c4 Mon Sep 17 00:00:00 2001 From: hapipapijuris <“yamanaka.juri.h0@s.mail.nagoya-u.ac.jp”> Date: Wed, 24 Jul 2024 16:36:57 +0900 Subject: [PATCH 1/3] #178 atm-correction for raster --- decode/qlook.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/decode/qlook.py b/decode/qlook.py index f5594ca..854eac0 100644 --- a/decode/qlook.py +++ b/decode/qlook.py @@ -207,7 +207,7 @@ def daisy( kwargs={"fill_value": "extrapolate"}, ) ) - da_sub = da_on - da_base.values + da_sub = da_on - da_base.data # make continuum series weight = get_chan_weight(da_off, method=chan_weight, pwv=pwv) @@ -429,7 +429,11 @@ def raster( kwargs={"fill_value": "extrapolate"}, ) ) - da_sub = da_on - da_base.values + t_atm = da_on.temperature + da_sub = t_atm * (da_on - da_base.data)/ (t_atm - da_base.data) + + + # make continuum series weight = get_chan_weight(da_off, method=chan_weight, pwv=pwv) From 78b8b7ae0a3a44cfc2b85136b6d48e2e0b3f7b61 Mon Sep 17 00:00:00 2001 From: hapipapijuris <“yamanaka.juri.h0@s.mail.nagoya-u.ac.jp”> Date: Wed, 24 Jul 2024 08:54:06 +0000 Subject: [PATCH 2/3] #153 fix daisy code and reformat raster atm-correction --- decode/qlook.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/decode/qlook.py b/decode/qlook.py index 854eac0..f6d806e 100644 --- a/decode/qlook.py +++ b/decode/qlook.py @@ -207,7 +207,7 @@ def daisy( kwargs={"fill_value": "extrapolate"}, ) ) - da_sub = da_on - da_base.data + da_sub = da_on - da_base.values # make continuum series weight = get_chan_weight(da_off, method=chan_weight, pwv=pwv) @@ -430,10 +430,7 @@ def raster( ) ) t_atm = da_on.temperature - da_sub = t_atm * (da_on - da_base.data)/ (t_atm - da_base.data) - - - + da_sub = t_atm * (da_on - da_base.data) / (t_atm - da_base.data) # make continuum series weight = get_chan_weight(da_off, method=chan_weight, pwv=pwv) From f2713832fe4b0c4dcae07e5d53f9e1154a922e5c Mon Sep 17 00:00:00 2001 From: hapipapijuris <“yamanaka.juri.h0@s.mail.nagoya-u.ac.jp”> Date: Wed, 24 Jul 2024 10:00:19 +0000 Subject: [PATCH 3/3] #178 remove attribute in raster atm-correction --- decode/qlook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decode/qlook.py b/decode/qlook.py index f6d806e..eb7f9d6 100644 --- a/decode/qlook.py +++ b/decode/qlook.py @@ -430,7 +430,7 @@ def raster( ) ) t_atm = da_on.temperature - da_sub = t_atm * (da_on - da_base.data) / (t_atm - da_base.data) + da_sub = t_atm * (da_on - da_base) / (t_atm - da_base) # make continuum series weight = get_chan_weight(da_off, method=chan_weight, pwv=pwv)