areCompatibleCMBDFs: Check compatibleness of CMBDataFrames

Description Usage Arguments Details Examples

View source: R/CMBDataFrameGenerics.R

Description

Compare attributes to decide if two CMBDataFrames are compatible

Usage

1
areCompatibleCMBDFs(cmbdf1, cmbdf2, compare.pix = FALSE)

Arguments

cmbdf1

a CMBDataFrame

cmbdf2

a CMBDataFrame

compare.pix

A boolean. If TRUE then cmbdf1 and cmbdf2 must share the same pixel indices to be considered compatible

Details

If the CMBDataFrames do not have compatible attributes then a message is printed indicating the attributes that do not match. To suppress this use the suppressMessages function

Examples

1
2
3
4
5
a <- CMBDataFrame(nside = 2, ordering = "ring", coords = "cartesian")
b <- CMBDataFrame(nside = 1, ordering = "nested", coords = "spherical")
areCompatibleCMBDFs(a,b)

suppressMessages(areCompatibleCMBDFs(a,b))

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