[Thread Prev][Thread Next][Index]

[ferret_users] regarding if-then-else mask



Dear Ferreters,

I am trying to extract enso index for magnitude >= 1 and < 1.5 but strangely it is doing something else that I am unable to understand. this is the steps for my masking

use nino34_new.nc

let nino1 = nino34

! for moderate enso !

let elnino1 = if (nino1 ge 1.0 and nino1 lt 1.5) then nino1
let lanina1 = if (nino1 le -1.0 and nino1 gt -1.5) then nino1

list elnino1, lanina1

but if I do the masking like this

let elnino1 = if nino1 ge 1.5 then nino1  ! strong enso

or

let elnino1 = if nino1 ge 1.0 then nino1  ! moderate + strong

then it works correctly and

Attachment: nino34_new.nc
Description: Cdf file


[Thread Prev][Thread Next][Index]