Skip to contents

Coordinates

Create and inspect sky coordinate vectors.

sky_coord()
Create sky coordinates
is.sky_coord()
Check whether an object is a sky_coord vector
ra_dec()
Create ICRS sky coordinates
gal_coord()
Create Galactic sky coordinates
ra()
Get right ascension (RA)
dec()
Get declination (Dec)
l()
Get Galactic longitude (l)
b()
Get Galactic latitude (b)
frame()
Frame accessor
separation()
Angular separation between sky coordinates

Matching

Low-level catalog matching helpers.

coord_match() coord_nearest()
Match two sky catalogs within angular radius
coord_left_join() coord_nearest_join() coord_right_join() coord_full_join() coord_inner_join()
Spatial left join for sky coordinates

Frames and Transforms

Define coordinate frames and transform between them.

to_cartesian()
Convert sky coordinates to Cartesian unit vectors
icrs()
ICRS frame
galactic()
Galactic frame
transform_to()
Transform sky coordinates to another frame

Parsing and Naming

Parse, format, and convert sexagesimal coordinates.

parse_coord()
Parse coordinate strings into ICRS sky_coord
iau_name()
Build IAU-style source names from sky coordinates
deg_to_hms()
Format degrees as RA-like HMS strings
deg_to_dms()
Format degrees as DMS strings
hms_to_deg()
Convert HMS components to degrees
dms_to_deg()
Convert DMS components to degrees

Time

Convert between calendar dates and JD/MJD.

datetime_to_jd()
Convert date-time to Julian Date (JD)
jd_to_datetime()
Convert Julian Date (JD) to date-time
mjd_to_datetime()
Convert Modified Julian Date (MJD) to date-time
leap_second_dates()
Leap-second dates (UTC)

Printing Options

Control how sky coordinates are printed.

set_print_hms() set_print_plain() set_print_colon() set_print_pair()
Set printing style for sky coordinates