gals/
ajs_number_counts.pro
This procedure calculates the number counts from an input array of magnitudes or log(flux)
Routines
result = ajs_number_counts(mag [, area=area] [, bincentres=bincentres] [, err_ngals=err_ngals] [, ninbin=ninbin] [, nbins=nbins] [, xrange=xrange])
This procedure calculates the number counts from an input array of magnitudes or log(flux)
ajs_number_counts_test
Test ajs_number_counts
Routine details
topajs_number_counts
result = ajs_number_counts(mag [, area=area] [, bincentres=bincentres] [, err_ngals=err_ngals] [, ninbin=ninbin] [, nbins=nbins] [, xrange=xrange])
This procedure calculates the number counts from an input array of magnitudes or log(flux)
Bins must have equal width
Return value
fltarr/dblarr Returns the number of galaxies per mag or log(flux), per square degree
Parameters
- mag in required
Keywords
- area in optional
Area in square degrees
- bincentres in out optional
Centre of each bin in magnitude
- err_ngals out optional
Poisson errors = n / sqrt(n)
- ninbin out optional
Number of galaxies in each bin
- nbins in optional
Number of bins (ignored if bincentres set)
- xrange in optional
Minimum and maximum mag (ignored if bincentres set)
Author information
History: |
5 Sep 2007 Created (Anthony Smith) 6 Mar 2008 Re-written 18 Mar 2008 Added jackknife 7 Apr 2008 Jackknife estimation of Schechter function fit 15 Apr 2008 Added luminosity density 21 Apr 2008 Added double Schechter function |
File attributes
Modifcation date: | Wed Oct 29 16:39:58 2008 |
Lines: | 107 |
Docformat: | rst rst |