mhardcastle / ddf-pipeline

LOFAR pipeline using killms/ddfacet
GNU General Public License v2.0
24 stars 20 forks source link

add V mosaicing #235

Closed twshimwell closed 9 months ago

twshimwell commented 3 years ago

Functionality to do stokes V mosaicing added to mosaic.py and mosaic_pointing.py

twshimwell commented 3 years 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
mhardcastle commented 3 years ago

Shouldn't we leave BMAJ empty if the parent maps don't have one?

twshimwell commented 3 years ago

Oh so remove from header you think or set to e.g. nan?

mhardcastle commented 3 years ago

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?

cyriltasse commented 3 years ago

Yes we don't...

mhardcastle commented 3 years ago

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...

twshimwell commented 3 years ago

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.

twshimwell commented 3 years ago

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.