Learn R Programming

astro (version 1.2)

Astronomy Functions, Tools and Routines

Description

The astro package provides a series of functions, tools and routines in everyday use within astronomy. Broadly speaking, one may group these functions into 7 main areas, namely: cosmology, FITS file manipulation, the Sersic function, plotting, data manipulation, statistics and general convenience functions and scripting tools.

Copy Link

Version

Install

install.packages('astro')

Monthly Downloads

15

Version

1.2

License

GPL (>= 2)

Maintainer

Lee Kelvin

Last Published

September 8th, 2014

Functions in astro (1.2)

comovvol

Co-moving Volume
lumdens

Luminosity Density
writeBin64

Transfer Binary Data To a Connection
akde2d

Two-Dimensional Kernel Density Estimation (Astro)
chicdf

The Cumulative Distribution Function for the Chi-Squared Distribution
abox

Draw a Thick Box Around a Plot
eta

Calculate ETA of a For-Loop
shade

Adds a Shaded Region to a Figure
read.fitstab

Read FITS Table
astro

Astronomy Functions, Tools and Routines
chipdf

The Probability Density Function for the Chi-Squared Distribution
kron

Kron Function
shadowtext

Add Shadowed Text to a Plot
lookback

Lookback Time
scmean

Sigma-Clipped Mean
plotfits

Plot FITS images
write.fits

Write FITS Files
coscalc

Calculates Cosmological Parameters
concen

Central Concentration
age

Age of the Universe
aqbeta

Astro:Beta Distribution (quantile)
put.fitskey

Put FITS Keyword Value Into Header
re2h

Half-Light Radius to Scalelength
scalemark

Add a Scalemark to a Plot
nicetime

Convert Seconds into a Human Readable Time
angdist

Angular Diameter Distance
get.fitskey

Get FITS Keyword Value From Header
write.fitshdr

Write FITS Headers
comovdist.trans

Co-moving Distance (Transverse)
schechter

The Schechter Function
p2chi

The Chi-Squared Statistic for a Given P-Value
convmu

Convert Between Sersic Surface Brightnesses
cenang

Central Angle
petroindex

Petrosian Index
lumdist

Luminosity Distance
comovdist.los

Co-moving Distance (Line of Sight)
acol

Convert a named colour
aaxis

Add a Scientific Axis to a Plot
h2re

Scalelength to Half-Light Radius
igamma

The Incomplete Gamma Function
gauss

The Gaussian Function
solar

Display the Absolute Magnitude of the Sun
cardinal

Add Cardinal Points to a Plot
chipval

The P-Value for the Chi-Squared Distribution
combrad

Combine Sersic Functions
lookback2z

Redshift at a given Lookback Time
label

Add A Label To A Plot
sersic

Sersic Function
schechter.fit

Fit to the Schechter Function
schechter.ellipse

Calculate Error Matrices for a Schechter Function Fit
ellipse

Calculates Ellipse Coordinates
age2z

Redshift of the Universe at a given age
read.fits

Read FITS Files
schechter.bin

Calculate Schechter Function Binned Variables
read.fitskey

Read FITS Header Keyword
kronrad

Kron Radius
acb

Add a Colourbar to a Plot
petro

Petrosian Function
strip

Strip Leading/Trailing Characters
convrad

Convert Between Sersic Radii
aplot

Scientific X-Y Plotting
angsize

Angular Size Conversion
read.fitsim

Read FITS Image
read.fitshdr

Read FITS Header
petrorad

Petrosian Radius
write.fitskey

Write FITS Header Keywords