Skip to content

Commit 802d2b2

Browse files
author
tobiasmarke
committed
Handle missing retrieval files
1 parent 899f2de commit 802d2b2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

mwrpy/level2/write_lev2_nc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,8 +524,7 @@ def _get_ret_info(
524524
product, ret = "relative_humidity", "rhp"
525525
else:
526526
product, ret = "", ""
527-
528-
coeff = get_mvr_coeff(site, ret, freq, coeff_files)
527+
coeff = get_mvr_coeff(site, ret, freq, coeff_files) if ret != "" else {}
529528
rt = coeff[0]["RT"] if len(coeff) > 0 else -99
530529

531530
return product, ret, rt

0 commit comments

Comments
 (0)