From 2533803618c3e152b279c6aadb9042a0f2da5568 Mon Sep 17 00:00:00 2001 From: weiwilliam Date: Tue, 13 Feb 2024 19:49:21 +0000 Subject: [PATCH 1/2] fixed the precision of TropOMI CO pressureVertice and update the testoutput --- src/compo/tropomi_no2_co_nc2ioda.py | 2 +- test/testoutput/tropomi_co_total.nc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compo/tropomi_no2_co_nc2ioda.py b/src/compo/tropomi_no2_co_nc2ioda.py index 72b7cfa4d..48dd126bb 100644 --- a/src/compo/tropomi_no2_co_nc2ioda.py +++ b/src/compo/tropomi_no2_co_nc2ioda.py @@ -125,7 +125,7 @@ def _read(self): preslv = ncd.groups['PRODUCT'].groups['SUPPORT_DATA'].\ groups['DETAILED_RESULTS'].variables['pressure_levels'][:] preslv = np.reshape(preslv, (nlocs, nlevs)) - top = np.zeros(nlocs) + top = np.zeros(nlocs,dtype=np.float32) # assemble presvertices with top vertice preslv = np.append(top[:, np.newaxis], preslv, axis=1) diff --git a/test/testoutput/tropomi_co_total.nc b/test/testoutput/tropomi_co_total.nc index 2e3f135b7..5ecd55dda 100644 --- a/test/testoutput/tropomi_co_total.nc +++ b/test/testoutput/tropomi_co_total.nc @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a3098ce38d5b4cd8db4f9734e6cf08536e70d5b6da64aaf5d62330efbac23d26 -size 65964 +oid sha256:ff4ea4a21437190330df30ea57edc24d8cadd56114826d3dd710695a9ddee855 +size 65096 From e8b744ee63c79f1ea282af81df765db1501461bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Barr=C3=A9?= Date: Tue, 13 Feb 2024 15:31:00 -0500 Subject: [PATCH 2/2] Update tropomi_no2_co_nc2ioda.py coding norm --- src/compo/tropomi_no2_co_nc2ioda.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compo/tropomi_no2_co_nc2ioda.py b/src/compo/tropomi_no2_co_nc2ioda.py index 48dd126bb..941f03567 100644 --- a/src/compo/tropomi_no2_co_nc2ioda.py +++ b/src/compo/tropomi_no2_co_nc2ioda.py @@ -125,7 +125,7 @@ def _read(self): preslv = ncd.groups['PRODUCT'].groups['SUPPORT_DATA'].\ groups['DETAILED_RESULTS'].variables['pressure_levels'][:] preslv = np.reshape(preslv, (nlocs, nlevs)) - top = np.zeros(nlocs,dtype=np.float32) + top = np.zeros(nlocs, dtype=np.float32) # assemble presvertices with top vertice preslv = np.append(top[:, np.newaxis], preslv, axis=1)