; ; statistics used for revision ; ;-----------------------------------------------------------------------------------------------; ;-----------------------------------------------------------------------------------------------; ;--- TAG --- I -- Initialization And Input Verification -----------------------; ;-----------------------------------------------------------------------------------------------; ;-----------------------------------------------------------------------------------------------; ;----What to do readDISCO = 0 ;---------- Directories spawn, 'hostname', host case strTrim(host) of 'hyperion': dirEuclid = '/data/euclid/' 'endymion': dirEuclid = '/home/bcarry/work/data/euclid/' else: stop endcase dirFilter = dirEuclid+'filters/' dirTaxo = dirEuclid+'taxonomy/' dirStat = dirEuclid + 'stat/' dirFrac = dirEuclid + 'fraction/' dirPop = dirEuclid + 'synthetic/' ; dirStat = dirEuclid + 'gaia-stat/' ;--- for Gaia only ;--- survey limits limEcl = 15 limGal = 20. sLimit = 17 ;-Saturation vLimit = 24.5 ;-- YJH -- 24.5 in V, but smearing... binH = 0.25 ;-geometry of obsevration elongation=90 elongMin=87 elongMax=110 now = 2016 jdNow = date_conv( string(now,format='(I4)')+'-01-01', 'JULIAN' ) nbY = 10 hFrac=[1.00,0.75,0.50,0.25,0.00] lFrac=reverse(hFrac) ;-----------------------------------------------------------------------------------------------; ;-----------------------------------------------------------------------------------------------; ;--- TAG --- III -- SSO populations -----------------------; ;-----------------------------------------------------------------------------------------------; ;-----------------------------------------------------------------------------------------------; ;--III.1-- Read SSO populations readcol, dirEuclid+'pop', delimiter=',', $ format='(A,I1,F4.1,F4.1,F4.1,F4.1,F3.1,F3,A,A)', $ popName, popMain, popHmin, popHmax, xMin, xMax, yMin, yMax, popC, poS, /Silent popName = strtrim(popName,2) nbPop=n_elements(popName) ecStat = fltarr(nbPop,2) popPrint = where( popMain eq 1, nbPopPrint ) print, 'Populations considered: ('+strtrim(string(nbPop),2)+'): ', popName ;--III.2-- Read SSO discovery archive if readDISCO eq 1 or not keyword_set(disco) then $ disco=ssoDiscovery_read() res = where( strCmp( strMid(disco.orbit.sub,0,8), 'resonant', /fold ), nbRes ) disco[res].orbit.sub = 'Resonant' ;--III.3-- Read LSST discoveries readcol, dirStat+'lsst', lsstPop, lsstTot, format='(A,F)', /Silent lsstPop=strtrim(lsstPop,2) lsstY1 = 2021 ;-----------------------------------------------------------------------------------------------; ;-----------------------------------------------------------------------------------------------; ;--- TAG --- IV -- SSO CSD and discovery -----------------------; ;-----------------------------------------------------------------------------------------------; ;-----------------------------------------------------------------------------------------------; ;--IV.1-- Plot parameters cgPS_open, Filename=dirStat+'Euclid-Stat.eps', /metric, /decomposed, /encapsulated, $ xSize=35, ySize=40.5, language_level=2, /quiet yBot = 0.05 ySep = 0.03 yTop = 0.97 yLen = (yTop-yBot-ySep)/2.; + yBot yTop2= 0.977 xKey = 3 xLen = 1 yKey = cgLogGen( 5, start=2.7e5, finish=2.7e7) yKey2= cgLogGen( 5, start=2e5, finish=2e7) kPrint=0 yKeyLine = cgLogGen( 8, start=8.7e1, finish=4.7e4) yKeyLine2= cgLogGen( 8, start=8e1, finish=4e4) yBotDisco = 4 yTopDisco = 20 yTxtDisco = 12 xDisco = 19 xRang = [2,24] cgPlot, 0,0, /NoData, /yLog, /Normal, $ xTitle='Absolute magnitude (H)', $ yTitle='Cumulative number N(