pixelArea: Area of a HEALPix pixel

Description Usage Arguments Value Examples

View source: R/CMBDataFrameHelpers.R

Description

Get the area of a single HEALPix pixel

Usage

1
pixelArea(nsideObject)

Arguments

nsideObject

CMBDataFrame, a HPDataFrame, or an integer giving the nside parameter.

Value

the area of a single HEALPix pixel at the nside resolution of nsideObject

Examples

1
2
3
4
5
6
7
8
9
## First download the map
# downloadCMBMap(foreground = "smica", nside = 1024)
# df <- CMBDataFrame("CMB_map_smica1024.fits")
# pixelArea(df)

df1 <- CMBDataFrame(nside = 64,
                    coords = "cartesian",
                    ordering = "nested")
pixelArea(df1)

rcosmo documentation built on Dec. 11, 2021, 9:29 a.m.