rcosmo (version 1.1.2)

coords<-.CMBDataFrame: Assign new coordinate system to a CMBDataFrame

Description

Assign new coordinate system to a CMBDataFrame

Usage

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

Arguments

See Also

coords.CMBDataFrame

Examples

Run this code
# NOT RUN {
## 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

# }

Run the code above in your browser using DataCamp Workspace