rcosmo (version 1.1.2)

pixelArea: Area of a HEALPix pixel

Description

Get the area of a single HEALPix pixel

Usage

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

Run this code
# NOT RUN {
## 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)

# }

Run the code above in your browser using DataCamp Workspace