I want to get the position in a masked array. Like this
wt[chl > 10] = 3
wt[(chl < 10) & (chl > 5)] = 2
wt[(chl < 5)] = 1
wt[(chl is masked )]=0
wt and chl is in the same shape. I want to give wt value according to the value and attribute(masked or not) of chl.
Does anyone know what I should do?
Thank you in advance.