allow missing values for upscaling

Missing values need to be handled during upscaling, weights need to be adjusted accordingly.

Edited by Robert Schweppe