Hi John,
I tried this out and it seems to work just fine! Many thanks for this, its really appreciated.
By the way, will it only save files in fit format? I changed the extension to tif but it seems to ignore it and always write to a fit extension.
Cheers
Simon