cosmicrays / hermes

HERMES is a publicly available computational framework for the line of sight integration over galactic radiative processes which creates sky maps in the HEALPix-compatibile format.
GNU General Public License v3.0
23 stars 9 forks source link

Problem with Masks #8

Closed danielegaggero closed 3 years ago

danielegaggero commented 3 years ago

The rectangular mask seems to have a problem.

For instance if I set mask_edges = ([5deg, 0deg], [-5deg, 180deg]) mask = RectangularWindow(*mask_edges)

I think I actually get the [0,5*deg] in latitude

adundovi commented 3 years ago

Hi Daniele, maybe I changed the definition and it is not changed in the documentation.

    RectangularWindow(const std::array<QAngle, 2> &latitude,
                      const std::array<QAngle, 2> &longitude);

It is, first, latitude in galactic coordinates, and then longitude in galactic coordinates. Please check if it works.

danielegaggero commented 3 years ago

ok great, it works now! thanks