celestial: Collection of Common Astronomical Conversion Routines and Functions
> library(celestial)
バージョン: 1.3
関数名 | 概略 |
---|---|
IAUID |
IAU name creator. |
celestial-package |
Collection of Common Astronomical Conversion Routines and Functions |
coordmatch |
Sky matching |
cosdist |
Cosmological Distance Calculations |
cosgrow |
Cosmological Growth and Evolution Calculations |
coshalo |
Virial halo conversion functions |
cosmap |
Cosmological Mapping Functions |
cosorbVisViva |
Orbital functions |
cosref |
Cosmology parameter data included in celestial package. |
cosvar |
Driver & Robotham (2010) cosmic variance calculator |
cosvol |
Cosmological volume calculator |
deg2dms |
Convert decimal degrees to dms format. |
deg2hms |
Convert decimal degrees to hms format. |
dms2deg |
Convert DMS to degrees format. |
hms2deg |
Convert hms to degrees format. |
skyarea |
Exact angular area calculator |
sph2car |
Transforms 3D spherical coordinates to cartesian coordinates |
IAUID
> IAUID(123.45,67.89, "GAMA", "J")
[1] "GAMAJ081348.00+675324.0"
deg2dms
10進数表記を度分秒表記にする
ref) dms2deg
> 12.345 %>% {
+ print(deg2dms(.))
+ print(deg2dms(., type = 'cat', sep = ':'))
+ print(deg2dms(., type = 'cat', sep = 'dms'))
+ print(deg2dms(., type = 'cat', sep = 'DMS'))
+ }
DEG MIN SEC
[1,] "+12" "20" "42.00"
[1] "+12:20:42.00"
[1] "+12d20m42.00s" "+12d20m42.00s" "+12d20m42.00s"
[1] "+12D20M42.00S" "+12D20M42.00S" "+12D20M42.00S"
dms2deg
ref) deg2dms
Arguments
- d
- m
- s
- sign
- sep
> print(dms2deg(d = 70, m = 45, s = 19, -1))
[1] -70.75528
> print(dms2deg('-70:45:19'))
[1] -70.75528
> print(dms2deg('-70d45m19s', sep = 'dms'))
[1] -70.75528
> print(dms2deg(c('-70D45M19S','3D5M15S'), sep = 'DMS'))
[1] -70.75528 3.08750