[gradsusr] Average in two different time and locations

T. haghroosta haghroosta at hotmail.com
Tue Feb 5 07:19:04 EST 2013


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>
> > 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...
> 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 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'
> 
> 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 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
> > &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...
> > > 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/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; charset="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'
> >
> > 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 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
> >> &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...
> >> > 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 
> 
> ------------------------------
> 
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
> 
> 
> End of gradsusr Digest, Vol 36, Issue 20
> ****************************************
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130205/d6133bc6/attachment-0003.html 


More information about the gradsusr mailing list