[ncl-talk] Fixing maximum and minimum value

Guilherme Martins jgmsantos at gmail.com
Thu Jul 24 15:09:24 MDT 2014


Hi all,

I'd like to obtain some tips about a question I have.

I have positive and negative values (for example, -300 up to 300), but I
want to limit the values for a range of values, for example, -100 up to 100.

I used the "where" function  but I didn't obtain what I want.

Does anyone has some tip?

What I want:

where

value(columnxrow) .gt. 100, 100, value(columnxrow)
value(columnxrwm) .lt. -100, -100, value(columnxrwm)

My dataset is : column x row

Thanks a lot,

Guilherme.


-- 
https://sites.google.com/site/jgmsantos/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140724/cf36ef43/attachment.html 


More information about the ncl-talk mailing list