<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi WSC,<div><br></div><div>The -w option is something I added to sm_nearneighbor to allow for the output of the sum of the weights of the data at each grid point in the output. This is needed to both normalize the weighted average and to produce the map of total uncertainty. $nnwgto is the weights of the native observations, and $nnwgtc is the weights of the converted observations. The weight of the GMPE is derived elsewhere.&nbsp;</div><div><br></div><div>To see the relative weight of the GMPE, and the native and converted observations, run grind with the -rcg option and then run the program view_rcg to plot the results. The output will be in PostScript files in the event's richter directory with names &lt;param&gt;_&lt;type&gt;_contrib.grd, where &lt;param&gt; is one of "mi" (macroseismic intensity), "pga" or "pgv," and &lt;type&gt; is one of "obs," "conv," or "ests" for the weights of the native observations, the converted observations, or the GMPE estimates, respectively.</div><div><br></div><div>Bruce</div><div><br></div><div><br><div><div>On Dec 7, 2010, at 7:51 PM, WSC wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi,<br><br>I konw the sm_nearneighbor is base on GMT`s nearneighbor,<br>but the "nearneighbor" in GMT do not&nbsp; have a -w(in lower case) option ,<br>I just know it is used to compute the pga_rock.grd(or pgv_rock.grd) with sm_nearneighbor`s <br>-G ouput,but I dont know what it is.<br>&nbsp;so what`s&nbsp; the output of SM`s sm_nearneighbor with -w(in lower case)option??<br><br>codes in grind maybe at line&nbsp; 1340 :<br>$cmd = "$cfname -G$nnoutc -W -w$nnwgtc $grdpars -S$gmroi "<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; . "-D$gmdecay -E0 -N16/1";<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print STDERR "Running 'sm_nearneighbor $cmd'\n" if $debug;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; `$shakebin/sm_nearneighbor$v $cmd`;<br><br>Yes, I want to know what $nnwgtc is here!<br><br><br>Thanks,<br>WSC<br>        <br><br><span title="neteasefooter"><span id="netease_mail_footer"><hr> <a href="http://help.163.com/special/007525G0/163mail_guide.html?id=2716" target="_blank">网易163/126邮箱百分百兼容iphone ipad邮件收发</a> </span></span>_______________________________________________<br>Shake-dev mailing list<br><a href="mailto:Shake-dev@geohazards.usgs.gov">Shake-dev@geohazards.usgs.gov</a><br>https://geohazards.usgs.gov/mailman/listinfo/shake-dev<br></blockquote></div><br></div></body></html>