[gradsusr] Error in Temporal Correlation
Jeff Duda
jeffduda319 at gmail.com
Fri Jun 24 10:28:45 EDT 2016
I would check to see if your component fields, man and a, have defined
values.
On Fri, Jun 24, 2016 at 7:36 AM, Sourabh Shrivastava <sourabh.vds at gmail.com>
wrote:
> Dear Friends,
>
> I am trying to calculate Temporal Correlation using GRADS.
> My script is :
>
> 'reinit'
> 'open rf.25_1982_2014_jun.ctl'
> 'run rgbset.gs'
> 'set t 1 33'
> 'define rainclimate = ave(rain, t=1, t=33)'
> 'define anom = rain-rainclimate'
> 'define man = aave(anom, lon=74., lon=85., lat=18., lat=27.)'
> 'close 1'
> *
> 'open sst_jun.ctl'
> 'define sstclimate = ave(sst,t=1,t=33)'
> 'set t 1 33'
> 'define anomsst = sst-sstclimate'
> 'define a = anomsst'
> 'set t 1'
> 'define corr = tcorr(man,a,t=1,t=33)'
> 'd corr'
>
>
> and I am getting this error
>
> Data Request Error: Invalid grid coordinates
> World coordinates convert to non-integer grid coordinates
> Variable = man Dimension = 3
> Error from TCORR: Error getting grids
> Operation Error: Error from tcorr function
> Error ocurred at column 1
> DEFINE error: Invalid expression.
> Syntax Error: Invalid Operand
> 'corr' not a variable or function name
> Error ocurred at column 1
> DISPLAY error: Invalid expression
> Expression = corr
>
>
>
> Thanking You
> --
> SOURABH SHRIVASTAVA
> Scientist-C
> (BIMSTEC), NCMRWF
> Ministry of Earth Sciences
> A-50, Institutional Area, Sector-62,
> NOIDA, UP, Pin: 201 307
> ---------------------------------------------------------
> Mobile: +919555813179
> emails: sourabh at ncmrwf.gov.in;
> NCMRWF website: www.ncmrwf.gov.in
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
--
Jeff Duda
Post-doctoral research associate
University of Oklahoma School of Meteorology
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20160624/45246270/attachment.html
More information about the gradsusr
mailing list