[gradsusr] Average in two different time and locations

T. haghroosta haghroosta at hotmail.com
Tue Feb 5 11:52:21 EST 2013


Dear Ricardo, Thank you very much it finally worked.Thank you all other helpers. Regards, T.
     
> 
> Today's Topics:
> 
>    1. Re: problems with the command regrid in my suse (Jeff Duda)
>    2. script to several files (Estefan?a Jim?nez)
>    3. Re: Plot wind vector and magnitude
>       (Endalkachew Bekele - NOAA Affiliate)
>    4. Re: Average in two different time and locations (Ricardo Hallak)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Tue, 5 Feb 2013 09:56:00 -0600
> From: Jeff Duda <jeffduda319 at gmail.com>
> Subject: Re: [gradsusr] problems with the command regrid in my suse
> To: GrADS Users Forum <gradsusr at gradsusr.org>
> Message-ID:
> 	<CAAig09Bo-9SPKQaDTY17CmZ6oZDe946meEGcLAYnkSK8CapfFg at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> If you're using Grads (not opengrads) then those functions defined outside
> of Grads will not be available to you.  You can use the lterp() function,
> however.  It should do the same thing as regrid().
> 
> Jeff Duda
> 
> On Tue, Feb 5, 2013 at 9:28 AM, decker guzman <deckerfis at gmail.com> wrote:
> 
> > * *I want to regrid my data and I am using GrADS Version 2.0.1 (not opengrads in
> >  windows). I have tried
> >  "regrid(uwnd,2.5,2.5)"," regrid2(uwnd,2.5,2.5)" and "re(uwnd,2.5,2.5)" .
> >
> >  However error messages were displayed and said 'regrid' not a variable
> >  or function name , 'regrid2' not a variable or function name and 're'
> >  not a variable or function name  respectively..
> > could someone help me please?
> >
> > Decker
> >
> >
> > _______________________________________________
> > gradsusr mailing list
> > gradsusr at gradsusr.org
> > http://gradsusr.org/mailman/listinfo/gradsusr
> >
> >
> 
> 
> -- 
> Jeff Duda
> Graduate research assistant
> University of Oklahoma School of Meteorology
> Center for Analysis and Prediction of Storms
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130205/d8e0e633/attachment-0001.html 
> 
> ------------------------------
> 
> Message: 2
> Date: Tue, 5 Feb 2013 10:07:59 -0600
> From: Estefan?a Jim?nez <estefaniajimenez.r at gmail.com>
> Subject: [gradsusr] script to several files
> To: GrADS Users Forum <gradsusr at gradsusr.org>
> Message-ID:
> 	<CAL2qOoLeAmwUdTDXuw6ydDakmqxyTT07kBnsGBzQNJNNLBCiOg at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Hi all! How can I do to do a script that plots and saves the same image for
> several files? For example, I have 30 files that I need to get the rain in
> an image and save it... I have the script for one file but how can I change
> it to make it work for all the 30 files? So I don't have to run the script
> 30 times...
> 
> Thanks!
> 
> -- 
> *Estefan?a Jim?nez R.*
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130205/a1e0f309/attachment-0001.html 
> 
> ------------------------------
> 
> Message: 3
> Date: Tue, 5 Feb 2013 11:17:01 -0500
> From: Endalkachew Bekele - NOAA Affiliate
> 	<endalkachew.bekele at noaa.gov>
> Subject: Re: [gradsusr] Plot wind vector and magnitude
> To: beregassa at gmail.com, GrADS Users Forum <gradsusr at gradsusr.org>
> Message-ID:
> 	<CAN1MjmeSJYMdgLoS_VR4he3ZsjLj7ZL-W4+MziUyRC90e=4THg at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> hi Bedasa,
> 
> How are you doing?
> 
> I hope all is well in Arba Minch.
> 
> I saw your script, and I have attempted to edit it a little bit:
> 
> reinit'
> 'set display color white'
> 'c'
> 'set grid off'
> 'set grads off'
> 'sdfopen v850.nc'
> 'sdfopen u850.nc'
> 'set mpdset hires'
> 'set lat -40 40'
> 'set lon -180 180'
> i=1
> while(i<=3)
> 'set t 'i
> 'set gxout shaded'
> 'd mag(v850.1,u850.2)'
> 'set gxout vector'
> 'd v850.1;u850.2'
> pull pause
> 'c'
> i=i+1
> end while
> 
> This will pause you display until you hit the enter key. Then it will take
> you the next time step. agin it will pause, and when you hit the enter key
> it will take you to the last (third) time step.
> 
> Let me know if you are nor able to run it.
> 
> Blessings,
> Endalkachew
> 
> 
> 
> 
> 
> On Tue, Feb 5, 2013 at 8:59 AM, Bedassa Regassa <beregassa at gmail.com> wrote:
> 
> >
> >
> > Hello, I try to write the following script to plot wind vector and
> > magnitude. But, I can't see the wind magnitude. I like a comment on my
> > script here is attached
> >  'reinit'
> > 'set display color white'
> > 'c'
> > 'set grid off'
> > 'set grads off'
> > 'sdfopen v850.nc'
> > 'sdfopen u850.nc'
> > 'set mpdset hires'
> > 'set lat -40 40'
> > 'set lon -180 180'
> > 'set t 1 3'
> > 'set gxout shaded'
> > 'd mag(v850.1,u850.2)'
> > 'set gxout vector'
> > 'd v850.1;u850.2'
> >
> > Thank you.
> >
> > Sincerely,
> >
> > Bedassa
> >
> > _______________________________________________
> > gradsusr mailing list
> > gradsusr at gradsusr.org
> > http://gradsusr.org/mailman/listinfo/gradsusr
> >
> >
> 
> 
> -- 
> -----------------------------------------------------------------------------------
> Endalkachew Bekele
> NOAA Center for Weather and Climate Prediction / African Desk
> 5830 University Research Court, Rm 3149
> College Park, Maryland 20740
> Tel: (301) 683-3459
> e-mail: endalkachew.bekele at noaa.gov
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130205/fd9fff5f/attachment-0001.html 
> 
> ------------------------------
> 
> Message: 4
> Date: Tue, 5 Feb 2013 13:25:51 -0300
> From: "Ricardo Hallak" <hallak at model.iag.usp.br>
> Subject: Re: [gradsusr] Average in two different time and locations
> To: GrADS Users Forum <gradsusr at gradsusr.org>
> Message-ID: <20130205155234.M10066 at model.iag.usp.br>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Hi,
> 
> one suggestion is to add something like: 
> AT=subwrd(result,4)
> after:
> 'd aveT'
> in your script below. This will capture the aveT information in a new script variable named AT.
> Now you can handle AT. For example, you can display AT in the terminal screen adding:
> say AT
> 
> in your script.
> 
> Or you can plot AT (a single value) on the map using, for example:
> 
> 'draw string X Y 'AT
> 
> NOTE: every quote and blank space in the lines above or below are essential. Let me put the entire script here:
> 
> 'set t 1'
> 'set lat 35'
> 'set lon 90'
> 'define T1= T'
> 'set t 2'
> 'set lat 20'
> 'set lon 72'
> 'define T2=T'
> 'define aveT=(T1+T2)*0.5'
> 'd aveT'
> AT=subwrd(result,4)
> say AT
> 
> Again, you can "draw" the most recent value of AT on the map, if you want, converting world coordinates (lon,lat) to (x,y) coordinates. (x,y) are the distance of a (x,y) point from the (0,0), that is, the southwestern point of the display window (in inchs of the GrADS page). For example, assuming your data has 200 x 200 points, you can add these lines in your script:
> 
> 'set x 1 200'
> 'set y 1 200'
> 'd T'
> 'q w2xy 55 81'
> xpoint=subwrd(result,3)
> ypoint=subwrd(result,6)
> 'draw string 'xpoint'? 'ypoint'? 'AT
> 
> This will plot the AT value? at the the point (xpoint,ypoint) over a T field map, where 55 and 81 arethe averages of the longitude and latitude, respectively. Of course, you can chose whatever point you want in the 2D map.
> 
> Greetings,
> Ricardo
> 
> On Tue, 5 Feb 2013 22:44:04 +0800, Muhammad Yunus Ahmad Mazuki wrote
> > The value is calculated properly without doubt. However and 'd T1' in the script won't show in your terminal as far as I know. You have to type 'd T1' in the terminal after the script if you want to see the result. One? of the thing you can do is output the value into a text file that you can open.
> > 
> > On Tue, Feb 5, 2013 at 8:19 PM, T. haghroosta <haghroosta at hotmail.com> wrote:
> > 
> > 
> > Dear Muhammad,
> > ?
> > I don't want to draw variation of a parameter by time. Suppose I wrote this script as Raymond said, the output from this script must be a value or a number with maybe two decimal digits. How can I see this value at the end of running script? 
> > 
> > ?set t 1
> > ?set lat 35
> > ?set lon 90
> > define T1= T
> > set t 2
> > set lat 20
> > set lon 72
> > define T2=T
> > define aveT=(T1+T2)/2
> > d aveT
> > 
> > The command displaye doesn't show anything, but I think script works correctly because I didn't get any errors.
> > ?
> > Regards,
> > ?
> > T.
> > 
> > >
> > > 
> > > Today's Topics:
> > > 
> > > 1. Re: can not show my kml file in google map.!! (mehdi
> > > kebriaee) (mehdi kebriaee)
> > > 2. Re: Average in two different time and locations (T. haghroosta)
> > > 3. Re: Average in two different time and locations
> > > (Muhammad Yunus Ahmad Mazuki)
> > > 4!. Re: Average in two different time and locations
> > > (Muhammad Yunus Ahmad Mazuki)
> > > 
> > > 
> > > ----------------------------------------------------------------------
> > > 
> > > Message: 1
> > > Date: Tue, 5 Feb 2013 08:33:33 +0330
> > 
> > > From: mehdi kebriaee <mehdy.kebriaee at gmail.com>
> > > Subject: Re: [gradsusr] can not show my kml file in google map.!!
> > > (mehdi kebriaee)
> > > To: GrADS Users Forum <gradsusr at gradsusr.org>
> > > Message-ID:
> > > <CAKd_bi9DiQWLiMnyY5JwNH09OQw4ZbAKOoV8OD=tt8xQcoKRuw at mail.gmail.com>
> > > Content-Type: text/plain; charset="iso-8859-1"
> > > 
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="
> > > http://www.google.com/kml/ext/2.2" >
> > > <GroundOverlay >
> > > <viewBoundScale>0.75</viewBoundScale>
> > > <name>hs.kml (m)</name>
> > > <Icon>
> > !> <href>hshs.png</href>
> > > </Icon>
> > > <LatLonBox>
> > > <west>46.975</west>
> > > <east>59.025</east>
> > > <south>22.975</south>
> > > <north>31.025</north>
> > > <rotation>0.0</rotation>
> > > </LatLonBox>
> > > </GroundOverlay>
> > > </kml>
> > 
> > > -------------- next part --------------
> > > An HTML attachment was scrubbed...
> > > URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130205/9ba2258b/attachment-0001.html 
> > > 
> > > ------------------------------
> > > 
> > > Message: 2
> > > Date: Tue, 5 Feb 2013 05:29:00 +0000
> > > From: "T. haghroosta" <haghroosta at hotmail.com>
> > > Subject: Re: [gradsusr] Average in two different time and locations
> > > To: <gradsusr at gradsusr.org>
> > > Message-ID: <DUB121-W16DB3BA967E1663BF3E068DD000 at phx.gbl>
> > > Content-Type: text/plain; charset="windows-1256"
> > 
> > > > 
> > > Dear Raymond, Thank you for your reply. It worked because I didn't get any errors, but in the map window, I didn't also see anything. I would like to see the value of average in grads command page. I used command of say aveT, but it wrote aveT, not the amount of aveT. Can you lead me what I shall do? Regards, T.
> > > 
> > > 
> > > > Hi T.,
> > > > 
> > > > One thing you could do is to assign it to a variable
> > > > 
> > > > set t 1
> > > > set lat 35
> > > > set lon 90
> > > > define T1= T
> > > > set t 2
> > > > set lat 20
> > > > set lon 72
> > > > define T2=T
> > > > 
> > > > define aveT=(T1+T2)/2
> > > > d aveT
> > > > 
> > > > I hope it helps.
> > > > 
> > > > Raymond
> > > > 
> > > > On Mon, Feb 4, 2013 at 4:20 PM, T. haghroosta <haghroosta at hotmail.com>wrote:
> > > > 
> > > > > Dear All,
> > > > >
> > > > >!I would like to write a script for these aims, could you please lead me.
> > > > > Of course I have written some, but I couldn't get a good result.
> > 
> > > > >
> > > > > open a file,
> > > > >
> > > > > set time in 1
> > > > >
> > > > > Read a parameter like T in a special longitude a latitude for example
> > > > > lon=90, lat=35. (T1)
> > > > >
> > > > > Then set time to next step, I mean t=t+1
> > > > >
> > > > > Read parameter T in another special location, like lon= 75, lat= 20. (T2)
> > > > >
> > > > > Then I would like to calculate average of T1 and T2. At the end I want to
> > > > > show the value of the average.
> > > > >
> > > > > Could you please help me?
> > > > >
> > > > > Regards,
> > > > >
> > > > > T.
> > > > >
> > > > > _______________________________________________
> > > > > gradsusr mailing list
> > > > > gradsusr at gradsusr.org> > > http://gradsusr.org/mailman/listinfo/gradsusr
> > > > >
> > > > >
> > > > 
> > > > 
> > > > -- 
> > > > Raymond C. Ordinario
> > 
> > > > MS Atmospheric Science
> > > > Ateneo De Manila University
> > > > Quezon City, Philippines
> > 
> > > > 
> > > > Weather Specialist I
> > > > Technique Application and Meteorological Satellite Section
> > > > Weather DIvision
> > > > Philippine Atmospheric, Geophysical and Astronomical Services Admistration
> > > > Quezon City, Philippines
> > > > -------------- next part --------------
> > > > An HTML attachment was scrubbed...
> > > > URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130205/04a64bc2/attachment-0001.html 
> > > > 
> > > > ------------------------------
> > > > 
> > > > Message: 2
> > > > Date: Tue, 5 Feb 2013 08:27:18 +0330
> > > > From: mehdi kebriaee <mehdy.kebriaee at gmail.com&g!t;
> > > > Subject: Re: [gradsusr] can not show my kml file in google map.!!
> > 
> > > > (mehdi kebriaee)
> > > > To: GrADS Users Forum <gradsusr at gradsusr.org>
> > > > Message-ID:
> > > > <CAKd_bi9LWaGTWkpVqfgp3AXuffPJPXcdfW9iarzsKGaWd_THSA at mail.gmail.com>
> > > > Content-Type: text/plain; charset="iso-8859-1"
> > > > 
> > > > 1-Hi i cant show my kml file in google map
> > 
> > > > but i can see it in google earth!!!!
> > > > do i edit my kml file to show in google map?
> > > > 2- Can i show animation in google map ?how?
> > > > plzz help
> > > > TNQ for All user grads
> > > > -------------- next part --------------
> > > > An HTML attachment was scrubbed...
> > > > URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130205/fc2d1e27/attachment.html 
> > > > -------------- next part --------------
> > > > A non-text attachment was scrubbed...
> > > > Name: ll.kml
> > > > Type: application/vnd.google-earth.kml+xml
> > > > Size: 463!bytes
> > 
> > > > Desc: not available
> > > > Url : http://gradsusr.org/pipermail/gradsusr/attachments/20130205/fc2d1e27/attachment.bin 
> > > > -------------- next part --------------
> > > > A non-text attachment was scrubbed...
> > > > Name: hshs.png
> > > > Type: image/png
> > > > Size: 22352 bytes
> > > > Desc: not available
> > > > Url : http://gradsusr.org/pipermail/gradsusr/attachments/20130205/fc2d1e27/attachment.png 
> > > > 
> > > > ------------------------------
> > 
> > > > 
> > > > _______________________________________________
> > > > gradsusr mailing list
> > > > gradsusr at gradsusr.org
> > > > http://gradsusr.org/mailman/listinfo/gradsusr
> > > > 
> > > > 
> > > > End of gradsusr Digest, Vol 36, Issue 19
> > > > ****************************************
> > > 
> > 
> > > -------------- next part --------------
> > > An HTML attachment was scrubbed...
> > &g!t; URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130205/210087ae/attachment-0001.html 
> > > 
> > > ------------------------------
> > > 
> > > Message: 3
> > > Date: Tue, 5 Feb 2013 15:11:06 +0800
> > > From: Muhammad Yunus Ahmad Mazuki <ukm.yunus at gmail.com>
> > > Subject: Re: [gradsusr] Average in two different time and locations
> > 
> > > To: GrADS Users Forum <gradsusr at gradsusr.org>
> > > Message-ID:
> > > <CAKJBA6YyeN4g5o9wNFBqF+v1NeXvtbKvf05AJhkNNVmR1XWUbw at mail.gmail.com>
> > > Content-Type: text/plain; charset="iso-8859-1"
> > 
> > > 
> > > I believe there's missing information in your request. For example, is T1
> > > is point value in all 4 dimension (x,y,z,t), or is it a 1D value (any one
> > > dimension of x,y,z,t varies e.g. from 1 to 99)? If its point value, it wont
> > > show up in the display window, it will only show up i terminal, which wont
> > > show up if runned by script. You have to use display T1. If what you wanted
> > > was data at certain position of x,y,z or l!ongitude, latitude and altitude,
> > 
> > > and t=1 until t=99, you have to set t as well
> > > 
> > > 'set t 1 99'
> > > 'set x 10'
> > > 'set y 10'
> > > 'set z 10'
> > > 'define T2=T'
> > > 
> > > Then you will get a linear plot of value versus time.
> > > 
> > > Yunus
> > > 
> > > 
> > > On Tue, Feb 5, 2013 at 1:29 PM, T. haghroosta <haghroosta at hotmail.com>wrote:
> > > 
> > > > Dear Raymond,
> > > >
> > > > Thank you for your reply. It worked because I didn't get any errors, but
> > > > in the map window, I didn't also see anything. I would like to see the
> > > > value of average in grads command page. I used command of say aveT, but it
> > > > wrote aveT, not the amount of aveT. Can you lead me what I shall do?
> > > >
> > > > Regards,
> > > >
> > > > T.
> > > >
> > > >
> > > >
> > > > > Hi T.,
> > > > >
> > > > > One thing you could do is to assign!it to a variable
> > 
> > > > >
> > > > > set t 1
> > > > > set lat 35
> > > > > set lon 90
> > > > > define T1= T
> > > > > set t 2
> > > > > set lat 20
> > > > > set lon 72
> > > > > define T2=T
> > > > >
> > > > > define aveT=(T1+T2)/2
> > > > > d aveT
> > > > >
> > > > > I hope it helps.
> > > > >
> > > > > Raymond
> > > > >
> > > > > On Mon, Feb 4, 2013 at 4:20 PM, T. haghroosta <haghroosta at hotmail.com
> > > > >wrote:
> > > > >
> > > > > > Dear All,
> > > > > >
> > > > > > I would like to write a script for these aims, could you please lead
> > > > me.
> > > > > > Of cour! se I have written some, but I couldn't get a good result.
> > > >
> > > > > >
> > > > > > open a file,
> > > > > >
> > > > > > set time in 1
> > > > > >
> > > > > > Read a parameter like T in a s!pecial longitude a latitude for example
> > 
> > > > > > lon=90, lat=35. (T1)
> > > > > >
> > > > > > Then set time to next step, I mean t=t+1
> > > > > >
> > > > > > Read parameter T in another special location, like lon= 75, lat= 20.
> > > > (T2)
> > > > > >
> > > > > > Then I would like to calculate average of T1 and T2. At the end I want
> > > > to
> > > > > > show the value of the average.
> > > > > >
> > > > > > Could you please help me?
> > > > > >
> > > > > > Regards,
> > > > > >
> > > > > > T.
> > > > > >
> > > > > > _______________________________________________
> > > > > > gradsusr mailing list
> > > > > > gradsusr at gradsusr.org
> > > > > > http://gradsusr.org/mailman/listinfo/gradsusr
> > > > > >
> > > > > >
> > > > >
> > &!gt; > >
> > > > > --
> > > > > Raymond C. Ordinario
> > 
> > > > &gt! ; MS Atmospheric Science
> > > > > Ateneo De Manila University
> > > > > Q uezon City, Philippines
> > > >
> > > > >
> > > > > Weather Specialist I
> > > > > Technique Application and Meteorological Satellite Section
> > > > > Weather DIvision
> > > > > Philippine Atmospheric, Geophysical and Astronomical Services
> > > > Admistration
> > > > > Quezon City, Philippines
> > > > > -------------- next part --------------
> > > > > An HTML attachment was scrubbed...
> > > > > URL:
> > > > http://gradsusr.org/pipermail/gradsusr/attachments/20130205/04a64bc2/attachment-0001.html
> > > > >
> > > > > ------------------------------
> > > > >
> > > > > Message: 2
> > > > > Date: Tue, 5 Feb 2013 08:27:18 +0330
> > > > > From: mehdi kebriaee <mehdy.kebriaee at gmail.com>
> > > > > Subject: Re: [gradsus!r] can not show my kml file in google map.!!
> > 
> > > > > (mehdi kebriaee)
> > > > > To: GrADS Users Forum <gradsusr at gradsusr.org>
> > > > > Message-ID:
> > > > > <CAKd_bi9LWaGTWkpVqfgp3AXuffPJPXcdfW9iarzsKGaWd_THSA at mail.gmail.com>
> > > > > Content-Type: text/plain; charset="iso-8859-1"
> > > > >
> > > > > 1-Hi ! i cant show my kml file in google map
> > > > > but i can see it in google earth!!!!
> > > > > do i edit my kml file to show in google map?
> > > > > 2- Can i show animation in google map ?how?
> > > > > plzz help
> > > > > TNQ for All user grads
> > > > > -------------- next part --------------
> > > > > An HTML attachment was scrubbed...
> > > > > URL:
> > > > http://gradsusr.org/pipermail/gradsusr/attachments/20130205/fc2d1e27/attachment.html
> > > > > -------------- next part --------------
> > > > > A non-text a!ttachment was scrubbed...
> > 
> > > > > Name: ll.kml
> > > > > Type: application/vnd.google-earth.kml+xml
> > > > > Size: 463 bytes
> > > > > Desc: not available
> > > > > Url :
> > > > http://gradsusr.org/pipermail/gradsusr/attachments/20130205/fc2d1e27/attachment.bin
> > > > > -------------- next part --------------
> > > > > A non-text attachment was scrubbed...
> > > > > Name: hshs.png
> > > > > Type: image/png
> > > > > Size: 22352 bytes
> > > > > Desc: not available
> > > > > Url : http://gradsusr.org/pipermail/grads!
> > > > usr/attachments/20130205/fc2d1e27/attachment.png
> > > > >
> > > > > --- ---------------------------
> > > >
> > > > >
> > > > > _______________________________________________
> > > > > gradsusr mailing list
> > > > > gradsusr at gradsusr.org
> > > > > http://gradsusr.org/mailman/listinfo/gradsusr
> > > > >
> > > > >
> > > > > End of !gradsusr Digest, Vol 36, Issue 19
> > 
> > > > > ****************************************
> > > >
> > > > _______________________________________________
> > > > 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/20130205/a0123e74/attachment-0001.html 
> > > 
> > > ------------------------------
> > > 
> > > Message: 4
> > > Date: Tue, 5 Feb 2013 15:19:07 +0800
> > > From: Muhammad Yunus Ahmad Mazuki <ukm.yunus at gmail.com>
> > > Subject: Re: [gradsusr] Average in two different time and locations
> > 
> > > To: GrADS Users Forum <gradsusr at gradsusr.org>
> > > Message-ID:
> > > <CAKJBA6ZHVhPYzBkRtfHQinviWONr_eK_FzXsX7ZAYUViNrctmQ at mail.gmail.com>
> > > Content-Type: text/plain; charse!t="iso-8859-1"
> > > 
> > > Actually you can output the point value on the display window so that you
> > 
> > > print the image, but you need some workaround in your script.
> > > 
> > > On Tue, Feb 5, 2013 at 3:11 PM, Muhammad Yunus Ahmad Mazuki <
> > > ukm.yunus at gmail.com> wrote:
> > > 
> > > > I believe there's missing information in your request. For example, is T1
> > > > is point value in all 4 dimension (x,y,z,t), or is it a 1D value (any one
> > > > dimension of x,y,z,t varies e.g. from 1 to 99)? If its point value, it wont
> > > > show up in the display window, it will only show up i terminal, which wont
> > > > show up if runned by script. You have to use display T1. If what you wanted
> > > > was data at certain position of x,y,z or longitude, latitude and altitude,
> > > > and t=1 until t=99, you have to set t as well
> > > >
> > > > 'set t 1 99'
> > > > 'set x 10'
> > > > 'set y 10'
> > > > 'set z 10'
> > > > 'define T2=T'
> > > >
> > > > Th!en you will get a linear plot of value versus time.
> > 
> > > >
> > > > Yunus
> > > >
> > > >
> > > >
> > > > On Tue, Feb 5, 2013 at 1:29 PM, T. haghroosta <haghroosta at hotmail.com>wrote:
> > > >
> > > >> Dear Raymond,
> > > >>
> > > >> Thank you for your reply. It worked because I didn't get any errors, but
> > > >> in the map window, I didn't also see anything. I would like to see the
> > > >> value of average in grads command page. I used command of say aveT, but it
> > > >> wrote aveT, not the amount of aveT. Can you lead me what I shall do?
> > > >>
> > > >> Regards,
> > > >>
> > > >> T.
> > > >>
> > > >>
> > > >>
> > > >> > Hi T.,
> > > >> >
> > > >> > One thing you could do is to assign it to a variable
> > > >> >
> > > >> > set t 1
> > > >> > set lat 35
> > > &!gt;> > set lon 90
> > > >> > define T1= T
> > > &gt;> > set t 2
> > 
> > > >> > set lat 20
> > > >> > set lon 72
> > > >> > define T2=T
> > > >> >
> > > >> > define aveT=(T1+T2)/2
> > > >> > d aveT
> > > >> >
> > > >> > I hope it helps.
> > > >> >
> > > >> > Raymond
> > > >> >
> > > >> > On Mon, Feb 4, 2013 at 4:20 PM, T. haghroosta <haghroosta at hotmail.com
> > > >> >wrote:
> > > >> >
> > > >> > > Dear All,
> > > >> > >
> > > >> > > I would like to write a script for these aims, could you please lead
> > > >> me.
> > > >> > > Of cour! se I have written some, but I couldn't get a good result.
> > > >>
> > > >> > >
> > > >> > > open a file,
> > > >> > >
> > > >> > > set time in 1
> > > >> > >
> > > >> > > Read a paramet!er like T in a special longitude a latitude for example
> > 
> > > >> > > lon=90, lat=35. (T1)
> > > >> > >
> > > >> > > Then set time to next step, I mean t=t+1
> > > >> > >
> > > >> > > Read parameter T in another special location, like lon= 75, lat= 20.
> > > >> (T2)
> > > >> > >
> > > >> > > Then I would like to calculate average of T1 and T2. At the end I
> > > >> want to
> > > >> > > show the value of the average.
> > > >> > >
> > > >> > > Could you please help me?
> > > >> > >
> > > >> > > Regards,
> > > >> > >
> > > >> > > T.
> > > >> > >
> > > >> > > _______________________________________________
> > > >> > > gradsusr mailing list
> > > >> > > gradsusr at gradsusr.org
> > > >> > > http://gradsus!r.org/mailman/listinfo/gradsusr
> > > >> > >
> > > &gt;> > >
> > 
> > > >> >
> > > >> >
> > > >> > --
> > > >> > Raymond C. Ordinario
> > > >> &gt! ; MS Atmospheric Science
> > > >> > Ateneo De Manila University
> > > >> > Q uezon City, Philippines
> > > >>
> > > >> >
> > > >> > Weather Specialist I
> > > >> > Technique Application and Meteorological Satellite Section
> > > >> > Weather DIvision
> > > >> > Philippine Atmospheric, Geophysical and Astronomical Services
> > > >> Admistration
> > > >> > Quezon City, Philippines
> > > >> > -------------- next part --------------
> > > >> > An HTML attachment was scrubbed...
> > > >> > URL:
> > > >> http://gradsusr.org/pipermail/gradsusr/attachments/20130205/04a64bc2/attachment-0001.html
> > > >> >
> > > >> > ------------------------------
> > > >> >!
> > 
> > > >> > Message: 2
> > > >> > Date: Tue, 5 Feb 2013 08:27:18 +0330
> > > >> > From: mehdi kebriaee <mehdy.kebriaee at gmail.com>
> > > >> > Subject: Re: [gradsusr] can not show my kml file in google map.!!
> > > >> > (mehdi kebriaee)
> > > >> > To: GrADS Users Forum <gradsusr at gradsusr.org>
> > > >> > Message-ID:
> > > >> > <CAKd_bi9LWaGTWkpVqfgp3AXuffPJPXcdfW9iarzsKGaWd_THSA at mail.gmail.com>
> > > >> > Content-Type: text/plain; charset="iso-8859-1"
> > > >> >
> > > >> > 1-Hi ! i cant show my kml file in google map
> > > >> > but i can see it in google earth!!!!
> > > >> > do i edit my kml file to show in google map?
> > > >> > 2- Can i show animation in google map ?how?
> > > >> > plzz help
> > > >> > TNQ for All user grads
> > > >> > -------------- next part -------------!-
> > 
> > > >> > An HTML attachment was scrubbed...
> > > &gt;> > URL:
> > 
> > > >> http://gradsusr.org/pipermail/gradsusr/attachments/20130205/fc2d1e27/attachment.html
> > > >> > -------------- next part --------------
> > > >> > A non-text attachment was scrubbed...
> > > >> > Name: ll.kml
> > > >> > Type: application/vnd.google-earth.kml+xml
> > > >> > Size: 463 bytes
> > > >> > Desc: not available
> > > >> > Url :
> > > >> http://gradsusr.org/pipermail/gradsusr/attachments/20130205/fc2d1e27/attachment.bin
> > > >> > -------------- next part --------------
> > > >> > A non-text attachment was scrubbed...
> > > >> > Name: hshs.png
> > > >> > Type: image/png
> > > >> > Size: 22352 bytes
> > > >> > Desc: not available
> > > >> > Url : http://gradsusr.org/pipermail/grads!
> > > >> usr/attachments/20130205/fc2d1e27/attachment.png
> > > >> >
> > > !>> > --- ---------------------------
> > > >>
> > > >> >
> > > >> > _______________________________________________
> > > >> > gradsusr mailing list
> > > >> > gradsusr at gradsusr.org
> > > >> > http://gradsusr.org/mailman/listinfo/gradsusr
> > > >> >
> > > >> >
> > > >> > End of gradsusr Digest, Vol 36, Issue 19
> > > >> > ****************************************
> > > >>
> > > >> _______________________________________________
> > > >> 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/20130205/0c06c546/attachment.html 
> > > 
> > > ------------------------------!
> > > 
> > > _______________________________________________
> > &gt; gradsusr mailing list
> > > gradsusr at gradsusr.org
> > > http://gradsusr.org/mailman/listinfo/gradsusr
> > > 
> > > 
> > > End of gradsusr Digest, Vol 36, Issue 20
> > > ****************************************
> > 
> > _______________________________________________
> > gradsusr mailing list
> > gradsusr at gradsusr.org
> > http://gradsusr.org/mailman/listinfo/gradsusr
> > 
> >
> 
> 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/20130205/c35c0d3f/attachment.html 
> 
> ------------------------------
> 
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
> 
> 
> End of gradsusr Digest, Vol 36, Issue 26
> ****************************************
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130205/c63a906b/attachment-0003.html 


More information about the gradsusr mailing list