
Use this R package as an advanced toolkit for performing Cosmic Microwave Background (CMB) data analytics. The CMB is remnant electromagnetic radiation from the epoch of recombination. As an ancient source of data on the early universe, the CMB is helping us unlock the mysteries of the Big Bang and the structure of time and space. With increasingly high resolution satellite data, intensive investigations in the past few years have resulted in many physical and mathematical results to characterize CMB radiation.
Daniel Fryer, Ming Li and Andriy Olenko, rcosmo: R Package for Analysis of Spherical, HEALPix and Cosmological Data, The R Journal (2020) 12:1, pages 206-225.
rcosmo
addresses various data processing and statistical analysis needs for the present generation of CMB experiments. These needs fall into the following broad categories:
CMBDataFrame
class objects,The current version of rcosmo
includes the following functionality:
corresponding spherical and/or cartesian coordinates, as well as polarization data,
From CRAN:
## Uncomment to install
#install.packages('rcosmo')
library(rcosmo)
View the CMBDataFrame
help file:
?CMBDataFrame
Download a CMB map from NASA archives (which may take some time to download). Then, take an approximately uniform random sample and create an interactive 3D plot:
downloadCMBMap()
sky <- CMBDataFrame("CMB_map_smica1024.fits", sample.size = 1e6)
plot(sky)
Produce a summary of the map:
summary(sky)
Extract a region of the sky:
win <- CMBWindow(theta = c(pi/2,pi/2,pi/3, pi/3), phi = c(0,pi/3,pi/3,0))
sky_win <- window(sky, new.window = win)
plot(sky_win); plot(win)
Summarise the region of the sky:
summary(sky_win)
More documentation on the way, for now view examples in the help files. There are many functions, see:
lsf.str("package:rcosmo")
install.packages('rcosmo')
CMBWindow
is assumed convex.data.frame
HPDataFrame
assumedConvex
boolean of a CMBWindow
CMBDataFrame
CMBWindow
scbind
for CMBDataFramesCMBDataFrame
CMBDataFrame
CMBWindow
HPDataFrame
CMBDataFrame
CMBDataFrame
HPDataFrame
CMBWindow
CMBWindow
sCMBWindow
CMBWindow
CMBDataFrame
HPDataFrame
CMBDataFrame
CMBDataFrame
HPDataFrame
CMBWindow
CMBWindow
HPDataFrame
CMBWindow
HPDataFrame
CMBDataFrame
CMBWindow
HPDataFrame
CMBDataFrame
CMBDataFrame
CMBDat
objectrbind
for CMBDataFramesHPDataFrame
CMBWindow
to a CMBDataFrame