Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Calculate the global area weighted mean (GCM outputs)
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Jan-Erik

Posts: 5
Registered: 6/28/11
Calculate the global area weighted mean (GCM outputs)
Posted: Feb 17, 2013 2:47 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I am working with gridded global fields with different resolutions from global climate models. Some gridded fields (such the one from HadGEM2) have different grid sizes depending on the latitude.

In ferret computing the global weighted average is pretty straight forward. Ferret computes an approximation to this value using the gridded field. However, in Matlab the data fields are loaded as a matrix. Taken the mean of this matrix (by using the function "mean2", for example) does not weight the different elements by its area and gives me only the unweighted-average. This gives me an global average that is not really realistic. If, for example, the latitudinal resolution increases near the equator, so that you have more grid points near the equator, the unweighted-average will suddenly be biased towards grid values that are near the equator.

Is there a function or method that accounts for that in Matlab when working with global gridded fields?



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.