View source: R/CMBDataFrameGenerics.R
| pix.CMBDataFrame | R Documentation | 
CMBDataFrameIf new.pix is unspecified then this function returns the vector of
HEALPix pixel indices from a CMBDataFrame. If new.pix is specified then
this function returns a new CMBDataFrame with the same number of rows
as cmbdf, but with pix attribute new.pix. Thus,
new.pix must have length equal to nrow(cmbdf).
## S3 method for class 'CMBDataFrame' pix(x, new.pix, ...)
| x | A CMBDataFrame. | 
| new.pix | Optional vector of pixel indices with
length equal to  | 
| ... | Unused arguments. | 
The vector of HEALPix pixel indices or, if new.pix is specified, a new CMBDataFrame.
## First download the map
# downloadCMBMap(foreground = "smica", nside = 1024)
# df <- CMBDataFrame("CMB_map_smica1024.fits", sample.size = 800000)
# pix(df)
df <- CMBDataFrame(nside = 16, sample.size = 10, ordering = "nested")
pix(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.