Comments (4)
Haha, quite fun ;-).
I agree that using trapeze is not good because internally, the model does not do that.
Now you are suggesting a fractional bin area, which is OK, but... to be honest I would do it even much simpler. Maybe I'm seeing this wrong, but in OGGM the AAR is calculated as:
h, w, mbh = mbmod.get_annual_mb_on_flowlines()
pacc = np.where(mbh >= 0)
aar = np.sum(w[pacc]) / np.sum(w)
Does this help or not?
from glacier_simulator.
For the AAR I used:
total_area = model.fls[0].area_m2
accumulation_area = np.sum(np.where(model.fls[0].surface_h > mb_model.ela_h,
model.fls[0].bin_area_m2,
0))
AAR = accumulation_area / total_area
which is more or less the same as you posted I think. So for the AAR calculation I do not use a fractional bin area.
But I use fractional bin area for the mb plot, because if not it looks like this (I just remembered that was why I introduced it):
So by using the fractional bin area I hide the discrete model behind a smoothed curve ;)
from glacier_simulator.
I understand! Thanks
from glacier_simulator.
Equations for trapezoidal subarea calculations, just for documentation:
from glacier_simulator.
Related Issues (20)
- General direction HOT 2
- Add "Busy indicators" if they work HOT 12
- Add "Accumulation Area Ratio (AAR)" to the diagnostics
- AttributeError in _compute_group_range for linked plots in Holoviews version 1.14.0 HOT 9
- Possible change in text interface HOT 2
- Add current app version to interface somewhere HOT 2
- Add a stop button.
- What's the next awesome thing we'll add to the simulator? HOT 4
- Add a stable branch HOT 4
- Wrong unit for Annual Mass-Balance and Glacier-wide Mass-Balance HOT 2
- Allow ELA values above the maximum glacier bed height HOT 2
- Add Bremen logo HOT 1
- Is it possible to have persistence in beginner mode? HOT 8
- Change right panel to area histogram
- Add more safeguards to prevent long model runs HOT 3
- Use png logo instead of gif
- Timeseries could be stored even when "Show timeseries" is off HOT 2
- If model opt is to show model progress every X years, the timeseries plot should also adapt the timestep HOT 4
- Show model progress option affects the equilibrium condition HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glacier_simulator.