Closed twshimwell closed 9 months ago
Pushed to master in commit 56b58b8
Note that V maps dont have BMAJ etc so added exception.
try:
header[ch]=hdus[0].header[ch]
# Exception for Stokes V images where dong have a BMAJ
except KeyError:
header[ch]=20.0/3600.0
Shouldn't we leave BMAJ empty if the parent maps don't have one?
Oh so remove from header you think or set to e.g. nan?
No BMAJ/BMIN/BPA at all is the right thing for maps that haven't been deconvolved. We don't deconvolve the V maps right?
Yes we don't...
OK so change the code just to skip the missing keywords with except: pass , I suggest.
Mosaicing undeconvolved maps is --- well, I guess you may get something out of it...
ok ive put an exception in there to pass this part.
I also had to make it so that it can deal with the V cube structure by just copying V from f[0].data[0][1] to f[0].data[0][0] if the V option is given (sorry a bit hacky -- perhaps adding an option to flatten might have been cleaner).
Yeh not sure whether these mosaics will be useful but was going to use them to make a stokes V HIPS.
This seems to all work except that when the V images app/int is done to get the PB then the PB derived isnt right with discrete pixels showing up in the generally smooth PB.
Functionality to do stokes V mosaicing added to mosaic.py and mosaic_pointing.py