tcorr function

Mateus S. Teixeira mtex2k3 at YAHOO.COM.BR
Fri Feb 25 18:18:11 EST 2005


Hi,
I'm trying to calculate some time correlation fields between two data using
TCORR function but something is going wrong.
When a give the display command a I have the following error message:

TCORR:  dim = 3, start = 1, end = 37
Error from TCORR:  1st arg must be 0-D
Error from TCORR:  Error getting grids
Operation Error:  Error from tcorr function
  Error ocurred at column 1
DISPLAY error:  Invalid expression
  Expression = tcorr(ic.2,hgt.1,t=1,t=37)

IC.2 is a time series of single data per time and HGT.1 is a time series of
grided data. It seems that TCORR function try to read the data from ic.2
variable but the dimensions are not correct.

My CTL files for these data is:

DSET ^ic.dat
TITLE Precipitation Index
UNDEF -9.99E33
XDEF 1 LINEAR 180 1
YDEF 1 LINEAR -65 1
ZDEF 1 LINEAR 1 1
TDEF 37 LINEAR 12Z01OCT2001 1YR
VARS 1
ic 0 99 prec. index
ENDVARS

DSET ^djf.D0.%y2.hgt.500mb.dat
OPTIONS template
TITLE Geop. Height data
UNDEF -9.99E33
XDEF 72 LINEAR 180.00 2.5
YDEF 27 LINEAR -65.00 2.5
ZDEF 1 LINEAR 1 1
TDEF 37 LINEAR 12Z01OCT2001 1YR
VARS 1
hgt 0 99 geopotential height
ENDVARS

Thanks.
Mateus.



More information about the gradsusr mailing list