rcosmo (version 1.1.2)

areCompatibleCMBDFs: Check compatibleness of CMBDataFrames

Description

Compare attributes to decide if two CMBDataFrames are compatible

Usage

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

Arguments

cmbdf1
cmbdf2
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

Run this code
# NOT RUN {
a <- CMBDataFrame(nside = 2, ordering = "ring", coords = "cartesian")
b <- CMBDataFrame(nside = 1, ordering = "nested", coords = "spherical")
areCompatibleCMBDFs(a,b)

suppressMessages(areCompatibleCMBDFs(a,b))

# }

Run the code above in your browser using DataCamp Workspace