Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double check the use of weights in polarization maps #540

Closed
lucabaldini opened this issue Sep 21, 2022 · 0 comments
Closed

Double check the use of weights in polarization maps #540

lucabaldini opened this issue Sep 21, 2022 · 0 comments
Assignees

Comments

@lucabaldini
Copy link
Owner

Dear Luca,

Thank you very much for adding the weighting application and the plot.

I’ve updated the ixpeobssim and tried the xpaddmodfweight app. It works well and generates new events files with a W_MODF column!

For a quick test, I used the following lines to generate Stokes cubes and polarization maps, as I did before. But I cannot see any difference between the obtained images and those without weighting. I am still checking and will try to figure out the problems. I understand that you are busy in recent days. In case you can quickly find a problem with my script, please kindly let me know. 

def make_pmap_cube():
        """Create the Stokes cubes.
        """
        file_list = get_sim_files()
        suffix='%s_%skev_%sarcs_pmap_cube' %(E_BINNING[0], E_BINNING[1], pixsize)
        pipeline.xpbin(*file_list, algorithm='PMAPCUBE', ebinalg='LIST', 
                       ebinning=E_BINNING,npix=npix, overwrite=True,
                       weights=True, weightcol='W_MODF',
                       suffix=pipeline.suffix(suffix))

def plot_pmap_cube():
        """Open the PMAP files and run the standard plot.
        """
        file_list = get_pmap_cube_files()
        pmap_cube = xBinnedPolarizationMapCube.from_file_list(file_list)
        NUM_SIGMA=3.0
        pmap_cube.plot_polarization_angle(num_sigma=NUM_SIGMA)

Thanks,

Ping

Original url: https://bitbucket.org/ixpesw/ixpeobssim/issues/540
Created on 2022-01-27T09:10:13.927897+00:00

@lucabaldini lucabaldini self-assigned this Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant