Skip to content
Snippets Groups Projects
Commit 18a8acb0 authored by lkugler's avatar lkugler
Browse files

fail when vert loc incompatible

parent d4d563e0
No related branches found
No related tags found
No related merge requests found
...@@ -52,6 +52,12 @@ def set_DART_nml(just_prior_values=False): ...@@ -52,6 +52,12 @@ def set_DART_nml(just_prior_values=False):
"<list_cutoffs>": ", ".join(list_cov_loc_radian), "<list_cutoffs>": ", ".join(list_cov_loc_radian),
} }
# fail if horiz_dist_only == false but observations contain a satellite channel
if exp.cov_loc_vert_km_horiz_km != False:
for obscfg in exp.observations:
if hasattr(obscfg, "sat_channel"):
raise ValueError("Selected vertical localization, but observations contain satellite obs -> Not possible.")
# Note: only one value of vertical localization possible # Note: only one value of vertical localization possible
try: try:
cov_loc_vert_km, cov_loc_horiz_km = exp.cov_loc_vert_km_horiz_km cov_loc_vert_km, cov_loc_horiz_km = exp.cov_loc_vert_km_horiz_km
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment