Learn R Programming

astrolibR (version 0.1)

Astronomy Users Library

Description

Several dozen low-level utilities and codes from the Interactive Data Language (IDL) Astronomy Users Library (http://idlastro.gsfc.nasa.gov) 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.

Copy Link

Version

Install

install.packages('astrolibR')

Monthly Downloads

21

Version

0.1

License

GPL

Maintainer

Eric Feigelson

Last Published

August 8th, 2014

Functions in astrolibR (0.1)

polyidl

Calculate polynomial
sphdist

Distance on a sphere
aitoff

Convert longitude, latitude to X,Y using an AITOFF projection
co_nutate

Calculate changes in right ascension and declination due to nutation of the Earth's rotation
planck

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

Calculate changes to right ascension and declination due to astronomical aberration
baryvel

Calculates heliocentric and barycentric velocity components of Earth
astrolibR-package

astrolibR: Astronomy Users Library
co_refract

Calculate correction to altitude due to atmospheric refraction
gal_uvw

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

Compute the Right Ascension and Declination of the Moon at specified Julian date(s)
dtdz

Integrand for cosmic age vs. redshift in standard cosmology
precess_xyz

Precess equatorial geocentric rectangular coordinates
vactoair

Convert vacuum wavelengths to air wavelengths
ymd2dn

Convert from year, month, day to day number of year
hor2eq

Converts local horizon coordinates (alt-az) to equatorial coordinates(ra-dec)
jdcnv

Convert Gregorian dates to Julian days
month_cnv

Convert between a month name and the equivalent number
posang

Compute position angle of source 2 relative to source 1
euler

Transform between Galactic, celestial, and ecliptic coordinates
uvbybeta

Derive dereddened colors, metallicity, and Teff from Stromgren colors
jprecess

Precess celestial positions from B1950.0 (FK4) to J2000.0 (FK5) with proper motion
airtovac

Convert air wavelengths to vacuum wavelengths
intdiv

Integer divide
daycnv

Convert Julian dates to Gregorian calendar dates
cosmo_param

Derive full set of cosmological density parameters from a partial set
sixty

Convert a decimal number to sexigesimal
lumdist

Calculate luminosity distance (in Mpc) of an object given its redshift
galage

Determine the age of a galaxy given its redshift and a formation redshift
altaz2hadec

Convert horizon (Alt-Az) coordinates to hour angle and declination
mag2flux

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

Convert from geographic/planetographic to geodetic coordinates
ct2lst

Convert from Local Civil Time to Local Mean Sidereal Time
fm_unred

Deredden a flux vector using the Fitzpatrick (1999) parameterization
hadec2altaz

Convert Hour Angle and Declination to Horizon (alt-az) coordinates
ten

Convert a sexigesimal number or string to decimal
gcirc

Computes rigorous great circle arc distances between points on the celestial sphere
radec

Convert Right Ascension and declination from decimal to sexigesimal units
geodetic2geo

Convert from geodetic (or planetodetic) to geographic coordinates
premat

Return the precession matrix needed to go from EQUINOX1 to EQUINOX2
xyz

Calculate geocentric X,Y, and Z and velocity coordinates of the Sun
helio_rv

Calculate the heliocentric radial velocity of a spectroscopic binary
glactc_pm

Convert between celestial and Galactic (or Supergalactic) proper motion and coordinates
eqpole

Convert Right Ascension and declination to X,Y using an equal-area polar projection
eq2hor

Convert celestial (ra-dec) coords to local horizon coords (alt-az)
helio_jd

Convert geocentric (reduced) Julian date to heliocentric Julian date
eci2geo

Convert Earth-centered inertial coordinates to geographic spherical coordinates
precess

Precess coordinates from EQUINOX1 to EQUINOX2
cirrange

Force an angle into the range 0 <= ang < 360
geo2eci

Convert geographic spherical coordinates to Earth-centered inertial coordinates
ismeuv

Compute the continuum interstellar extreme ultraviolet (EUV) optical depth
sunpos

Compute the Right Ascension and Declination of the Sun at specified Julian date(s)
rhotheta

Calculate the separation and position angle of a binary star
ccm_unred

Deredden a flux vector using the Cardelli et al. (1989) parameterization
imf

Compute an N-component power-law logarithmic stellar initial mass function
lsf_rotate

Create a 1-d convolution kernel to broaden a spectrum from a rotating star
planet_coords

Calculate low precision Right Ascension and declination for the planets given a date
glactc

Convert between celestial and Galactic (or Supergalactic) coordinates
nutate

Calculate the nutation in longitude and obliquity for a given Julian date
ldist

Integrand for luminosity distance calculation
bprecess

Precess celestial positions from J2000.0 (FK5) to B1950.0 (FK4)
co_refract_forward

Calculate the true altitude of a celestial object from an observed altitude.
calz_unred

Deredden a galaxy spectrum using the Calzetti et al. (2000) recipe
helio

Compute (low-precision) heliocentric coordinates for the planets
flux2mag

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

Convert from calendar to Reduced Julian Date
zang

Determine the angular size of an object as a function of redshift
ydn2md

Convert from year and day number of year to month and day of month
adstring

Return RA and Dec as character string(s) in sexigesimal format
mphase

Calculate the illuminated fraction of the Moon at given Julian date(s)
deredd

Deredden stellar Stromgren parameters given for a value of E(b-y)