Andy,<br><br>Yes, I understood your original question...using re() or similar process.  The example steps listed in the &#39;set defval...&#39; documentation will work with regridded fields as with others.  Of course, you will need to display the defined regridded variable to set the scaling environment, in order to use the various query commands such as &#39;q xy2gr&#39; (returns grid coords) and &#39;q xy2w&#39; (returns lon-lat coordinates) in conjunction with the &#39;q pos&#39; command.  Use &#39;q defval...&#39; to get the value at a grid, and &#39;set defval...&#39; to change the value.  Refer to Documentation Index for correct syntax and some examples.<br>
<br>Stephen McMillan<br><br><div class="gmail_quote">On Fri, Jun 11, 2010 at 6:27 PM, Andrew Revering <span dir="ltr">&lt;<a href="mailto:andy@f5data.com">andy@f5data.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-US">

<div>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">This is perfect -- EXCEPT -- that what I&#39;m doing is actually
using GrADS (or maybe its OpenGrads, I&#39;m not sure) to regrid the data into a
new netCDF file. I&#39;m not using GrADS itself for display until after I&#39;ve
combined several NetCDFs into one large NetCDF file. The point of this is so
that I can properly overlay data at the same points (radar data..overlaying
overlapping radar sites).</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">… so right now I&#39;m looking at the data and choosing which
value to use at a specific coordinate given multiple radar sites, but I don&#39;t
know that I can identify what the coordinate is of the data point I&#39;m looking
at using re(). Maybe I&#39;m just not using it properly.</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">What I want to do is know the actual coordinate so I can
identify how far away it is from the radar site, and then with that information
decide if I want to identify the return for that point as ground clutter and
set its value to 0.</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">So in short…. I need something like defval, but I need to
be able to do it during the regridding process, not involving the display in
GrADS. I want to do it before I write out the final NetCDF.</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Thoughts?</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">

<p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a> [mailto:<a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a>] <b>On
Behalf Of </b>Stephen McMillan<br>
<b>Sent:</b> Friday, June 11, 2010 7:00 AM<br>
<b>To:</b> GrADS Users Forum<br>
<b>Subject:</b> Re: [gradsusr] Regridding/Replace Value Question</span></p>

</div><div><div></div><div class="h5">

<p class="MsoNormal"> </p>

<p class="MsoNormal">Andy,</p>

<div>

<p class="MsoNormal">Check out the &#39;set defval...&#39; command in the documentation
index:  <a href="http://www.iges.org/grads/gadoc/gradcomdsetdefval.html" target="_blank">http://www.iges.org/grads/gadoc/gradcomdsetdefval.html</a></p>

</div>

<div>

<p class="MsoNormal">I believe it will do what you want.</p>

</div>

<div>

<p class="MsoNormal"> </p>

</div>

<div>

<p class="MsoNormal" style="margin-bottom: 12pt;">Stephen McMillan</p>

<div>

<p class="MsoNormal">On Thu, Jun 10, 2010 at 10:33 PM, Andrew Revering &lt;<a href="mailto:andy@f5data.com" target="_blank">andy@f5data.com</a>&gt; wrote:</p>

<div>

<div>

<p class="MsoNormal">Is
there a way to replace a grid value during the regridding process using &#39;re()&#39;
or similar function?</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I
need to be able to return a specific coordinate (latitude/longitude) for the
point we&#39;re regridding, along with it&#39;s value and then be able to change the
value at that point.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Andy</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"> </p>

</div>

</div>

<p class="MsoNormal" style="margin-bottom: 12pt;"><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></p>

</div>

<p class="MsoNormal"> </p>

</div>

</div></div><pre>***************************************************</pre><div class="im"><pre>The information contained in this e-mail message </pre><pre>is intended only for the use of the recipient(s) </pre><pre>named above and may contain information that is </pre>
<pre>privileged, confidential, and/or proprietary. </pre><pre>If you are not the intended recipient, you may not</pre><pre>review, copy or distribute this message. If you have</pre><pre>received this communication in error, please notify </pre>
<pre>the sender immediately by e-mail, and delete the original message.</pre><pre>***************************************************</pre><pre> </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>

<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.
***************************************************