The imaging response mode of responsecreator now supports the options anglebinmode=healpix and anglebinmodeelectron=healpix. Instead of FISBEL, it will use a HEALPix grid of an appropriate order (the pixels will have an area equal or smaller than anglebinwidth^2 and anglebinwidthelectron^2, respectively). The defaults didn't change.
I created an abstract MBinnerSpherical class. Both MBinnerFISBEL and the new MBinnerHEALPix inherit from it. MResponseMatrixAxisSpheric now has a pointer to a MBinnerSpherical object that is initiated appropriately depending on the user inputs.
# Axis name
AN "#nu [deg]" "#lambda [deg]"
# Axis type
AT 2D HEALPix
# Axis data
AD 4 RING
responsemanipulator knows how to handle this axis type.
Caveats and things that might still need to change:
@zoglauer you might had have something cleaner in mine for the Makefile. I added the HEACFLAGS/HEALPIXCFLAGS and HEALIBS/HEALPIXLIBS to CXXFLAGS and LIBS, respectively. I tried to just add them exactly where they are needed but other things fail to link because CommonMisc is every where. Maybe I missed something
Should setup.sh try to install healpix if it is not found? I'm actually confused about this one @zoglauer, I though you had done this already but I couldn't find where it happens.
There are other response types for which we would want to make this change --e.g. polarization. Let's see first if this one works though.
The imaging response mode of
responsecreator
now supports the optionsanglebinmode=healpix
andanglebinmodeelectron=healpix
. Instead of FISBEL, it will use a HEALPix grid of an appropriate order (the pixels will have an area equal or smaller thananglebinwidth
^2 andanglebinwidthelectron
^2, respectively). The defaults didn't change.I created an abstract
MBinnerSpherical
class. BothMBinnerFISBEL
and the newMBinnerHEALPix
inherit from it.MResponseMatrixAxisSpheric
now has a pointer to aMBinnerSpherical
object that is initiated appropriately depending on the user inputs.To test run e.g.
Should result in axes like this one:
responsemanipulator
knows how to handle this axis type.Caveats and things that might still need to change:
HEACFLAGS
/HEALPIXCFLAGS
andHEALIBS
/HEALPIXLIBS
toCXXFLAGS
andLIBS
, respectively. I tried to just add them exactly where they are needed but other things fail to link because CommonMisc is every where. Maybe I missed somethingsetup.sh
try to install healpix if it is not found? I'm actually confused about this one @zoglauer, I though you had done this already but I couldn't find where it happens.