geoArea.HPDataFrame | R Documentation |
HPDataFrame
Gives the surface on the unit sphere
that is encompassed by all pixels in x
.
## S3 method for class 'HPDataFrame' geoArea(x)
x |
A HPDataFrame. |
The sum of the areas of all pixels (rows) in x
.
## Generate random I for HPDataFrame hp1 <- HPDataFrame(I=rnorm(5), nside = 1, spix = c(1,1,2,2,3)) pix(hp1) ## The total number of Healpix points at nside=1 equals 12. As hp1 has five ## I values at 3 Healpix points, then the occupied area is ## pi = 1/4*(surface area of unit sphere) geoArea(hp1) plot(hp1, size = 5, hp.boundaries = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.