[gradsusr] Error in Temporal Correlation

Jayakrishnan P.R prjayakrishnan at gmail.com
Tue Jun 28 00:21:41 EDT 2016


Dear Saurabh,
        Kindly try with the attached sample gs file for temporal
correlation. It is working perfectly. Your rainfall data is only confined
to Indian Land region. But the SST is entire globe. That can be one of the
reason for error. Not sure.

On Sun, Jun 26, 2016 at 8:51 PM, Sourabh Shrivastava <sourabh.vds at gmail.com>
wrote:

> Dear friends,
>
> Still I am facing same error.
>
>
>
> On Sun, Jun 26, 2016 at 9:31 PM, Lee Byerle <lbyerle at yahoo.com> wrote:
>
>> Sourabh,
>> Please disregard my previous reply. I am wondering if the dimensions of
>> the variable man should constrained in x and y. Just before  'define man..'
>> , it might work by:
>> set x 1
>> set y 1
>>
>> Best wishes,
>> Lee
>>
>>
>> Sent from my iPhone
>>
>> On Jun 26, 2016, at 11:46 AM, Lee Byerle <lbyerle at yahoo.com> wrote:
>>
>> Try limiting the x- and y- dimensions just before the define of corr.
>> set x 1
>> set y 1
>>
>> Lee
>>
>> On Jun 25, 2016, at 2:38 PM, Kishore Ragi <kishoreragi at gmail.com> wrote:
>>
>> For making sure, you just check once if lat and lon are same for both the
>> files with ncdump -c command.
>>
>> A simple trick: try to merge those files using CDO or NCO. It will show
>> you if you have problem with incorrect grids.
>>
>> To not to get these issues, I usually merge all the variables in a single
>> file.
>>
>> Cheers,
>> Kishore
>>
>>
>>
>> *PhD student in climate science,*
>>
>> *National Institute of Technology, Rourkela,*
>>
>> *India- 769008*
>>
>>
>>
>>
>>
>>
>> *Phone: +91-8908671881
>> <%2B91-8908671881>http://www.researchgate.net/profile/Kishore_Ragihttps://in.linkedin.com/in/kishoreragihttp://kishoreragi.webnode.com/*
>>
>> On Sat, Jun 25, 2016 at 9:16 PM, Sourabh Shrivastava <
>> sourabh.vds at gmail.com> wrote:
>>
>>> My SST and Rainfall both have 0.25 degree resolution. Where i have taken
>>> the area average or rainfall.
>>>
>>>
>>> On Saturday, June 25, 2016, Jayakrishnan P.R <prjayakrishnan at gmail.com>
>>> wrote:
>>>
>>>> Dear Sourabh,
>>>>        I am afraid your SST is 1 degree resolution and the rainfall is
>>>> 0.25 degree. Just check this. To perform any correlation we need to have
>>>> both the input files as same dimension. If not you will have to regrid the
>>>> other to 0.25 or vice versa. Just a thought. Best Wishes.
>>>>
>>>> On Fri, Jun 24, 2016 at 8:36 PM, 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
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Sincerely
>>>>
>>>> **************************************************
>>>> Dr. Jayakrishnan P.R
>>>> Post Doctoral Research Fellow
>>>> C308, Institute of Ocean and Earth Sciences (IOES)
>>>> University of Malaya
>>>> 50603, Kuala Lumpur
>>>> Tel: (+603) 7967 4640 / 6995
>>>> Mobile: 012-3526094
>>>>
>>>> ****************************************************
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>> --
>>> 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
>>>
>>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
>
>
> --
> 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
>
>


-- 
Sincerely

**************************************************
Dr. Jayakrishnan P.R
Post Doctoral Research Fellow
C308, Institute of Ocean and Earth Sciences (IOES)
University of Malaya
50603, Kuala Lumpur
Tel: (+603) 7967 4640 / 6995
Mobile: 012-3526094

****************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20160627/7957edc9/attachment-0001.html 
-------------- next part --------------

'reinit'
'sdfopen E:/Malaysia/twv_era.nc'
'sdfopen E:/Malaysia/era_2m_temp.nc'
'set t 1 20'
'set x 1'
'set y 1'
'set z 1'
'set t 1 20'
'define s= aave(tcw,lon=60,lon=120,lat=0,lat=30)'
'set lon 60 120'
'set lat 0 30'
'set z 1'
'set t 1'
'define k=tcorr(s,t2m.2, t=1, t=20)'
'set gxout shaded'
'd k'
'cbarn'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecmwf.jpg
Type: image/jpeg
Size: 77626 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20160627/7957edc9/attachment-0001.jpg 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: era_2m_temp.nc
Type: application/x-netcdf
Size: 1810608 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20160627/7957edc9/attachment-0002.nc 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: twv_era.nc
Type: application/x-netcdf
Size: 1810612 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20160627/7957edc9/attachment-0003.nc 


More information about the gradsusr mailing list