Hi Matthieu,
Do you mean that the levels in your grid correspond to known depths,
so that you would like to simply assign a depth to each level? If
that is the case, then use the @ASN transformation to put the data
onto the depth axis. Make sure there are the same number of depths as
levels, for instance:
yes? define axis/z=/units=meters/depth zdepths =
{2,5,10,15,20,30,50,100}
yes? let/units="`temp,return=units`" temp_on_depth =
temp[gz=zdepths@ASN]
and note that on the DEFINE AXIS command, you could use /EDGES so
that you define the edges of the grid cells instead of the grid cell
centers. For unequally spaced grids, this is often the better choice.