Learn R Programming

rcosmo (version 1.1.6)

pixelArea: Area of a HEALPix pixel

Description

Get the area of a single HEALPix pixel

Usage

pixelArea(nsideObject)

Value

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

Arguments

nsideObject

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

Examples

Run this code

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

Run the code above in your browser using DataLab