lpsinger / ligo-virgo-emfollowup-tutorial

Replaced by https://emfollow.docs.ligo.org/userguide/
6 stars 2 forks source link

Healpix contour plot function #4

Closed ggreco77 closed 5 years ago

ggreco77 commented 8 years ago

A paragraph that explains how to make contour plot in a Healpix skymap is recommended. Even better a function that would do this with a single command line based on _healpy.get_interpval.

Thanks, Giuseppe

lpsinger commented 8 years ago

What a coincidence. I just wrote a native HEALPix contouring algorithm because I needed paths that had the correct topology regardless of map projection boundaries.

ggreco77 commented 8 years ago

Great coincidence. The _bayestar_contourallsky function is part of LALInference. Can I use pip to install such module?

lpsinger commented 8 years ago

No.

ggreco77 commented 8 years ago

https://www.lsc-group.phys.uwm.edu/daswg/docs/howto/lal-install.html for installing LALSuite software.

A version without the above dependency could be achieved by changing i) prob, = fits.read_skymap(infilename, nest=True) --> _prob = hp.readmap(infilename, nest=True) ii) inclosing postprocess.py from http://software.ligo.org/docs/lalsuite/lalinference/postprocess_8py_source.html iii) and commenting the Smooth option.