Skip to content

Commit

Permalink
Merge pull request #56 from DeDop/default-cnf-correction
Browse files Browse the repository at this point in the history
Default cnf correction
  • Loading branch information
mark-ep authored Sep 4, 2018
2 parents 12eec1c + 7210604 commit b060ea0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
7 changes: 6 additions & 1 deletion dedop/ui/data/config/CNF.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,10 @@
"value": 240,
"units": null,
"description": "Number of looks in 1 stack"
},
"output_format_flag_cnf": {
"value": "extended",
"units": "flag",
"description": "Flag that specifies output format: the DeDop extended format ('extended') or default Sentinel-3 format ('sentinel-3')"
}
}
}
7 changes: 6 additions & 1 deletion dedop/ui/data/cryosat_config/CNF.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,10 @@
"value": 240,
"units": null,
"description": "Number of looks in 1 stack"
},
"output_format_flag_cnf": {
"value": "extended",
"units": "flag",
"description": "Flag that specifies output format: the DeDop extended format ('extended') or default Sentinel-3 format ('sentinel-3')"
}
}
}
4 changes: 2 additions & 2 deletions tests/webapi/test_websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def test_config_management(self):
self.assertEqual(sentinel_configs['chd']['brf_sar_chd']['value'], 78.53069)
self.assertIn('cnf', sentinel_configs)
self.assertIsInstance(sentinel_configs['cnf'], dict)
self.assertEqual(len(sentinel_configs['cnf']), 23)
self.assertEqual(len(sentinel_configs['cnf']), 24)
self.assertEqual(sentinel_configs['cnf']['flag_cal2_correction_cnf']['value'], True)
self.assertEqual(sentinel_configs['cnf']['N_looks_stack_cnf']['value'], 240)
self.assertIn('cst', sentinel_configs)
Expand Down Expand Up @@ -115,7 +115,7 @@ def test_config_management(self):
self.assertEqual(cryosat_configs['chd']['brf_sar_chd']['value'], 85.51521850207267)
self.assertIn('cnf', cryosat_configs)
self.assertIsInstance(cryosat_configs['cnf'], dict)
self.assertEqual(len(cryosat_configs['cnf']), 23)
self.assertEqual(len(cryosat_configs['cnf']), 24)
self.assertEqual(cryosat_configs['cnf']['flag_cal2_correction_cnf']['value'], True)
self.assertEqual(cryosat_configs['cnf']['N_looks_stack_cnf']['value'], 240)
self.assertIn('cst', cryosat_configs)
Expand Down

0 comments on commit b060ea0

Please sign in to comment.