[gradsusr] question about elements in array
Jeff Duda
jeffduda319 at gmail.com
Wed Oct 14 10:15:09 EDT 2015
Use the const() function, and optionally use maskout() to control which
values get set to 1000.
Jeff Duda
On Wed, Oct 14, 2015 at 8:54 AM, Аня Романенко <romashe4ka04 at rambler.ru>
wrote:
> Hi to all!
>
> 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?
>
> I can only rewrite array in such a way that all elements will be equal 1000
>
> For ex.:
>
> 'open top_bas_4km_1m_2f.ctl'
>
> 'set gxout fwrite'
>
> 'set fwrite topo_const.dat'
>
> 'd h.1-h.1+1000'
>
> 'disable fwrite'
>
> (h - variable in first file)
>
> Thanks in advance,Lukianova Ann.
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
--
Jeff Duda
Graduate research assistant
University of Oklahoma School of Meteorology
Center for Analysis and Prediction of Storms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20151014/3074a359/attachment.html
More information about the gradsusr
mailing list