fname = './DEEP2_SAcone_012_000.dat' Gcone = {$ GalID : 0LL, $ ; gal ID HaloID : 0LL, $ ; halo ID Type : 0L, $ ; 0=central, 1=sat, 2=orphan Pos : fltarr(3), $ ; x,y,z in Mpc/h Vel : fltarr(3), $ ; Vx,Vy,Vz in km/s Spin : fltarr(3), $ ; halo spin vector ra : 0.0, $ ; in radians dec : 0.0, $ ; in radians z_obs : 0.0, $ ; inc. pec. vel. z : 0.0, $ ; actual redshift CentralMvir : 0.0, $ ; 10^10Msun/h Mvir : 0.0, $ ; 10^10Msun/h Rvir : 0.0, $ ; Mpc/h (physical units) Vvir : 0.0, $ ; km/s Vmax : 0.0, $ ; km/s VelDisp : 0.0, $ ; km/s StellarMass : 0.0, $ ; 10^10Msun/h BulgeMass : 0.0, $ ; 10^10Msun/h ColdGas : 0.0, $ ; 10^10Msun/h HotGas : 0.0, $ ; 10^10Msun/h EjectedMass : 0.0, $ ; 10^10Msun/h BlackHoleMass : 0.0, $ ; 10^10Msun/h Sfr : 0.0, $ ; Msun/yr Cooling : 0.0, $ ; cooling rate in erg/s Heating : 0.0, $ ; AGN heating rate in erg/s APPmag_SDSS : fltarr(5), $ ; apparent ugriz (AB) total magnitude APPmag_SDSSbulge : fltarr(5), $ ; apparent ugriz (AB) bulge magnitude ABSmag_SDSS : fltarr(5), $ ; absolute ugriz in -5logh (AB, kcorrect to z=0.1) total magnitude APPMag_DEEP : fltarr(4), $ ; apparent BRIK (AB) total magnitude APPMag_DEEPbulge : fltarr(4), $ ; apparent BRIK (AB) bulge magnitude ABSBmag_Deep : 0.0, $ ; kcorrect B in -5logh (AB) UminusB_Deep : 0.0, $ ; kcorrect U-B (AB) ABSmag_BVRIK : fltarr(5), $ ; absolute Cousins filters in -5logh (AB) total magnitude ABSmag_BVRIKbulge : fltarr(5), $ ; absolute Cousins filters in -5logh (AB) bulge magnitude ABSmag_BVRIKnodust : fltarr(5) $ ; absolute Cousins filters in -5logh (AB) total magnitude no dust } print, 'reading cone ... ', fname NtotGals=0L close, 1 openr, 1, fname, /swap_if_big_endian readu, 1, NtotGals G = replicate(Gcone, NtotGals) readu,1,G close, 1 print, "total galaxies read:", NtotGals ;; example stars = G.StellarMass print, stars[0:9] end