Plot photo-z
The code plotphotoz (autor Johan) uses the output from hyper-z files.sed, .spe and .log_phot to lot the probablility of the objects redshift.
In the plotphotoz filte change 3 things:
pro plotphotozall,max
dir='/Users/danka/Desktop/ZPHOT/'
spedir='/Users/danka/Desktop/ZPHOT/'
root='new'
;new lookup table - filter name,LHM+HWHM,HWHM
wav= [[160,1.656270,0.1424000], $
[110,1.146900,0.1915000], $
[814,0.8059,0.0654], $
[475,0.4744356,0.42011], $
[850,0.9054768,0.53943], $
[199,1.65,0.3], $
[200,1.250,0.29], $
[198,2.16,0.27]]
;read the obs_sed output by hyperz
rdfloat,dir+root+'.obs_sed',obsid,obs160,obs110,obs814,obs475,obs850,$
err160,err110,err814,err475,err850,/silent
for id=1,6 do begin
i=where(obsid EQ id)
flux=[obs160[i],obs110[i],obs814[i],obs475[i],obs850[i],obsh[i],obsj[i],obsks[i]]
fluxerr=[err160[i],err110[i],err814[i],err475[i],err850[i],errh[i],errj[i],errks[i]]