astrolibR: Astronomy Users Library

Several dozen low-level utilities and codes from the Interactive Data Language (IDL) Astronomy Users Library ( are implemented in R. They treat: time, coordinate and proper motion transformations; terrestrial precession and nutation, atmospheric refraction and aberration, barycentric corrections, and related effects; utilities for astrometry, photometry, and spectroscopy; and utilities for planetary, stellar, Galactic, and extragalactic science.

Install the latest version of this package by entering the following in R:
AuthorArnab Chakraborty and Eric D. Feigelson
Date of publication2014-08-09 00:14:43
MaintainerEric D. Feigelson <>

View on CRAN

Man pages

adstring: Return RA and Dec as character string(s) in sexigesimal...

airtovac: Convert air wavelengths to vacuum wavelengths

aitoff: Convert longitude, latitude to X,Y using an AITOFF projection

altaz2hadec: Convert horizon (Alt-Az) coordinates to hour angle and...

astrolibR-package: astrolibR: Astronomy Users Library

baryvel: Calculates heliocentric and barycentric velocity components...

bprecess: Precess celestial positions from J2000.0 (FK5) to B1950.0...

calz_unred: Deredden a galaxy spectrum using the Calzetti et al. (2000)...

ccm_unred: Deredden a flux vector using the Cardelli et al. (1989)...

cirrange: Force an angle into the range 0 <= ang < 360

co_aberration: Calculate changes to right ascension and declination due to...

co_nutate: Calculate changes in right ascension and declination due to...

co_refract: Calculate correction to altitude due to atmospheric...

co_refract_forward: Calculate the true altitude of a celestial object from an...

cosmo_param: Derive full set of cosmological density parameters from a...

ct2lst: Convert from Local Civil Time to Local Mean Sidereal Time

daycnv: Convert Julian dates to Gregorian calendar dates

deredd: Deredden stellar Stromgren parameters given for a value of...

dtdz: Integrand for cosmic age vs. redshift in standard cosmology

eci2geo: Convert Earth-centered inertial coordinates to geographic...

eq2hor: Convert celestial (ra-dec) coords to local horizon coords...

eqpole: Convert Right Ascension and declination to X,Y using an...

euler: Transform between Galactic, celestial, and ecliptic...

flux2mag: Convert from flux (ergs/s/cm^2/A) to astronomical magnitudes

fm_unred: Deredden a flux vector using the Fitzpatrick (1999)...

galage: Determine the age of a galaxy given its redshift and a...

gal_uvw: Calculate the Galactic space velocity (U,V,W) of a star

gcirc: Computes rigorous great circle arc distances between points...

geo2eci: Convert geographic spherical coordinates to Earth-centered...

geo2geodetic: Convert from geographic/planetographic to geodetic...

geodetic2geo: Convert from geodetic (or planetodetic) to geographic...

glactc: Convert between celestial and Galactic (or Supergalactic)...

glactc_pm: Convert between celestial and Galactic (or Supergalactic)...

hadec2altaz: Convert Hour Angle and Declination to Horizon (alt-az)...

helio: Compute (low-precision) heliocentric coordinates for the...

helio_jd: Convert geocentric (reduced) Julian date to heliocentric...

helio_rv: Calculate the heliocentric radial velocity of a spectroscopic...

hor2eq: Converts local horizon coordinates (alt-az) to equatorial...

imf: Compute an N-component power-law logarithmic stellar initial...

intdiv: Integer divide

ismeuv: Compute the continuum interstellar extreme ultraviolet (EUV)...

jdcnv: Convert Gregorian dates to Julian days

jprecess: Precess celestial positions from B1950.0 (FK4) to J2000.0...

juldate: Convert from calendar to Reduced Julian Date

ldist: Integrand for luminosity distance calculation

lsf_rotate: Create a 1-d convolution kernel to broaden a spectrum from a...

lumdist: Calculate luminosity distance (in Mpc) of an object given its...

mag2flux: Convert from astronomical magnitudes to flux (ergs/s/cm^2/A)

month_cnv: Convert between a month name and the equivalent number

moonpos: Compute the Right Ascension and Declination of the Moon at...

mphase: Calculate the illuminated fraction of the Moon at given...

nutate: Calculate the nutation in longitude and obliquity for a given...

planck: Calculate the Planck function in units of ergs/cm2/s/A

planet_coords: Calculate low precision Right Ascension and declination for...

polyidl: Calculate polynomial

posang: Compute position angle of source 2 relative to source 1

precess: Precess coordinates from EQUINOX1 to EQUINOX2

precess_xyz: Precess equatorial geocentric rectangular coordinates

premat: Return the precession matrix needed to go from EQUINOX1 to...

radec: Convert Right Ascension and declination from decimal to...

rhotheta: Calculate the separation and position angle of a binary star

sixty: Convert a decimal number to sexigesimal

sphdist: Distance on a sphere

sunpos: Compute the Right Ascension and Declination of the Sun at...

ten: Convert a sexigesimal number or string to decimal

uvbybeta: Derive dereddened colors, metallicity, and Teff from...

vactoair: Convert vacuum wavelengths to air wavelengths

xyz: Calculate geocentric X,Y, and Z and velocity coordinates of...

ydn2md: Convert from year and day number of year to month and day of...

ymd2dn: Convert from year, month, day to day number of year

zang: Determine the angular size of an object as a function of...


adstring Man page
airtovac Man page
aitoff Man page
altaz2hadec Man page
astrolibR Man page
astrolibR-package Man page
baryvel Man page
bprecess Man page
calz_unred Man page
ccm_unred Man page
cirrange Man page
co_aberration Man page
co_nutate Man page
co_refract Man page
co_refract_forward Man page
cosmo_param Man page
ct2lst Man page
daycnv Man page
deredd Man page
dtdz Man page
eci2geo Man page
eq2hor Man page
eqpole Man page
euler Man page
flux2mag Man page
fm_unred Man page
galage Man page
gal_uvw Man page
gcirc Man page
geo2eci Man page
geo2geodetic Man page
geodetic2geo Man page
glactc Man page
glactc_pm Man page
hadec2altaz Man page
helio Man page
helio_jd Man page
helio_rv Man page
hor2eq Man page
imf Man page
intdiv Man page
ismeuv Man page
jdcnv Man page
jprecess Man page
juldate Man page
ldist Man page
lsf_rotate Man page
lumdist Man page
mag2flux Man page
month_cnv Man page
moonpos Man page
mphase Man page
nutate Man page
planck Man page
planet_coords Man page
polyidl Man page
posang Man page
precess Man page
precess_xyz Man page
premat Man page
radec Man page
rhotheta Man page
sixty Man page
sphdist Man page
sunpos Man page
ten Man page
uvbybeta Man page
vactoair Man page
xyz Man page
ydn2md Man page
ymd2dn Man page
zang Man page


R/geo2geodetic.R R/planet_coords.R R/helio.R R/juldate.R R/calz_unred.R R/bprecess.R R/airtovac.R R/uvbybeta.R R/baryvel.R R/hadec2altaz.R R/co_nutate.R R/helio_rv.R R/ldist.R R/eqpole.R R/jprecess.R R/zang.R R/posang.R R/cirrange.R R/premat.R R/polyidl.R R/precess.R R/aitoff.R R/jdcnv.R R/intdiv.R R/hor2eq.R R/sunpos.R R/euler.R R/eci2geo.R R/xyz.R R/geo2eci.R R/co_refract_forward.R R/lumdist.R R/glactc_pm.R R/helio_jd.R R/galage.R R/eq2hor.R R/precess_xyz.R R/sphdist.R R/rhotheta.R R/ccm_unred.R R/ydn2md.R R/ct2lst.R R/ten.R R/altaz2hadec.R R/ismeuv.R R/mag2flux.R R/vactoair.R R/imf.R R/deredd.R R/cosmo_param.R R/sixty.R R/lsf_rotate.R R/geodetic2geo.R R/co_refract.R R/flux2mag.R R/moonpos.R R/gal_uvw.R R/daycnv.R R/radec.R R/planck.R R/nutate.R R/month_cnv.R R/ymd2dn.R R/fm_unred.R R/glactc.R R/co_aberration.R R/mphase.R R/gcirc.R R/dtdz.R R/adstring.R
man/geo2geodetic.Rd man/flux2mag.Rd man/radec.Rd man/co_refract.Rd man/astrolibR-package.Rd man/glactc.Rd man/lsf_rotate.Rd man/precess.Rd man/gal_uvw.Rd man/glactc_pm.Rd man/galage.Rd man/imf.Rd man/jprecess.Rd man/helio.Rd man/geo2eci.Rd man/eqpole.Rd man/hor2eq.Rd man/ten.Rd man/ymd2dn.Rd man/adstring.Rd man/calz_unred.Rd man/euler.Rd man/helio_jd.Rd man/altaz2hadec.Rd man/cosmo_param.Rd man/nutate.Rd man/planet_coords.Rd man/planck.Rd man/moonpos.Rd man/precess_xyz.Rd man/gcirc.Rd man/lumdist.Rd man/eci2geo.Rd man/baryvel.Rd man/airtovac.Rd man/aitoff.Rd man/jdcnv.Rd man/vactoair.Rd man/mphase.Rd man/helio_rv.Rd man/hadec2altaz.Rd man/polyidl.Rd man/ydn2md.Rd man/ldist.Rd man/cirrange.Rd man/bprecess.Rd man/sixty.Rd man/rhotheta.Rd man/premat.Rd man/uvbybeta.Rd man/intdiv.Rd man/sphdist.Rd man/xyz.Rd man/geodetic2geo.Rd man/ccm_unred.Rd man/month_cnv.Rd man/zang.Rd man/eq2hor.Rd man/ct2lst.Rd man/daycnv.Rd man/sunpos.Rd man/mag2flux.Rd man/deredd.Rd man/ismeuv.Rd man/co_aberration.Rd man/dtdz.Rd man/juldate.Rd man/fm_unred.Rd man/posang.Rd man/co_nutate.Rd man/co_refract_forward.Rd

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.