ZAXREPLACE_BIN
Appendix A Sec36.
ZAXREPLACE_BIN(V,ZVALS,ZAX)
Use unweighted averaging to convert between alternative monotonic Zaxes. The function finds the source points within each destination box and averages them.
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 |