cdiff not working for z dim!?

Arturo Pucillo arturo.pucillo at OSMER.FVG.IT
Mon May 15 07:00:14 EDT 2006


Hello!

Try with the following:

"define dt=t(z-1)-t(z+1)"

However I think there's another post with discussion of this matter.

Regards

Arturo



Thomas Spengler wrote:
> Dear all,
>
> I am trying to calculate vertical gradients using the 'cdiff' function.
>
> For example for my variabte t (temperature) I write:
>
> ga-> set z 1 21
> LEV set to 1 1000
> ga-> define dt=cdiff(t,z)
>
> and get the following result/error message:
>
> Error from CDIFF:  Specified dimension non varying
> Operation Error:  Error from cdiff function
>   Error ocurred at column 1
> DEFINE error:  Invalid expression.
>
> when trying to use lev as the vertical dim:
>
> ga-> define dt=cdiff(t,lev)
> Error from CDIFF:  Invalid dimension argument
>   2nd argument must be X, Y, Z, or T
> Operation Error:  Error from cdiff function
>   Error ocurred at column 1
> DEFINE error:  Invalid expression.
>
> Would be great if someone has a suggestion on how to calculate vertical
> differentials in GrADS.
>
> Thanks for your help!
>
> Cheers,
> Thomas
>
>

--

==================================================

Arturo PUCILLO

ARPA FVG - Settore OSMER
Osservatorio Meteorologico Regionale
Regional Meteorological Observatory
Via Oberdan 18
I-33040 Visco (UD) Italy
tel:    +39 0432934111 (centr.)
        +39 0432934162 (int.)
        +39 0432934100 (fax)
e-mail: arturo.pucillo at osmer.fvg.it
==================================================



More information about the gradsusr mailing list