<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Daniele,<br>
<br>
Thanks for the help.<br>
<br>
I am still figuring out how to convert my station data into GrADS
binary as I am very new to GrADS. I already posted my problem
yesterday but nobody has answered it yet. <a
href="http://gradsusr.org/pipermail/gradsusr/2010-October/011667.html">http://gradsusr.org/pipermail/gradsusr/2010-October/011667.html</a><br>
<br>
I do not know how to create a binary with more than one surface
variable. I was able to create a binary for one variable only and
most examples I find use only one variable. Now I have three, and
data is hourly. Here's a sample:<br>
<tt>YEAR MO DA HO STNID LATITUDE LONGITUDE
PRESSURE DIR SPEED<br>
2010 09 08 08 98132 20.800283 121.847534
1012.3 160 12<br>
2010 09 08 08 98133 19.283147 121.463012
1008.5 120 8<br>
2010 09 08 08 98134 20.454293 121.963806
1009.2 140 12<br>
2010 09 08 08 98222 17.582765 120.387268
1008.1 220 4<br>
2010 09 08 08 98223 18.185845 120.58239
1006.6 250 10<br>
2010 09 08 08 98232 18.360782 121.658935
1009.5 90 4<br>
2010 09 08 08 98233 17.629364 121.70288
1008.1 0 0<br>
2010 09 08 08 98324 15.328294 119.980087
1007.2 270 2<br>
2010 09 08 08 98325 16.051192 120.333195
1007.3 360 4<br>
2010 09 08 08 98327 16.607768 121.265259
1007.5 190 4</tt><br>
<br>
Thanks again. :-)<br>
<br>
<br>
On Friday, 15 October, 2010 05:52 PM, Daniele Gandini wrote:
<blockquote
id="mid_661886766_57872_1287136334265_JavaMail_root_a-topio-clzm2_ad_arpa_piemonte_it"
cite="mid:661886766.57872.1287136334265.JavaMail.root@a-topio-clzm2.ad.arpa.piemonte.it"
type="cite">
<pre wrap="">Hi Nena.
Here a simple formula to have U and V in m/s from wind speed (velv) and direction (dirv):
'set gxout barb'
'd -velv*cos((dirv-90)/180*3.14);-velv*cos(dirv/180*3.14)'
To display these data with OACRES function first you must create a base grid file
with a "dummy" constant value for example and then you can interpolate wind data:
'vel=oacres(dummy.1,velv.2,4,3,3,1)'
'd vel'
'run cbarn.gs'
Good luck.
Daniele
----- Messaggio originale -----
Da: "Nena Carina Española" <a class="moz-txt-link-rfc2396E" href="mailto:nena@asti.dost.gov.ph"><nena@asti.dost.gov.ph></a>
A: "GrADS Users Forum" <a class="moz-txt-link-rfc2396E" href="mailto:gradsusr@gradsusr.org"><gradsusr@gradsusr.org></a>
Inviato: Venerdì, 15 ottobre 2010 5:32:26
Oggetto: [gradsusr] Visualize Wind Vectors
Hello Guys!
I am trying to create a visualization of the wind vectors. I am not sure where to begin as my data is not split into U and V components. Here's a snippet of the sample data I have. These are from 24 weather stations in the Philippines. Can I also interpolate these scattered data to create a gridded data using the OACRES function?
        Station ID         Latitude         Longitude         Wind Speed (m/s)         Wind Direction (degrees)
        12         15.721279         121.522293         0.8         204
        70         7.135233         124.814758         2.21         148
        72         6.960916         126.212082         6.34         286
        73         9.282162         123.244572         9.6         20
        74         8.997093         124.883595         1.54         85
        75         9.217067         124.713134         3.84         89
Thanks,
Nena
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<font size="1" face="arial"><b>GRID OPERATIONS TEAM</b><br>
Advanced Science & Technology Institute<br>
Department Of Science & Technology<br>
ASTI Bldg., C.P. Garcia Ave., Technology Park Complex<br>
U.P. Campus, Diliman, Quezon City, PHILIPPINES 1101<br>
Tel No: +63 2 4269760<br>
Email: <a href="mailto:nena@asti.dost.gov.ph">nena@asti.dost.gov.ph
</a></font></div>
</body>
</html>