<div dir="ltr">Athanasios,<div><br></div><div>How to fix x and y: 'set x 1';'set y 1' (note: it doesn't have to be 1, it can be fixed to any x and y (or lon and lat) in the field)</div><div>Why to fix: gr2stn won't work in your situation if x and y are varying (see GrADS documentation provided previously)</div>
<div><br></div><div>For the 10 sites, you need only to fix x and y once for the same dataset. You specify a site's lon and lat when you do the gr2stn command for each site. To summarize:</div><div><br></div><div>'set gxout print'</div>
<div>'set prnopts ...'</div><div>'set x ...'<br></div><div>'set y ...'</div><div>'set z ....'</div><div>'set t ...'<br></div><div>'d gr2stn(var, lon, lat)' do this in a loop for each timestep</div>
<div><br></div><div>Stephen Mc</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Oct 14, 2013 at 3:54 AM, Athanasios Karagiannidis <span dir="ltr"><<a href="mailto:thankar@live.com" target="_blank">thankar@live.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">Dear Stephen thank you for yor reply.<br><br>I believe that the problem that i do not understand how (and why) to fix x and y. I set z and t at a specific value, but i do not understand why to fix x and y.<br>
I have a grid of one surface variable and want to extract the value of the variable at 10 different station sites. Can i use the GR2STN at the 10 sites? And if i can, how do i fix x and y, as you mentioned?<br><br>Athanasios<br>
<br><pre>Athanasios F. Karagiannidis<br>Physicist, PhD Meteorology and Climatology<br>E-mail: <a href="mailto:thankar@live.com" target="_blank">thankar@live.com</a></pre><br><br><div><hr>Date: Fri, 11 Oct 2013 09:25:53 -0400<br>
From: <a href="mailto:smcmillan@planalytics.com" target="_blank">smcmillan@planalytics.com</a><br>To: <a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>Subject: Re: [gradsusr] Error from GR2STN<br>
<br><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap">Athanasios,</span><div><span style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap">You did not provide set up/dimension information, but be sure both x and y are fixed before doing the command. Also, if time is fixed, use 'set gxout print' and 'set prnopts...' so it will display properly.</span></div>
<div><font face="arial, sans-serif"><span style="white-space:nowrap">For more information, please see documentation and examples at <a href="http://grads.iges.org/grads/gadoc/gradfuncgr2stn.html" target="_blank">http://grads.iges.org/grads/gadoc/gradfuncgr2stn.html</a> .</span></font></div>
<div><font face="arial, sans-serif"><span style="white-space:nowrap"><br></span></font></div><div><font face="arial, sans-serif"><span style="white-space:nowrap">Good luck--</span></font></div><div><font face="arial, sans-serif"><span style="white-space:nowrap">Stephen McMillan</span></font></div>
</div><div><br><br><div>On Fri, Oct 11, 2013 at 7:40 AM, Athanasios Karagiannidis <span dir="ltr"><<a href="mailto:thankar@live.com" target="_blank">thankar@live.com</a>></span> wrote:<br>
<blockquote style="border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">Hello to all. <br>I'm trying to use GR2STN, but i get the following error:<br><br><i>Error from GR2STN: 2nd argument is not a station expression<br>Operation Error: Error from gr2stn function<br>
Error ocurred at column 1<br>DISPLAY error: Invalid expression <br> Expression = gr2stn(tmp2m,21,21)<br></i><br><br>Could anyone help?<br><br>Thanx in advance.<br><br><br><pre>Athanasios F. Karagiannidis<br>Physicist, PhD Meteorology and Climatology<br>
E-mail: <a href="mailto:thankar@live.com" target="_blank">thankar@live.com</a></pre>                                            </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" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>
<pre>***************************************************
The information contained in this e-mail message is intended only for the use of the recipient(s) named above and may contain information that is privileged, confidential, and/or proprietary.
If you are not the intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the sender immediately by e-mail, and delete the original message.
***************************************************
<br>_______________________________________________
gradsusr mailing list
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a></pre></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" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>
<pre>***************************************************
The information contained in this e-mail message is intended only for the use of the recipient(s) named above and may contain information that is privileged, confidential, and/or proprietary.
If you are not the intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the sender immediately by e-mail, and delete the original message.
***************************************************