The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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

Advanced Search

Back to Topic List Back to Topic List  

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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.