downloadCMBMap: Download CMB Maps from Planck Public Data Release.

Description Usage Arguments Details Value References Examples

View source: R/Downloaders.R

Description

The function downloadCMBMap downloads CMB maps from http://irsa.ipac.caltech.edu/data/Planck/release_2/all-sky-maps/matrix_cmb.html.

Usage

1
downloadCMBMap(foreground = "smica", nside = 1024, destfile)

Arguments

foreground

A string naming the foreground separation method pipeline. Please choose one of "COMMANDER", "NILC", "SEVEM" or "SMICA" (not case sensitive).

nside

An integer. The nside parameter (resolution) required. The available options are 1024 or 2048.

destfile

An optional character string with the path and file name for the downloaded file to be saved. Defaults to the working directory. Tilde-expansion is performed.

Details

CMB maps have been produced by the COMMANDER, NILC, SEVEM, and SMICA pipelines, respectively.

For each pipeline, the intensity maps are provided at Nside = 2048, at 5 arcmin resolution, and the polarization maps are provided at Nside = 1024 at 10 arcmin resolution.

Value

CMB Map FITS File (Flexible Image Transport System). The FITS file can be loaded into a CMBDataFrame using the CMBDataFrame function (see examples).

References

Planck Public Data Release 2 Maps http://irsa.ipac.caltech.edu/data/Planck/release_2/all-sky-maps/matrix_cmb.html

Other fits maps can also be downloaded using the general command download.file.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Download SMICA with \code{nside = 1024}
## and save in working directory
## as "CMB_map_smica1024.fits"
# downloadCMBMap(foreground = "smica", nside = 1024)
## Load the downloaded map into a CMBDataFrame
# sky <- CMBDataFrame("CMB_map_smica1024.fits")

## Download SMICA with Nside=2048 and save in the working directory
## as "CMB_map_smica2048.fits"
# downloadCMBMap(foreground = "smica", nside = 2048)

## Download COMMANDER with Nside=1024 and save in a specified folder,
## for example,
# dest <- "CMB_map_commander1024.fits"
# downloadCMBMap(foreground = "commander", nside = 1024, destfile = dest)

rcosmo documentation built on Feb. 14, 2020, 5:06 p.m.