MA - math operations do not preserve fill_value

Nov. 6, 2001
1:15 p.m.
Using Python 2.1 and Numeric 20.2.1 on Redhat Linux 7.1 Shouldn't masked arrays preserve the fill value of their operands, if both operands have the same fill value? Otherwise, if I want to preserve the value of the fill_value, I have to write expressions like: d=masked_values((a+b),a.fill_value()) Here's a demonstration of the problem:
a = masked_values((1.0,2.0,3.0,4.0,-999.0), -999) b = masked_values((-999.0,1.0,2.0,3.0,4.0), -999)
8534
Age (days ago)
8534
Last active (days ago)
0 comments
1 participants
participants (1)
-
Joe Van Andel