[gradsusr] gradsusr Digest, Vol 32, Issue 11

Ricardo Hallak hallak at model.iag.usp.br
Thu Oct 18 10:53:31 EDT 2012


Farah,

First, I think you have to do:
'set x 1'
'set y 1'
'set z 1'

before defining tos1:

'set t 1 1872'
'define tos1=tos'

This creates a time series of the "0-D" variable tos1.

Anyway, the GrADS Documentation says:
tcorr()

tcorr (expr1, expr2, tdim1, tdim2)

This function produces a spatial map of temporal correlationcoefficients.

expr1   - a valid GrADS expression that varies in time
expr2   - a valid GrADS expression that varies in time and may also vary in X and Y
tdim1   - starting time dimension expression 
tdim2   - ending time dimension expression

The expr1 time series is correlated to the timeseries at each grid point in expr2. The result isa grid of correlation coefficients that matches the X and Y dimensionsof expr2

###############################################################

That is, the result is one map of time correlation values, with one value for each par of (x,y) point.

You can take a look at:

http://www.iges.org/grads/gadoc/gradfunctcorr.html

Ricardo

On Sun, 7 Oct 2012 22:06:32 -0700, Farah Ikram wrote
> following is my script..it works fine for displaying the correlations butwhen i try to save the values for the whole time series, it just gives only one value for all time steps. and if i run it with the loop it gives tcorr error "1st arg should have 0-D' i did not add the lead lag part as i am trying to calculate the simple correlation 1st
> 'reinit'
> 'open atlantic-1.ctl'
> 'xdfopen tos_Omon_CMCC-CM_2deg_
> historical_r1i1p1_185001-200512.ctl'
> 'set display color white'
> 'c'
> *a=1
> *while(a<=1872)
> 'set x 1'
> 'set t 1 1872'
> 'define tos1=tos'
> 'set dfile 2'
> 'set lat -90 90'
> 'set lon 0 360'
> 'set z 1'
> 'set t 1'
> 'define a=tcorr(tos1,tos,t=1,t=1872)'
> 
> 'set mpdset hires'
> 'set gxout contour'
> 'set csmooth on'
> 'd a'
> ans=subwrd(result,4)
> pt=write('corr-cmcc-cm.csv',ans,append)
> *a=a+1
> *endwhile
> *'run /SATA-Backup/CMIP5_SA_Processed/scripts/cbar.gs'
> 'run cbar.gs'
> 'draw title corr CMCC-CM'
> 'printim corr_cmcc-cm.gif'
> *'disable print'
> 
> On Fri, Oct 5, 2012 at 7:40 AM, <gradsusr-request at gradsusr.org> wrote:
> Send gradsusr mailing list submissions to
>         gradsusr at gradsusr.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://gradsusr.org/mailman/listinfo/gradsusr
> or, via email, send a message with subject or body 'help' to
>         gradsusr-request at gradsusr.org
> 
> You can reach the person managing the list at
>         gradsusr-owner at gradsusr.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of gradsusr digest..."
> 
> Today's Topics:
> 
>    1. Re: Run GRDAS in windows 7 (hersala)
>    2. Re: simple correlation of Atlantic index with global and  lead
>       lag correlation (Ricardo Hallak)
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Fri, 5 Oct 2012 08:45:29 -0300
> From: hersala <hersala at gmail.com>
> Subject: Re: [gradsusr] Run GRDAS in windows 7
> To: GrADS Users Forum <gradsusr at gradsusr.org>
> Message-ID:
>         <CA+0GtdsPJJT1zxK_XBYrDf61rNTYrQUp2y=usz_RQtYzkKaWrA at mail.gmail.com>
> Content-Type: text/plain; charset="windows-1252"
> 
> Dear Venkat,
> Please look at this Wiki, perhaps it will help you.
> 
> http://opengrads.org/wiki/index.php?title=Installing_GrADS_v2.0_on_Microsoft_Windows
> *When WiFi is turned OFF you get Error in GXSTRT: Unable to connect to X
> server*
> 
> Cheers,
> Hernan
> 
> On 5 October 2012 02:05, Serge Claudio Rafanoharana
> <rafanoharana at gmail.com>wrote:
> 
> > Dear Venkat,
> >
> > Based on my experience, this ?GXSTRT unable to connect to X server? is
> > more related to Internet connexion. I mean I have OpenGrads in both Vista
> > and Windows 7. When I am connected to the Internet, I have no problem
> > running Grads. However, if I am not connected to the Internet, I receive
> > this message.
> > Hope it can help.
> >
> > Cheers,
> > Serge
> >
> > On Thu, Oct 4, 2012 at 3:34 AM, Venkat Kolluru <Venkat.Kolluru at erm.com>wrote:
> >
> >>  Hi,
> >>
> >> I downloaded all the windows related softwares and installed it.
> >>
> >> When I run grads, It runs ok and then it stops with the following error
> >>
> >> ?GXSTRT unable to connect to X server?
> >>
> >> But when I run in batch mode I get the command  prompt ga->
> >>
> >> Then I tried to run the script obtained from one of GDS servers.
> >>
> >>
> >>
> >> sdfopen
> >> http://www.usgodae.org/dods/GDS/nogaps_comp/NOGAPS_comp_grid_vlm-0000
> >>
> >>  I get unhandled exception?
> >>
> >>
> >>
> >> Can you please tell me as what I am doing wrong here?
> >>
> >>
> >> Thanks
> >>
> >> Venkat
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> Venkat S. Kolluru
> >>
> >> Technical Director, Surfacewater Modeling Group
> >>
> >>
> >>
> >> ERM
> >>
> >> 350 Eagleview Boulevard, Suite 200
> >>
> >> Exton, PA 19341-1180
> >>
> >>
> >>
> >> Tel: 610 524 3654
> >>
> >> Mob: 610 764 0579
> >>
> >>
> >>
> >> www.erm.com
> >>
> >> venkat.kolluru at erm.com
> >>
> >>
> >>
> >> ------------------------------
> >>
> >> This message contains information which may be confidential, proprietary,
> >> privileged, or otherwise protected by law from disclosure or use by a third
> >> party. If you have received this message in error, please contact us
> >> immediately and take the steps necessary to delete the message completely
> >> from your computer system. Thank you.
> >>
> >> Please visit ERM's web site: http://www.erm.com
> >>
> >> _______________________________________________
> >> gradsusr mailing list
> >> gradsusr at gradsusr.org
> >> http://gradsusr.org/mailman/listinfo/gradsusr
> >>
> >>
> >
> >
> > --
> > Serge
> >
> > _______________________________________________
> > 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/20121005/121816ed/attachment-0001.html
> 
> ------------------------------
> 
> Message: 2
> Date: Fri, 5 Oct 2012 12:37:50 -0200
> From: "Ricardo Hallak" <hallak at model.iag.usp.br>
> Subject: Re: [gradsusr] simple correlation of Atlantic index with
>         global and      lead lag correlation
> To: GrADS Users Forum <gradsusr at gradsusr.org>
> Message-ID: <20121005143432.M81659 at model.iag.usp.br>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Probably you are writing the correlation output for each time outside of the time while-endwhile loop.
> If not, you will have to transcribe your piece of script here for additional analysis.
> 
> Ricardo
> 
> On Wed, 3 Oct 2012 20:29:18 -0700, Farah Ikram wrote
> > i am trying to calculate a time series of corelations of the atlantic index with global domain but all i am getting is a single value of correlation but not the time series. i am comparing the time series of atlantic index. also i want to do the same for lead lag correlation. any idea how to do that??
> >
> > On Wed, Oct 3, 2012 at 6:42 PM, <gradsusr-request at gradsusr.org> wrote:
> > Send gradsusr mailing list submissions to
> > ? ? ? ? gradsusr at gradsusr.org
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> > ? ? ? ? http://gradsusr.org/mailman/listinfo/gradsusr
> > or, via email, send a message with subject or body 'help' to
> > ? ? ? ? gradsusr-request at gradsusr.org
> >
> > You can reach the person managing the list at
> > ? ? ? ? gradsusr-owner at gradsusr.org
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of gradsusr digest..."
> >
> > Today's Topics:
> >
> > ? ?1. plot data over specific region (Sushant Das)
> > ? ?2. Hello everyone - a general question (??? ?)
> > ? ?3. test (Jennifer Adams)
> > ? ?4. Re: Hello everyone - a general question (Erik D. Kabela)
> > ? ?5. Re: test (Jeff Lake)
> > ? ?6. Re: test (Jennifer Adams)
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Wed, 3 Oct 2012 03:59:59 -0700 (PDT)
> > From: Sushant Das <sushant_models at yahoo.com>
> > Subject: [gradsusr] plot data over specific region
> > To: "gradsusr at gradsusr.org" <gradsusr at gradsusr.org>
> > Message-ID:
> > ? ? ? ? <1349261999.8260.YahooMailNeo at web124903.mail.ne1.yahoo.com>
> > Content-Type: text/plain; charset="iso-8859-1"
> >
> > Dear GrADS Users,
> >
> > How to plot data over specific region(e.g. INDIA)? Suppose, i have whole Asian domain and i need spatial plot of precipitation exactly following the Indian land mass boundary(excluding ocean). What grads function i have to use or is there any scripts available?
> >
> > Please let me know.
> >
> > Thanks in advance
> > ??
> >
> > Regards,
> > ?
> > SUSHANT DAS,
> > CSIR-SRF Research Fellow
> > Centre for Atmospheric Sciences
> > IIT Delhi, New Delhi 110016
> > INDIA
> > ----------------------------------------------------------------
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL: http://gradsusr.org/pipermail/gradsusr/attachments/20121003/55d87d2a/attachment-0001.html
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Wed, 3 Oct 2012 21:00:43 +0200
> > From: ??? ? <kojokroavi at gmail.com>
> > Subject: [gradsusr] Hello everyone - a general question
> > To: ????? <gradsusr at gradsusr.org>
> > Message-ID:
> > ? ? ? ? <CAFCfe=NDfGZHL149icPkB886pj=6PY3Xr6dP=wqvfASH6PCpQA at mail.gmail.com>
> > Content-Type: text/plain; charset="iso-8859-1"
> >
> > I am working with windows and have the latest version of Grads.
> > I work a lot with the reanalysis, the server does not work, here is a link:
> >
> > http://nomad1.ncep.noaa.gov:9090/dods/
> >
> > Does anyone know what happened to this server?
> >
> > Thanks for answering.
> >
> > Regards
> >
> > avi.
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL: http://gradsusr.org/pipermail/gradsusr/attachments/20121003/d684b400/attachment-0001.html
> >
> > ------------------------------
> >
> > Message: 3
> > Date: Wed, 3 Oct 2012 18:04:44 -0400
> > From: Jennifer Adams <jma at cola.iges.org>
> > Subject: [gradsusr] test
> > To: GrADS Users Forum <gradsusr at gradsusr.org>
> > Message-ID: <70D2D525-AC42-4219-AD4D-21DBA8813B4E at cola.iges.org>
> > Content-Type: text/plain; charset="us-ascii"
> >
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL: http://gradsusr.org/pipermail/gradsusr/attachments/20121003/d7d102b8/attachment-0001.html
> >
> > ------------------------------
> >
> > Message: 4
> > Date: Wed, 3 Oct 2012 20:22:07 -0400
> > From: "Erik D. Kabela" <ekabela at gmail.com>
> > Subject: Re: [gradsusr] Hello everyone - a general question
> > To: GrADS Users Forum <gradsusr at gradsusr.org>
> > Message-ID:
> > ? ? ? ? <CAJc29FzwjPgLEzYSOjT3syYTAgKbSaVnXSJ_pTtACSdzKvT_WA at mail.gmail.com>
> > Content-Type: text/plain; charset="utf-8"
> >
> > Take out the :9090 and make sure you're pointing to nomads1.
> >
> > Erik Kabela
> >
> > On Oct 3, 2012 8:17 PM, "??? ?" <kojokroavi at gmail.com> wrote:
> > >
> > > I am working with windows and have the latest version of Grads.
> > > I work a lot with the reanalysis, the server does not work, here is a
> > link:
> > >
> > > http://nomad1.ncep.noaa.gov:9090/dods/
> > >
> > > Does anyone know what happened to this server?
> > >
> > > Thanks for answering.
> > >
> > > Regards
> > >
> > > avi.
> > >
> > > _______________________________________________
> > > 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/20121003/37065086/attachment-0001.html
> >
> > ------------------------------
> >
> > Message: 5
> > Date: Wed, 03 Oct 2012 20:34:43 -0400
> > From: Jeff Lake <admin at michiganwxsystem.com>
> > Subject: Re: [gradsusr] test
> > To: GrADS Users Forum <gradsusr at gradsusr.org>
> > Message-ID: <506CD9A3.1080005 at michiganwxsystem.com>
> > Content-Type: text/plain; charset="iso-8859-1"
> >
> > you fail :)
> >
> > -Jeff Lake
> > MichiganWxSystem.com
> > AllisonHouse.com
> > TheWeatherCenter.net
> > GRLevelXStuff.com
> >
> > On 10/3/2012 18:04, Jennifer Adams wrote:
> > >
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > 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/20121003/b2e14d38/attachment-0001.html
> >
> > ------------------------------
> >
> > Message: 6
> > Date: Wed, 3 Oct 2012 21:42:43 -0400
> > From: Jennifer Adams <jma at cola.iges.org>
> > Subject: Re: [gradsusr] test
> > To: GrADS Users Forum <gradsusr at gradsusr.org>
> > Message-ID: <DB712CB6-4331-4ACE-B989-4072119EA3CB at cola.iges.org>
> > Content-Type: text/plain; charset="iso-8859-1"
> >
> > Yes. The forum was in a coma for about five days. If you posted anything after Fri Sep 28 19:20:43 EDT 2012 and it hasn't shown up this evening, please resend your post. Sorry for the inconvenience. --Jennifer
> >
> > On Oct 3, 2012, at 8:34 PM, Jeff Lake wrote:
> >
> > > you fail :)
> > > -Jeff Lake
> > > MichiganWxSystem.com
> > > AllisonHouse.com
> > > TheWeatherCenter.net
> > > GRLevelXStuff.com
> > > On 10/3/2012 18:04, Jennifer Adams wrote:
> > >>
> > >>
> > >>
> > >>
> > >>
> > >> _______________________________________________
> > >> 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
> >
> > --
> > Jennifer M. Adams
> > IGES/COLA
> > 4041 Powder Mill Road, Suite 302
> > Calverton, MD 20705
> > jma at cola.iges.org
> >
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL: http://gradsusr.org/pipermail/gradsusr/attachments/20121003/56a54471/attachment.html
> >
> > ------------------------------
> >
> > _______________________________________________
> > gradsusr mailing list
> > gradsusr at gradsusr.org
> > http://gradsusr.org/mailman/listinfo/gradsusr
> >
> > End of gradsusr Digest, Vol 32, Issue 3
> > ***************************************
> >
> 
> Ricardo Hallak
> 
> Departamento de Ci?ncias Atmosf?ricas (ACA)
> Instituto de Astronomia, Geof?sica e Ci?ncias Atmosf?ricas (IAG)
> Universidade de S?o Paulo (USP)
> Rua do Mat?o, 1226 - Cidade Universit?ria - S?o Paulo SP 05508-900
> Phone.: +55 (11) 3091-2850; 3091-4703
> Fax: +55 (11) 3091-4714
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://gradsusr.org/pipermail/gradsusr/attachments/20121005/5e3d5331/attachment.html
> 
> ------------------------------
> 
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
> 
> End of gradsusr Digest, Vol 32, Issue 11
> ****************************************
>

Ricardo Hallak

Departamento de Ciências Atmosféricas (ACA) 
Instituto de Astronomia, Geofísica e Ciências Atmosféricas (IAG) 
Universidade de São Paulo (USP) 
Rua do Matão, 1226 - Cidade Universitária - São Paulo SP 05508-900 
Phone.: +55 (11) 3091-2850; 3091-4703 
Fax: +55 (11) 3091-4714

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20121018/ad7e6193/attachment-0003.html 


More information about the gradsusr mailing list