Re: replace data

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Sat, 19 Jul 2008 06:53:32 -0600

Hello, No loop necessary

    X = where (X.eq.0, -999, X)
    X@_FillValue = -999

http://www.ncl.ucar.edu/Document/Functions/Built-in/where.shtml

Good luck
===================
bahadir emral wrote:
> Dear NCL
> I have single column data set and want to replace 0(zero values) with
> -999.I tried to system(echo) command.
> My data name is X
> do i=0,100
> if(X(i).eq.0) then
> system("echo "+"-999"+" "+">>"+"newfile.txt")
> end if
> end do
> but i have an error, how can replace zero values with -999.

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sat Jul 19 2008 - 06:53:32 MDT

This archive was generated by hypermail 2.2.0 : Mon Jul 21 2008 - 14:41:34 MDT