coords-set-.CMBDataFrame: Assign new coordinate system to a 'CMBDataFrame'

Description Usage See Also Examples

Description

Assign new coordinate system to a CMBDataFrame

Usage

1
2
## S3 replacement method for class 'CMBDataFrame'
coords(x, ...) <- value

See Also

coords.CMBDataFrame

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Create df with no coords, then create df2 with cartesian coords
df <- CMBDataFrame(nside = 16)
df
coords(df)
df2 <- coords(df, new.coords = "cartesian")
coords(df2)
coords(df)

## Change the coords of df directly (to spherical)
coords(df) <- "spherical"
df

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