[gradsusr] Using scorr function

Dr. Suman Maity suman.buie at gmail.com
Sun Sep 20 08:42:12 EDT 2020


Hi Suneela
If you need spatial distribution of corelation then I will suggest you to
opt for timeporal correaltion. It will give you a spatial distribution of
correlation. The funtion is "tcorr" in grads (
http://cola.gmu.edu/grads/gadoc/gradfunctcorr.html). This function
calculates the correlation at each grid point temporally and finally offer
an 2D correlation array.

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 Sun, Sep 20, 2020 at 4:49 PM Dr.Suneela S.S <karickalr at hotmail.com>
wrote:

> Hi  Suman,
>
> Thank you very much for your mail.  I need a spatial distribution. Any
> suggestion?
>
> 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'
> 'sdfopen E:/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>
> 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'
> 'sdfopen E:/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
> http://gradsusr.org/mailman/listinfo/gradsusr
>
> _______________________________________________
> gradsusr mailing list
> 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/257d33af/attachment.html>


More information about the gradsusr mailing list