<div dir="ltr"><div>Use the const() function, and optionally use maskout() to control which values get set to 1000.<br><br></div>Jeff Duda<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 14, 2015 at 8:54 AM, Аня Романенко <span dir="ltr"><<a href="mailto:romashe4ka04@rambler.ru" target="_blank">romashe4ka04@rambler.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p> Hi to all!</p>
<p>I need to rewrite some array (which is written in .dat file) and some elements of definite value in array I want to leave former, but all other elements must be equal 1000. How I can do this?</p>
<p>I can only rewrite array in such a way that all elements will be equal 1000</p>
<p>For ex.:</p>
<p>'open top_bas_4km_1m_2f.ctl'</p>
<p>'set gxout fwrite'</p>
<p>'set fwrite topo_const.dat'</p>
<p>'d h.1-h.1+1000'</p>
<p>'disable fwrite' </p>
<p>(h - variable in first file)</p>
<div>
<p></p>
<p>Thanks in advance,Lukianova Ann.</p>
</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><br clear="all"><br>-- <br><div class="gmail_signature">Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br></div>
</div>