[gradsusr] tcorr (correlation calculation and plotting)

Bimal Gyawali bml.gya at gmail.com
Wed Oct 26 11:52:31 EDT 2016


Sourabh
when u calculating temporal correlation you should not vary lat and lon. SO
If you set lat and lon any value it will work.
set x 1
set y 1
or
set lat (any value)
set lon (any value)
Try this. This should work

*Bimal Gyawali*





* Graduate Research Assistant Department of Physical and Environment
Science Natural Resources Center Texas A&M University-Corpus Christi Corpus
Christi, TX 78412 Tel: 435-881-3603*

On Wed, Oct 26, 2016 at 10:02 AM, Sourabh Bal <sourabhbal at gmail.com> wrote:

> Dear Grads users,
>
> I wanted to find the spatial correlation between precipitation in the
> region (70-110E and 5-30N) and sea-surface temperature in each grid points.
> Initially I have remapped the grid dimension same  for each input data
> files using CDO. Please can anyone suggest where I am going wrong!
>
> Here is my script
>
> sdfopen precip.remap
> sdfopen sst.remap
> set t 1 35
> ismr=aave(precip.1,lon=70,lon=110,lat=5,lat=30)
> set lon 0 360
> set lat -90 90
> set t 1
> set z 1
> d tcorr(ismr,sst.2,t=1,t=35)
>
> I am getting the following error
>
> TCORR:  dim = 3, start = 1, end = 35
> Data Request Error: Invalid grid coordinates
>   World coordinates convert to non-integer  grid coordinates
>     Variable = sst.2  Dimension = 3
> Error from TCORR:  Error getting grids
> Operation Error:  Error from tcorr function
>   Error ocurred at column 1
> DISPLAY error:  Invalid expression
>   Expression = tcorr(ismr,sst.2,t=1,t=35)
>
>
>
> description file 1
> File 1 : GPCP Version 2.2 Combined Precipitation Dataset (Final)
>   Descriptor: precip.remap
>   Binary: precip.remap
>   Type = Gridded
>   Xsize = 128  Ysize = 64  Zsize = 1  Tsize = 35  Esize = 1
>   Number of Variables = 1
>      precip  0  t,y,x  Average Monthly Rate of Precipitation
> description of file 2
>
> File 2 : Kaplan Extended SST V2
>   Descriptor: sst.remap
>   Binary: sst.remap
>   Type = Gridded
>   Xsize = 128  Ysize = 64  Zsize = 1  Tsize = 35  Esize = 1
>   Number of Variables = 1
>      sst  0  t,y,x  Monthly Anomalies of SST
>
>
> with best regards
>
> Sourabh
>
> Dr. Sourabh Bal
> Assistant Professor
> Department of Physics
> Swami Vivekananda Institute of Science and Technology
> Kolkata 700145
>
>
>
>
> _______________________________________________
> 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/20161026/6b2753ba/attachment.html 


More information about the gradsusr mailing list