Giter VIP home page Giter VIP logo

Comments (4)

fmaussion avatar fmaussion commented on August 14, 2024

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.

pat-schmitt avatar pat-schmitt commented on August 14, 2024

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):
mb_discrete

So by using the fractional bin area I hide the discrete model behind a smoothed curve ;)

from glacier_simulator.

fmaussion avatar fmaussion commented on August 14, 2024

I understand! Thanks

from glacier_simulator.

pat-schmitt avatar pat-schmitt commented on August 14, 2024

Equations for trapezoidal subarea calculations, just for documentation:
20201220_192906
20201220_192640

from glacier_simulator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.