Anthony Smith's IDL routines

Galaxies etc.

single page | use frames     summary     class     fields     routine details     file attributes

gals/

ajs_vmax_bbd.pro

This procedure calculates the 1/Vmax bivariate brightness distribution from input arrays of two quantities (e.g., absolute magnitude and surface brightness) and weights (e.g., 1/Vmax)

Routines

result = ajs_vmax_bbd(m1, m2 [, weights] [, bincentres1=bincentres1] [, bincentres2=bincentres2] [, err_phi=err_phi] [, ninbin=ninbin] [, nbins1=nbins1] [, nbins2=nbins2] [, xrange=xrange] [, yrange=yrange] [, jackknife=jackknife] [, choloniewski=choloniewski] [, chol_xrange=fltarr(2)] [, chol_yrange=fltarr(2)] [, cov_mat=cov_mat] [, vars=vars] [, zmin=zmin] [, zmax=zmax] [, area=area] [, q0=q0] [, q1=q1])

This procedure calculates the 1/Vmax bivariate brightness distribution from input arrays of two quantities (e.g., absolute magnitude and surface brightness) and weights (e.g., 1/Vmax)

ajs_vmax_bbd_test

Test ajs_vmax_lf

Routine details

topajs_vmax_bbd

result = ajs_vmax_bbd(m1, m2 [, weights] [, bincentres1=bincentres1] [, bincentres2=bincentres2] [, err_phi=err_phi] [, ninbin=ninbin] [, nbins1=nbins1] [, nbins2=nbins2] [, xrange=xrange] [, yrange=yrange] [, jackknife=jackknife] [, choloniewski=choloniewski] [, chol_xrange=fltarr(2)] [, chol_yrange=fltarr(2)] [, cov_mat=cov_mat] [, vars=vars] [, zmin=zmin] [, zmax=zmax] [, area=area] [, q0=q0] [, q1=q1])

This procedure calculates the 1/Vmax bivariate brightness distribution from input arrays of two quantities (e.g., absolute magnitude and surface brightness) and weights (e.g., 1/Vmax)

Bins in each dimension must have equal width

Return value

fltarr/dblarr Returns phi, value of space density

Parameters

m1 in required
m2 in required
weights in optional

E.g., 1./Vmax. Set to single value to give all galaxies the same weight, or leave empty to give all galaxies a weight of 1.

Keywords

bincentres1 in out optional

Centre of each bin in m1

bincentres2 in out optional

Centre of each bin in m2

err_phi out optional

Poisson errors = phi / sqrt(n)

ninbin out optional

Number of galaxies in each bin

nbins1 in optional

Number of bins in m1 (ignored if bincentres set)

nbins2 in optional

Number of bins in m2 (ignored if bincentres set)

xrange in optional

Minimum and maximum m1 (ignored if bincentres1 set)

yrange in optional

Minimum and maximum m2 (ignored if bincentres2 set)

jackknife in optional

Integer for each galaxy giving the jackknife region in which the galaxy lies

choloniewski in out optional

Choloniewski fit

chol_xrange in optional type=fltarr(2)

xrange for Choloniewski fit (ajs_choloniewski_fit)

chol_yrange in optional type=fltarr(2)

yrange for Choloniewski fit (ajs_choloniewski_fit)

cov_mat out optional

Covariance matrix of Choloniewski fit

vars in optional

See ajs_choloniewski_fit

zmin in optional

See ajs_choloniewski_fit

zmax in optional

See ajs_choloniewski_fit

area in optional

See ajs_choloniewski_fit

q0 in optional

See ajs_choloniewski_fit

q1 in optional

See ajs_choloniewski_fit

Author information

History:

6 Mar 2008 Created (Anthony Smith)

18 Mar 2008 Added jackknife

7 Apr 2008 Added jackknife Choloniewski fit

topajs_vmax_bbd_test

ajs_vmax_bbd_test

Test ajs_vmax_lf

File attributes

Modifcation date: Fri Jun 6 08:19:26 2008
Lines: 289
Docformat: rst rst