You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Name: Daniel Varon
Institution: Harvard University
Description of your issue or question
The IMI fails if no observations are available during an inversion period (for example, due to a TROPOMI outage) when using lognormal prior errors. The problem originates in merge_partial_k.py, where K is not defined if no observations are available. The problem persists in lognormal_invert.py, which expects a K matrix.
The behavior should be as in invert.py (which assumes normal prior errors) -- if no observations are available, then K is populated with zeroes and the inversion returns the prior.
The text was updated successfully, but these errors were encountered:
Here's a kludge that seems to work but is not ideal:
If there are no observations, make merge_partial_k.py return K=0 and so=1
merge_partial_k.py:
if len(files) == 0:
print("\nWarning: No observations available during inversion period. Inversion will return prior estimate.\n")
K = 0
so = 1
If K=0, make lognormal_invert.py exit with xhat=1 (scale factors) or xhat=0 (boundary conditions) and generate the bare minimum output to continue with the next inversion period
Name and Institution (Required)
Name: Daniel Varon
Institution: Harvard University
Description of your issue or question
The IMI fails if no observations are available during an inversion period (for example, due to a TROPOMI outage) when using lognormal prior errors. The problem originates in
merge_partial_k.py
, whereK
is not defined if no observations are available. The problem persists inlognormal_invert.py
, which expects aK
matrix.The behavior should be as in
invert.py
(which assumes normal prior errors) -- if no observations are available, thenK
is populated with zeroes and the inversion returns the prior.The text was updated successfully, but these errors were encountered: