boss_mask_utils
multiprobe_framework.boss_mask_utils
¶
perturb_radec(Nside, ra, dec)
¶
An issue with Mangle is that when a ra,dec is exactly on top of a mangle pixelization line, then polyid fails. This typically happens for healpix pixels in EQU as the Mangle simple pixelization basically lies on top of some of the healpix pixel centers. This function thus slightly perturbs the given radec (typically those of the hpx center). add a random value to the ra, generated from a Gaussian with sigma = size of the hpxpixel/ 100. (From https://github.com/aurelienbl/pylib/blob/master/Man2Hpx/m_utils.py )
Source code in src/multiprobe_framework/boss_mask_utils.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | |
get_hp_coord_radec(Nside, Nest)
¶
Gets the coords of the center of Healpix pixels given a certain Nside.
Source code in src/multiprobe_framework/boss_mask_utils.py
25 26 27 28 29 30 31 32 33 34 | |
make_mask_EQU(Mangle_File, Nside, Nest)
¶
Converts the mangle file to a healpix map in Equatorial coordinates
Source code in src/multiprobe_framework/boss_mask_utils.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | |
gen(MIN, MAX)
¶
get the Nsides
Source code in src/multiprobe_framework/boss_mask_utils.py
78 79 80 81 82 83 84 85 | |
unseen2zeros(mask)
¶
Simple function to turn an input mask into a binary mask.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mask
|
the input mask |
required |
Returns:
| Type | Description |
|---|---|
|
a binary version of the input mask |
Source code in src/multiprobe_framework/boss_mask_utils.py
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | |