Skip to content

Commit b060ea0

Browse files
authored
Merge pull request #56 from DeDop/default-cnf-correction
Default cnf correction
2 parents 12eec1c + 7210604 commit b060ea0

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

dedop/ui/data/config/CNF.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,5 +142,10 @@
142142
"value": 240,
143143
"units": null,
144144
"description": "Number of looks in 1 stack"
145+
},
146+
"output_format_flag_cnf": {
147+
"value": "extended",
148+
"units": "flag",
149+
"description": "Flag that specifies output format: the DeDop extended format ('extended') or default Sentinel-3 format ('sentinel-3')"
145150
}
146-
}
151+
}

dedop/ui/data/cryosat_config/CNF.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,5 +142,10 @@
142142
"value": 240,
143143
"units": null,
144144
"description": "Number of looks in 1 stack"
145+
},
146+
"output_format_flag_cnf": {
147+
"value": "extended",
148+
"units": "flag",
149+
"description": "Flag that specifies output format: the DeDop extended format ('extended') or default Sentinel-3 format ('sentinel-3')"
145150
}
146-
}
151+
}

tests/webapi/test_websocket.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def test_config_management(self):
8787
self.assertEqual(sentinel_configs['chd']['brf_sar_chd']['value'], 78.53069)
8888
self.assertIn('cnf', sentinel_configs)
8989
self.assertIsInstance(sentinel_configs['cnf'], dict)
90-
self.assertEqual(len(sentinel_configs['cnf']), 23)
90+
self.assertEqual(len(sentinel_configs['cnf']), 24)
9191
self.assertEqual(sentinel_configs['cnf']['flag_cal2_correction_cnf']['value'], True)
9292
self.assertEqual(sentinel_configs['cnf']['N_looks_stack_cnf']['value'], 240)
9393
self.assertIn('cst', sentinel_configs)
@@ -115,7 +115,7 @@ def test_config_management(self):
115115
self.assertEqual(cryosat_configs['chd']['brf_sar_chd']['value'], 85.51521850207267)
116116
self.assertIn('cnf', cryosat_configs)
117117
self.assertIsInstance(cryosat_configs['cnf'], dict)
118-
self.assertEqual(len(cryosat_configs['cnf']), 23)
118+
self.assertEqual(len(cryosat_configs['cnf']), 24)
119119
self.assertEqual(cryosat_configs['cnf']['flag_cal2_correction_cnf']['value'], True)
120120
self.assertEqual(cryosat_configs['cnf']['N_looks_stack_cnf']['value'], 240)
121121
self.assertIn('cst', cryosat_configs)

0 commit comments

Comments
 (0)