Personal tools
You are here: Home Documentation Users Guide Appendix A: External Functions ZAXREPLACE_AVG
Document Actions

ZAXREPLACE_AVG

Appendix A Sec35.

ZAXREPLACE_AVG

ZAXREPLACE_AVG(V,ZVALS,ZAX)

Use weighted averaging to convert between alternative monotonic Zaxes. The weighting is done according to the portion of the source box that lies within the destination grid cell.

The mapping between the source and destination Z axes is a function of X,Y, and or T. Typical applications in the field of oceanography include converting from a Z axis of layer number to a Z axis in units of depth (e.g., for sigma coordinate fields) and converting from a Z axes of depth to one of density (for a stably stratified fluid).

Argument 1, V, is the field of data values, say temperature on the "source" Z-axis, say, layer number. The second argument, ZVALS, contains values in units of the desired destination Z axis (ZAX) on the same Z axis as V — for example, depth values associated with each vertical layer. The third argument, ZAX, is any variable defined on the destination Z axis, often "Z[gz=zaxis_name]" is used. For an example of the ZAXREPLACE family of functions see ZAXREPLACE (p. 85)

Arguments:

V

A function of depth and perhaps, x, y, and time.


ZVALS

Destination Z axis values as a fcn of source Z axis


ZAX

Variable with desired z (depth) axis points

Result Axes:

X

Inherited from V


Y

Inherited from V


Z

Inherited from ZAX


T

Inherited from V




Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: