-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
50 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
[pixwin] | ||
git-tree-sha1 = "d11923cfa0b2d87d5bb8898ea574b8a9b2a114fc" | ||
[plancklowres] | ||
git-tree-sha1 = "55aefe5af2a7c81db192de15d553ab00da56ca58" | ||
lazy = true | ||
|
||
[[pixwin.download]] | ||
url = "https://github.com/xzackli/HEALPix_data/raw/master/pixwin.tar.gz" | ||
sha256 = "986792ca52a53d8cf34b2e0fa18d5c1a9aebdfd0167edfb1fc472daf1965ab07" | ||
[[plancklowres.download]] | ||
url = "https://github.com/xzackli/PSPipePlanckRender.jl/releases/download/v0.1/plancklowres.tar.gz" | ||
sha256 = "8e420d81db37d3d2ae93390e927cd20400a08bef018ca8ed81e079bbd3b0f4e7" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
using Healpix | ||
using AngularPowerSpectra | ||
|
||
AngularPowerSpectra.util_planck256_dir() | ||
|
||
m₁ = util_planck256_polmap("100", "1") | ||
m₂ = util_planck256_polmap("100", "2") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# example data (udgrade to nside 256 of the Planck 2018 maps) | ||
|
||
function util_planck256_dir() | ||
rootpath = artifact"plancklowres" | ||
return rootpath | ||
end | ||
|
||
|
||
function util_planck256_map(freq, split, col, type::Type=Float64) | ||
rootpath = artifact"plancklowres" | ||
fname = "nside256_HFI_SkyMap_$(freq)_2048_R3.01_halfmission-$(split).fits" | ||
return readMapFromFITS(joinpath(rootpath, "plancklowres", "maps", fname), col, type) | ||
end | ||
|
||
function util_planck256_polmap(freq, split, type::Type=Float64) | ||
return PolarizedMap( | ||
util_planck256_map(freq, split, 1, type), | ||
util_planck256_map(freq, split, 2, type), | ||
util_planck256_map(freq, split, 3, type)) | ||
end | ||
|
||
function util_planck256_maskT(freq, split, type::Type=Float64) | ||
rootpath = artifact"plancklowres" | ||
fname = "nside256_COM_Mask_Likelihood-temperature-$(freq)-hm$(split)_2048_R3.00.fits" | ||
return readMapFromFITS(joinpath(rootpath, "plancklowres", "masks", fname), 1, type) | ||
end | ||
|
||
function util_planck256_maskP(freq, split, type::Type=Float64) | ||
rootpath = artifact"plancklowres" | ||
fname = "nside256_COM_Mask_Likelihood-polarization-$(freq)-hm$(split)_2048_R3.00.fits" | ||
return readMapFromFITS(joinpath(rootpath, "plancklowres", "masks", fname), 1, type) | ||
end |