banzai
banzai copied to clipboard
allow multiplying images where GAIN etc is not set
Multiplying an image by a constant crashes with a KeyError if GAIN, SATURATE, or MAXLIN are not set in the headers. This switches the multiplication method to using the gain, saturate, and max_linearity properties, which have an appropriate default set.