Clarification on heights Assertion in get_annual_mb and Monthly MB Handling #99
Unanswered
Ruitangtang
asked this question in
Q&A
Replies: 1 comment 8 replies
-
|
That line is from a long time ago. Yes, I believe it's to ensure that you've passed the correct heights associated with the flowlines. Yes, it likely would cause an issue if you were computing it with a previous height. I'm not sure why you wouldn't want to use the present height though? Although I see you are doing that in Question 3. Why? and I'm not sure what self.get_mb is - do you mean self.get_annual_mb? Or are you creating a new function? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi David @drounce , I had a question about the assertion check:
np.testing.assert_allclose(heights, fl.surface_h)(PyGEM/pygem/massbalance.py
Line 202 in 3590de9
I’m saving monthly climatic mass balance (MB) along a flowline using OGGM’s flowline model, but got troubles when saving the monthly climatic mb along the flowline.
My questions are :
self.get_mb(surface_h_previous[fl_id], self.yr - 1/12, fl_id=fl_id), Should fls (or fl) also be passed as an input to get_mb for consistency? Or is the current approach sufficient?Appreciate any insights into the design rationale or suggestions for handling monthly MB correctly. Thanks for your time!
Beta Was this translation helpful? Give feedback.
All reactions