areCompatibleCMBDFs: Check compatibleness of CMBDataFrames

View source: R/CMBDataFrameGenerics.R

areCompatibleCMBDFsR Documentation

Check compatibleness of CMBDataFrames

Description

Compare attributes to decide if two CMBDataFrames are compatible

Usage

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

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

suppressMessages(areCompatibleCMBDFs(a,b))


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