I was trying to be clever last night - I wanted to paste two versions of the same data, side-by-side, into a new image, twice the pixel-width of the original.
Obviously, I could have done this in any of the common 'Paint' programs, but I wanted to be able to achieve this whilst still maintaining the original dynamic data range inherent to the FITS format.
So, I created a 'clone' of (one of) the images - by dragging its name tag to the workspace background. I then used <Processes><Geometry><Resample> and un-clicked <Preserve Aspect Ratio>, and then set <Width><%> to 200, and dropped the instance on the cloned image.
Then I went to PixelMath and used the following expression in the RGB/K line
iif(x()<width($T)/2,pixel(HaRGB_final,x(),y()),pixel(RGB_final,x()-width($T)/2,y()))
(I left everything else at the default settings)
The intention here was to use data from the HaRGB image when the pixel position (i.e. 'x') was LESS than 'half-way' across the target image, and the RGB image when the pixel position was 'beyond' the half-way position.
This certainly gave me two images 'side-by-side', with the HaRGB version on the left half, and the RGB (only) version on the right-hand side.
But this is where I seemed to be having a problem. The right-hand side of the new image was identical to the RGB image - and was 'full colour'. But the left-hand side - although 'the same' as the HaRGB image, was in 'mono', seemingly all three colour channels contained 'the same' information - I don't know whether the Rd, Gn and Bu channels were 'all' copied into each channel - it was too difficult to tell.
But I was able to 'fix' the problem with a second PixelMath expression, as follows (again, just using default values, and entering the expression in the RGB/K line)
iif(x()<width($t)/2,pixel(HaRGB_final,x(),y()),$T)
This time I WAS able to get the HaRGB data to appear on the left-hand side of the image, and found (by experimenting) that if I just left the right-hand side 'alone' (by re-using the $T data) I could achieve what I wanted - but by a far more convoluted process.
My question is, "Am I just trying too hard

, or is there a problem with the initial expression that I was trying to use?

"
Any suggestions?