Output unit selection broken in many cases
Data reduction and imaging for select astronomical cameras
Brought to you by:
micimacko
Selecting non-default output units (e.g. 'Jy/pixel', or 'MJy/sr') did not work as expected, producing unexpected scaling in output maps. There are two specific and unrelated issues behind the erroneous behavior:
The 'pixel' unit, representing the area of a map pixel, was not propagated to all instances of the source map, being correct in some places but not others.
Units with standard multiplier prefixes, e.g. 'mJy', 'MJy', 'uK', were not properly parsed and implemented, and did not work properly.
Neither issue affects the default 'Jy/beam' outputs, and both issues are fixed in 2.40-2.
Diff: