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

coords<-.CMBDataFrameR Documentation

Assign new coordinate system to a CMBDataFrame

Description

Assign new coordinate system to a CMBDataFrame

Usage

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

See Also

coords.CMBDataFrame

Examples


## 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


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