Exercise 10
In http:://gbm.bo.astro.it/paola/didattica/AA2012
2013/statistica/data are stored 2 files (the modified is The version which can be used in IDL).
The original one has been taken from Hyperleda (
http://leda.univlyon1.fr/) with the following prescriptions: apparent B magnitude (btc) available
and radial velocity (vvir) between 2000 and 10 000 km/s.
Write a idl procedure showing the histogram of M_B
(absolute B magnitude) for different morphological types
(Ellipticals, S0s, SaSbc and ScIrr), computing mean and standard deviation and fitting the best gaussian to these data.
To import data from a file use E<= 3
data=fltarr(3,88600) S0 > 3 & <0
openr,1,'modifiedsample.dat' SaSbc >= 0 & < 4 readf,1,data Sc ecc >= 4
close,1