Skip to content

Commit 237689e

Browse files
committed
Update allowed LV2 processor values in Radiometrics reader
1 parent b10b946 commit 237689e

4 files changed

Lines changed: 32 additions & 49 deletions

File tree

cloudnetpy/instruments/radiometrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def _process_superblock() -> None:
175175
for record in superblock:
176176
if record.block_type == 400 and record.block_index == 1:
177177
procs.append(record.values["LV2 Processor"])
178-
good_procs = ["0.00:19.80", "Zenith", "Zenith16", "Zenith18"]
178+
good_procs = ["0.00:90.00", "Zenith", "Zenith16", "Zenith18"]
179179
curr_proc = 0
180180
for record in superblock:
181181
if record.block_type == 100:

tests/unit/data/radiometrics/2025-09-30_00-00-45_lv2.csv

Lines changed: 0 additions & 44 deletions
This file was deleted.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Record,Date/Time,10,Tamb(K),Rh(%),Pres(mb),Tir(K),Rain,Vint(cm),Lqint(mm),Cldb, 0.00, 0.10, 0.20, 0.30, 0.40, 0.50, 0.60, 0.70, 0.80, 0.90, 1.00, 1.25, 1.50, 1.75, 2.00, 2.25, 2.50, 2.75, 3.00, 3.25, 3.50, 3.75, 4.00, 4.25, 4.50, 4.75, 5.00, 5.25, 5.50, 5.75, 6.00, 6.25, 6.50, 6.75, 7.00, 7.25, 7.50, 7.75, 8.00, 8.25, 8.50, 8.75, 9.00, 9.25, 9.50, 9.75,10.00,DataQuality
2+
Record,Date/Time,30,GPS Date/Time,Latitude,Longitude,Magnetic Variation,Status,Quality,Number Satellites,Altitude(m),DataQuality
3+
Record,Date/Time,100,Record Type,Title
4+
Record,Date/Time,200,Tamb(K),Rh(%),Pres(mb),Tir(K),Rain,DataQuality
5+
Record,Date/Time,300,Int. Vapor(cm),Int. Liquid(mm),Cloud Base(km),DataQuality
6+
Record,Date/Time,400,LV2 Processor,0.000,0.050,0.100,0.150,0.200,0.250,0.300,0.350,0.400,0.450,0.500,0.600,0.700,0.800,0.900,1.000,1.100,1.200,1.300,1.400,1.500,1.600,1.700,1.800,1.900,2.000,2.250,2.500,2.750,3.000,3.250,3.500,3.750,4.000,4.250,4.500,4.750,5.000,5.250,5.500,5.750,6.000,6.250,6.500,6.750,7.000,7.250,7.500,7.750,8.000,8.250,8.500,8.750,9.000,9.250,9.500,9.750,10.000,DataQuality
7+
1,02/20/2026 00:02:09,101,401,Temperature (K)
8+
2,02/20/2026 00:02:09,101,402,Vapor Density (g/m^3)
9+
3,02/20/2026 00:02:09,101,403,Liquid (g/m^3)
10+
4,02/20/2026 00:02:09,101,404,Relative Humidity (%)
11+
Record,Date/Time,99,Neural Nets:LINliq20.net
12+
Record,Date/Time,99,Neural Nets:LINliq90.net
13+
Record,Date/Time,99,Neural Nets:LINrrh20.net
14+
Record,Date/Time,99,Neural Nets:LINrrh90.net
15+
Record,Date/Time,99,Neural Nets:LINsca20.net
16+
Record,Date/Time,99,Neural Nets:LINsca90.net
17+
Record,Date/Time,99,Neural Nets:LINtem20.net
18+
Record,Date/Time,99,Neural Nets:LINtem90.net
19+
Record,Date/Time,99,Neural Nets:LINvap20.net
20+
Record,Date/Time,99,Neural Nets:LINvap90.net
21+
5,02/20/2026 00:02:09,201,268.550,62.090,1002.52,201.710,0,1
22+
6,02/20/2026 00:02:06,31,02/20/2026 00:01:40,000.0000,000.0000,0.0,Bad Fix,0,0,0.0,0
23+
7,02/20/2026 00:02:52,301,0.433,0.000,-1.000,1
24+
8,02/20/2026 00:02:52,403,0.00:90.00,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.001,0.001,0.001,0.001,0.001,0.001,0.002,0.002,0.002,0.001,0.001,0.001,0.002,0.005,0.005,0.005,0.003,0.005,0.006,0.002,0.001,0.004,0.000,0.001,0.030,0.031,0.022,0.018,0.013,0.009,0.003,0.002,0.000,0.000,0.000,0.003,0.021,0.004,0.004,0.008,0.001,0.007,0.000,0.013,0.001,0.000,0.006,0.007,0.001,0.004,0.001,1
25+
9,02/20/2026 00:02:52,404,0.00:90.00,63.457,61.846,60.937,59.664,59.278,58.871,59.514,59.046,58.885,57.078,53.567,48.079,45.516,44.978,44.651,41.503,39.756,37.540,33.972,28.634,26.514,24.191,21.538,19.454,19.495,18.297,18.415,15.528,17.708,18.282,19.496,21.964,21.351,22.028,22.742,26.513,27.229,26.092,27.187,31.766,31.374,30.466,32.667,36.137,37.147,35.507,33.360,35.132,31.733,29.959,27.657,23.866,23.089,15.788,15.161,7.690,1.884,2.471,1
26+
10,02/20/2026 00:02:52,401,0.00:90.00,268.536,269.140,269.361,269.521,269.978,269.935,269.712,269.515,269.479,269.468,269.888,269.594,269.152,268.504,267.803,267.303,266.942,266.703,266.449,266.192,265.694,264.950,264.289,263.542,262.779,262.113,260.322,259.129,257.531,255.683,253.996,252.288,250.437,248.599,246.769,244.984,243.304,241.629,240.049,238.254,236.505,234.846,233.145,231.122,229.160,227.400,225.579,223.767,222.083,220.509,219.028,217.375,215.775,214.425,213.251,212.289,211.582,211.449,1
27+
11,02/20/2026 00:02:52,402,0.00:90.00,2.336,2.333,2.377,2.357,2.326,2.267,2.306,2.280,2.224,2.178,2.112,1.928,1.816,1.700,1.579,1.412,1.274,1.098,0.969,0.809,0.710,0.616,0.541,0.469,0.430,0.372,0.325,0.253,0.225,0.230,0.181,0.155,0.130,0.121,0.115,0.114,0.088,0.079,0.068,0.064,0.064,0.054,0.049,0.053,0.043,0.043,0.034,0.039,0.016,0.009,0.009,0.008,0.004,0.012,0.007,0.008,0.003,0.013,1

tests/unit/test_radiometrics.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,21 +263,21 @@ def test_masking(self):
263263

264264

265265
class TestRadiometricsAlternatingProcWhere301before401(Check):
266-
test_input = f"{SCRIPT_PATH}/data/radiometrics/2025-09-30_00-00-45_lv2.csv"
267-
date = "2025-09-30"
266+
test_input = f"{SCRIPT_PATH}/data/radiometrics/2026-02-20_00-02-09_lv2.csv"
267+
date = "2026-02-20"
268268
temp_dir = TemporaryDirectory()
269269
temp_path = temp_dir.name + "/radiometrics.nc"
270270
site_meta = SITE_META
271271
uuid = radiometrics2nc(test_input, temp_path, site_meta, date=date)
272272

273273
def test_time(self):
274274
time = self.nc.variables["time"][:]
275-
assert_allclose(time, [4 / 60 + 18 / 60 / 60])
275+
assert_allclose(time, [2 / 60 + 52 / 60 / 60])
276276

277277
def test_lwp(self):
278278
lwp = self.nc.variables["lwp"][:]
279279
assert_allclose(lwp, [0])
280280

281281
def test_iwv(self):
282282
iwv = self.nc.variables["iwv"][:]
283-
assert_allclose(iwv, [11.14])
283+
assert_allclose(iwv, [4.33])

0 commit comments

Comments
 (0)