getMaxFlags
When you pass an array of 3 flaggs to getMaFlags and the two first elements of this array are missing values (-9999), the returned maxFlag for the third element is also a -2 (indicating a -9999 for the third element has also been passed)