assumedUniquePix: Check if object was assumed to have unique HEALPix indices

Description Usage Arguments Value Examples

View source: R/HPDataFrame.R

Description

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

Usage

1

Arguments

obj

Any object.

Value

A boolean. This is TRUE if obj is a CMBDataFrame or a HPDataFrame whose rows were assumed to correspond to unique HEALPix pixel indices.

Examples

1
2
3
4
5
6
7
8
9
hp1 <- HPDataFrame(I=rnorm(5), nside = 1, spix = c(1,1,2,2,3))
pix(hp1)
coords(hp1, new.coords = "cartesian")
assumedUniquePix(hp1)

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

rcosmo documentation built on Dec. 11, 2021, 9:29 a.m.