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

Description Usage See Also Examples

Description

Assign new coordinate system to a HPDataFrame

Usage

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

See Also

coords.HPDataFrame

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Create df with no coords, then create df2 with cartesian coords
df <- HPDataFrame(I = rep(0,12), nside = 1)
df
df2 <- coords(df, new.coords = "cartesian")
df2
df

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

rcosmo documentation built on Feb. 14, 2020, 5:06 p.m.