geoArea.CMBDataFrame: Geodesic area covered by a 'CMBDataFrame'

Description Usage Arguments Value Examples

View source: R/CMBDataFrameGenerics.R

Description

Gives the surface on the unit sphere that is encompassed by all pixels in cmbdf

Usage

1
2
## S3 method for class 'CMBDataFrame'
geoArea(x)

Arguments

x

a CMBDataFrame.

Value

The sum of the areas of all pixels (rows) in x.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## At low resolution, a few data points can
## occupy a large pixel area, e.g.:

cmbdf <- CMBDataFrame(nside = 1, spix = c(1,2,3))
pix(cmbdf)

## The total number of Healpix points at nside=1 equals 12. As cmbdf has 3 Healpix
## it occupies pi = 1/4*(surface area of unit sphere)

geoArea(cmbdf)
plot(cmbdf, size = 5, hp.boundaries = 1)

rcosmo documentation built on Feb. 14, 2020, 5:06 p.m.