<div dir="ltr">I only have the wind-direction (units are compass direction, e.g. SSW) and speed (units mph). If I set gxout model, how would I get u/v components? </div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 19, 2016 at 3:20 AM, Jayakrishnan P.R <span dir="ltr">&lt;<a href="mailto:prjayakrishnan@gmail.com" target="_blank">prjayakrishnan@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Just made some modifications with your file. You can try with the attached files. <br></div>First run the fortran. Then C program. Then run the command stnmap -i clim.ctl to create station map. Then open grads.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 18, 2016 at 8:04 PM, itesh dash <span dir="ltr">&lt;<a href="mailto:itesh@rimes.int" target="_blank">itesh@rimes.int</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Davies, <div><br></div><div>You can user the cookbook recipe:005 . I found it very useful.<div><br></div><div><a href="http://cookbooks.opengrads.org/index.php?title=Recipe-005:_Creating_GrADS_binary_station_data_from_ASCII" target="_blank">http://cookbooks.opengrads.org/index.php?title=Recipe-005:_Creating_GrADS_binary_station_data_from_ASCII</a><br></div><div><br></div><div>just copy the stngrads.cpp file and the station.h file to local directory and compile with g++ or any c++ compiler</div><div><br></div><div>like g++ stationgrads.cpp -o stngrads</div><div><br></div><div>this will generate the executable stngrads</div><div><br></div><div>then use it as</div><div><br></div><div>./stngrads stationfile.txt station.bin L/U ( L for lat/long and U for UTM)</div><div><br></div><div>Attached are both files and the executable also. </div><div><br></div><div>Thanks to the original developer. It was very useful for me.<br></div><div><br></div><div>PS: make sure your Lat Lon column are in the correct order. Thats may be a reason stations being plotted at wrong location.</div><div><br></div><div>Afterwards, you can use the oacres function to interpolate and view the data to model grid if thats something you want to do.</div><div><br></div><div>Hope this is helpful.<br></div><div><br></div><div>Regards,<br>itesh</div><div><br></div></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 18, 2016 at 7:01 PM, Thomas Davies <span dir="ltr">&lt;<a href="mailto:tsd.davies@gmail.com" target="_blank">tsd.davies@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I just tried to run station2modelgrid.c on the above text file, however when I plot in GrADS there are only 2 values in the wrong place<div><br></div><div><img src="cid:ii_iks7v4jy1_152f4414c77cc6b6" height="422" width="562"><br>​<br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 18, 2016 at 11:56 AM, Thomas Davies <span dir="ltr">&lt;<a href="mailto:tsd.davies@gmail.com" target="_blank">tsd.davies@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Do you mean like the attached file?</div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 18, 2016 at 2:15 AM, Jayakrishnan P.R <span dir="ltr">&lt;<a href="mailto:prjayakrishnan@gmail.com" target="_blank">prjayakrishnan@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I think the problem is with the exact reading of the text file and writing as binary file due to formatting. Could you send me the unformatted text file may be like this. I have done this without formatting as your case.<span><div><b style="font-size:12.8px">2016 02 17 22 station1 60.749 -0.854 1005 </b></div><div><b style="font-size:12.8px">2016 02 17 22 station2 60.139 -1.183 1006 </b></div><div><b style="font-size:12.8px">2016 02 17 22 </b><b style="font-size:12.8px">station3 60.447 -1.277 950  </b><br></div></span></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Thu, Feb 18, 2016 at 7:04 AM, Thomas Davies <span dir="ltr">&lt;<a href="mailto:tsd.davies@gmail.com" target="_blank">tsd.davies@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi,<div><br></div><div>I am trying to plot station data recieved from UKMO datapoint. I have written the data to a text file like this (Following the tutorial here: <a href="http://cookbooks.opengrads.org/index.php?title=Recipe-013:_Gridding_and_Plotting_Station_Data" target="_blank">http://cookbooks.opengrads.org/index.php?title=Recipe-013:_Gridding_and_Plotting_Station_Data</a>):</div><div><br></div><div><b>2016 02 17 22 station1 60.749 -0.854 1005 2016 02 17 22 station2 60.139 -1.183 1006 2016 02 17 22 station3 60.447 -1.277 950 2016 02 17 22 station4 60.111 -2.063 1004 2016 02 17 22 station5 58.954 -2.9 1006 2016 02 17 22 station6 58.214 -6.325 1004 2016 02 17 22 station7 57.725 -4.896 1007 2016 02 17 22 station8 57.859 -5.636 1006 2016 02 17 22 station9 57.257 -5.809 1007 2016 02 17 22 station10 57.4175 -5.689 950 2016 02 17 22 station11 58.288 -4.442 1006 2016 02 17 22 station12 56.867 -4.708 1009 2016 02 17 22 station13 57.819 -3.966 1007 2016 02 17 22 station14 57.206 -3.827 1008 2016 02 17 22 station15 57.116 -3.642 950 2016 02 17 22 station16 57.6494 -3.5606 1007 2016 02 17 22 station17 57.712 -3.322 1007 2016 02 17 22 station18 58.454 -3.089 1006 2016 02 17 22 station19 57.077 -2.836 1009 2016 02 17 22 station20 57.206 -2.202 1008 2016 02 17 22 station21 56.497 -6.887 1007 2016 02 17 22 station22 55.681 -6.256 1009 2016 02 17 22 station23 55.441 -5.699 1009 2016 02 17 22 station24 54.859 -4.936 1011 2016 02 17 22 station25 55.907 -4.533 1010 2016 02 17 22 station26 55.515 -4.585 1010 2016 02 17 22 station27 56.326 -3.729 1009 2016 02 17 22 station28 56.423 -4.32 950 2016 02 17 22 station29 54.803 -4.008 1010 2016 02 17 22 station30 55.627 -3.735 1010 2016 02 17 22 station31 55.709 -2.383 1009 2016 02 17 22 station32 55.928 -3.343 1009 2016 02 17 22 station33 56.377 -2.862 1009 2016 02 17 22 station34 54.0849 -4.6321 1011 2016 02 17 22 station35 54.5181 -3.615 1011 2016 02 17 22 station36 54.614 -3.157 1011 2016 02 17 22 station37 54.125 -3.257 1010 2016 02 17 22 station38 54.933 -2.963 1010 2016 02 17 22 station39 55.05 -2.553 1010 2016 02 17 22 station40 54.501 -2.684 1011 2016 02 17 22 station41 54.572 -2.413 1010 2016 02 17 22 station42 54.684 -2.45 950 2016 02 17 22 station43 55.285 -2.279 1010 2016 02 17 22 station44 55.02 -1.88 1009 2016 02 17 22 station45 55.421 -1.6 1009 2016 02 17 22 station46 54.204 -1.39 1010 2016 02 17 22 station47 54.563 -0.863 1009 2016 02 17 22 station48 54.362 -0.673 950 2016 02 17 22 station49 54.094 -0.174 1008 2016 02 17 22 station50 53.252 -4.537 1011 <br></b></div><div><br></div><div>I wrote it in the exact same format as the link above and ran station2modelgrid.c (using TCC compiler for windows), as well as stnmap with this descriptor file:</div><div><br></div><div><div><b>DSET ^station.dat</b></div><div><b>DTYPE station</b></div><div><b>STNMAP ^station.map</b></div><div><b>UNDEF -999.0</b></div><div><b>TITLE station data test</b></div><div><b>TDEF 1 linear 22Z17FEB2016 1mo</b></div><div><b>VARS 1</b></div><div><b>slp  0  99  SLP</b></div><div><b>ENDVARS</b></div></div><div><b><br></b></div><div>However when I open station.ctl in GrADS and plot the slp variable no values are displayed. I have tried changing the format of the text file/C-script however nothing has worked for me. </div><div><br></div><div>If anybody can spot a problem or provide an alternative C script with notes about the text file formatting (I don&#39;t know any C or Fortran)</div><div><br></div><div>Thanks in advance.</div></div>
<br></div></div>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div style="font-size:12.8px">Sincerely</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">**************************************************</div><div style="font-size:12.8px">Dr. Jayakrishnan P.R</div><div style="font-size:12.8px">Post Doctoral Research Fellow</div><div style="font-size:12.8px">C308, Institute of Ocean and Earth Sciences (IOES)</div><div style="font-size:12.8px">University of Malaya</div><div style="font-size:12.8px">50603, Kuala Lumpur</div><div style="font-size:12.8px">Tel: <a href="tel:%28%2B603%29%207967%204640" value="+60379674640" target="_blank">(+603) 7967 4640</a> / 6995</div><div style="font-size:12.8px">Mobile: 012-3526094</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">****************************************************</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><span style="color:rgb(7,55,99)"><font size="1"><br></font></span></div><div style="font-size:12.8px"><span style="color:rgb(7,55,99)"><font size="1"><br></font></span></div><div style="font-size:12.8px"><br></div></div></div>
</div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div><div dir="ltr"><div style="font-size:12.8px">Sincerely</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">**************************************************</div><div style="font-size:12.8px">Dr. Jayakrishnan P.R</div><div style="font-size:12.8px">Post Doctoral Research Fellow</div><div style="font-size:12.8px">C308, Institute of Ocean and Earth Sciences (IOES)</div><div style="font-size:12.8px">University of Malaya</div><div style="font-size:12.8px">50603, Kuala Lumpur</div><div style="font-size:12.8px">Tel: <a href="tel:%28%2B603%29%207967%204640" value="+60379674640" target="_blank">(+603) 7967 4640</a> / 6995</div><div style="font-size:12.8px">Mobile: 012-3526094</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">****************************************************</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><span style="color:rgb(7,55,99)"><font size="1"><br></font></span></div><div style="font-size:12.8px"><span style="color:rgb(7,55,99)"><font size="1"><br></font></span></div><div style="font-size:12.8px"><br></div></div></div>
</div>
</div></div><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>