healpixCentered: Check if object is assumed to have HEALPix centered...

View source: R/HPDataFrame.R

healpixCenteredR Documentation

Check if object is assumed to have HEALPix centered coordinates

Description

The function checks object's attribute healpixCentered. The attribute is TRUE if the object was assumed to have rows that correspond to unique HEALPix pixel indices.

Usage

healpixCentered(obj)

Arguments

obj

Any object.

Value

A boolean. This is TRUE if obj is a CMBDataFrame or a HPDataFrame whose coordinates were assumed to correspond to HEALPix pixel center locations.

Examples


hp1 <- HPDataFrame(I=rnorm(5), nside = 1, spix = c(1,1,2,2,3))
pix(hp1)
coords(hp1, new.coords = "cartesian")
healpixCentered(hp1)

sky <- CMBDataFrame(nside = 32, coords = "cartesian", ordering = "nested")
sky.s <- CMBDataFrame(sky, sample.size = 100)
hpdf <- HPDataFrame(sky.s, auto.spix = TRUE)
healpixCentered(hpdf)


frycast/rcosmo documentation built on Oct. 11, 2022, 5:21 p.m.