Skip to content

Commit 7f625b3

Browse files
committed
debugging water flag - should all work now
1 parent 5e956b1 commit 7f625b3

File tree

6 files changed

+21
-21
lines changed

6 files changed

+21
-21
lines changed

hypernets_processor/data_io/format/header.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44

55
HEADER_DEF = [(2, "Total Dataset Length", '<H'),
6-
(1, "Spectrum Type Information", '<c'),
6+
(1, "Spectrum Type Information", '<B'),
77
(8, "acquisition_time", '<Q'),
88
(2, "integration_time", '<H'),
99
(4, "temperature", '<f'),
@@ -13,4 +13,4 @@
1313
(2, "acceleration_y_mean", '<h'),
1414
(2, "acceleration_y_std", '<h'),
1515
(2, "acceleration_z_mean", '<h'),
16-
(2, "acceleration_z_std", '<h')]
16+
(2, "acceleration_z_std", '<h')]

hypernets_processor/etc/job.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ job_name = run_20201028T150017
33
job_working_directory = C:\Users\pdv\.hypernets\tmp
44

55
#SEQ20201016T141413
6-
sequence_id: SEQ20200821T154756
6+
sequence_id: SEQ20201016T142212
77
Lat: 43.69886
88
Lon: 7.30720
99
site_abbr: test

hypernets_processor/etc/job_CG.config

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
[Job]
2-
job_name = run_20201028T150017
2+
job_name = run_SEQ20201016T141413
33
job_working_directory = home/cgoyens/.hypernets/tmp
44

55
#SEQ20201016T141413
6-
sequence_id: SEQ20200821T154756
6+
# SEQ20201105T153301
7+
sequence_id: SEQ20201016T141413
78
Lat: 43.69886
89
Lon: 7.30720
910
site_abbr: test
1011

1112
[Input]
12-
raw_data_directory = /home/cgoyens/OneDrive/BackUpThinkpadClem/Projects/HYPERNETS/NetworkDesign_D52/DataProcChain/hypernets_processor/hypernets_processor/data_io/tests/reader/SEQ20200821T154756
13+
raw_data_directory = /home/cgoyens/OneDrive/BackUpThinkpadClem/Projects/HYPERNETS/NetworkDesign_D52/DataProcChain/hypernets_processor/hypernets_processor/data_io/tests/reader/SEQ20201016T141413
1314
[Log]
1415
log_path = test.log
1516
verbose = True
@@ -20,12 +21,12 @@ network = w
2021

2122
[Output]
2223
product_format = netcdf
23-
write_l0 = False
24-
write_l1a = False
24+
write_l0 = True
25+
write_l1a = True
2526
write_l1b = True
26-
write_l1c = False
27+
write_l1c = True
2728
write_l2a = True
28-
archive_directory = home/cgoyens/OneDrive/BackUpThinkpadClem/Projects/HYPERNETS/NetworkDesign_D52/DataProcChain/hypernets_processor/hypernets_processor/test_hypernets
29+
archive_directory = ./out/
2930

3031

3132
[Plotting]

hypernets_processor/etc/processor.config

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,16 @@ test_var_wave: 780
7373
test_var_threshold: 0.10
7474

7575
[Output]
76-
write_l0: False
76+
write_l0: True
7777
write_l1a: True
78-
write_l1b: False
79-
write_l1c: False
78+
write_l1b: True
79+
write_l1c: True
8080
write_l2a: True
8181

82-
plot_l0: False
83-
plot_l1a: False
82+
plot_l0: True
83+
plot_l1a: True
8484
plot_l1b: True
85-
plot_l1c: False
85+
plot_l1c: True
8686
plot_l2a: True
8787

8888
[Flags]

hypernets_processor/rhymer/rhymer/hypstar/rhymer_hypstar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,9 @@ def qc_similarity(self, wave, data, wr=670, wp=0.05, w1=720, w2=780, alpha=2.35,
357357
epsilon = (alpha * data[iref2] - data[iref1]) / (alpha - 1.0)
358358

359359
if abs(epsilon) > wp * data[irefr]:
360-
return (True, epsilon)
360+
return (1, epsilon)
361361
else:
362-
return (False, epsilon)
362+
return (0, epsilon)
363363

364364
def process_l1b(self, L1a_rad, L1a_irr):
365365

hypernets_processor/surface_reflectance/surface_reflectance.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ def process_l1d(self, dataset_l1c):
4747
dataset_l1d["wavelength"].values)
4848
dataset_l1d["epsilon"].values = epsilon
4949

50-
dataset_l1d["quality_flag"][dataset_l1d["scan"] == [i for i, x in enumerate(failSimil) if x]] = DatasetUtil.set_flag(
51-
dataset_l1d["quality_flag"][dataset_l1d["scan"] == [i for i, x in enumerate(failSimil) if x]],
52-
"simil_fail")
50+
dataset_l1d["quality_flag"][np.where(failSimil == 1)] = DatasetUtil.set_flag(
51+
dataset_l1d["quality_flag"][np.where(failSimil == 1)], "simil_fail") # for i in range(len(mask))]
5352

5453
input_vars = l1ctol1d_function.get_argument_names()
5554
input_qty = self.find_input(input_vars, dataset_l1d)

0 commit comments

Comments
 (0)