[gradsusr] Using scorr function

Dr.Suneela S.S karickalr at hotmail.com
Sun Sep 20 08:35:41 EDT 2020


Dear,

Thank you very much. I could resolve the issue.

With regards,
Suneela
________________________________
From: gradsusr <gradsusr-bounces at gradsusr.org> on behalf of Dr. Suman Maity <suman.buie at gmail.com>
Sent: Friday, September 18, 2020 9:45 PM
To: GrADS Users Forum <gradsusr at gradsusr.org>
Subject: Re: [gradsusr] Using scorr function

Hi Suneela
Your question is somehow very fishy. The "scorr" function in grads produces spatial correlation which provides single numeric value. Perhaps, you mixed spatial correlation with temporal correlation (where we are getting a spatial map).Therefore "no result is displayed" is not clear to me. However, for only the spatial correlation,
'reinit'
'sdfopen E:/lh.nc<http://lh.nc>'
'sdfopen E:/sh.nc<http://sh.nc>'
'd scorr(lhtfl, shum.2, lon=30, lon=90, lat=0, lat=30)'
This is sufficient and provides the correlation vlue 0.8 which the spatial correlation for t=1 (1st time step).
I hope it helps.
Cheers!!!!!

Best
Suman
++++++++++++++++++++++++++++++++++++++++++
Dr. Suman Maity
Research Associate
School of Atmospheric Science
Sun Yat-sen University, Zhuhai campus,Tangjiawan Town
Zhuhai, Guangdong, Postcode-519082,China.
Phone:+86-13543861045 (China), +91-9732636778 (India)
skype: reach2suman
https://www.researchgate.net/profile/Suman_Maity
++++++++++++++++++++++++++++++++++++++++++


On Fri, Sep 18, 2020 at 10:48 AM Dr.Suneela S.S <karickalr at hotmail.com<mailto:karickalr at hotmail.com>> wrote:
Hi,

I have to find a spatial correlation between 2 parameters. When I use the scorr function,  no error is shown, but no result is displayed.  Please help me resolve the issue.

The grads program I used is given below and the daily data of the parameters, latent heat flux and specific humidity for the years 2017-2019 are attached.


* corrl
'reinit'
'set map 1 1 12'
'set display color white'
'c'
'sdfopen E:/lh.nc<http://lh.nc>'
'sdfopen E:/sh.nc<http://sh.nc>'
'set lon 30 90'
'set lat 0 30'
'set xlopts 1 4 0.16'
'set ylopts 1 4 0.16'
'set time 15aug19'
'set grads off'
'set gxout contour'
'd scorr(lhtfl, shum.2, lon=30, lon=90, lat=0, lat=30)'
'draw title corrl 15aug2019'
'printim d:/corr-15aug2019.jpg'


Thank you,
Suneela. S.
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20200920/13c68555/attachment-0001.html>


More information about the gradsusr mailing list