; TASK Identify the orders datestr = '201128' echo=1 NCP = nsxng_load_ncp() redo = 0 c = nsxng_constants() ncp = nsxng_load_ncp() ; Eris fn = fnsets( datestr, 78, 2, ok) nsxng_read_image, IA, echo, file=fn[1] nxnyn, *(IA.image), nc, nr plotsub, *(IA.image), bin=2 color = [x11rgb('yellow'), x11rgb('red')] for nso = 3, 7 do begin if nso eq 7 then cols = indgen(nc/2) else cols = indgen(nc) for mode = 1, 2 do begin rows = nsxng_find_real_image_row(mode, cols, nso) oplot, cols, rows, color=color[mode-1] if mode eq 1 then xyouts, cols[10], rows[10], string(nso, format='(I1)'), color=color[1] endfor end tv2png, 'fig/1_id_orders_'+IA.root+'.png', /tr, /co ; HD19061 fn = fnsets( datestr, 61, 1, ok) nsxng_read_image, IA, echo, file=fn[0] nxnyn, *(IA.image), nc, nr plotsub, *(IA.image), bin=2 color = [x11rgb('yellow'), x11rgb('red')] for nso = 3, 7 do begin if nso eq 7 then cols = indgen(nc/2) else cols = indgen(nc) for mode = 1, 2 do begin rows = nsxng_find_real_image_row(mode, cols, nso) oplot, cols, rows, color=color[mode-1] if mode eq 1 then xyouts, cols[10], rows[10], string(nso, format='(I1)'), color=color[1] endfor end tv2png, 'fig/1_id_orders_'+IA.root+'.png', /tr, /co ; HD7983 fn = fnsets( datestr, 33, 1, ok) nsxng_read_image, IA, echo, file=fn[0] nxnyn, *(IA.image), nc, nr plotsub, *(IA.image), 200, 900, 200, 200, bin=2, /mag, zmax=80, zmin = -10 color = [x11rgb('yellow'), x11rgb('red')] for nso = 3, 7 do begin if nso eq 7 then cols = indgen(nc/2) else cols = indgen(nc) for mode = 1, 2 do begin rows = nsxng_find_real_image_row(mode, cols, nso) oplot, cols, rows, color=color[mode-1] if mode eq 1 then xyouts, cols[10], rows[10], string(nso, format='(I1)'), color=color[1] endfor end nsxng_wide_profile_mash, IA, ncp nso = 3 mode = 1 rows = nsxng_find_real_image_row(mode, cols, nso, ncp, IA.SlitOffset) oplot, cols, rows, color=color[mode-1], line=2 mode = 2 rows = nsxng_find_real_image_row(mode, cols, nso, ncp, IA.SlitOffset) oplot, cols, rows, color=color[mode-1], line=2 tv2png, 'fig/1_id_orders_'+IA.root+'.png', /tr, /co ;stop ; Look at shifts seqnostart = 33 seqnoend = 125 nd = 1+seqnoend-seqnostart if n_elements(d) ne nd or keyword_set(redo) then begin d = rdsets(datestr, 33, nd, /img) for id = 0, nd-1 do begin img = d[id] nsxng_wide_profile_mash, img, ncp, /silent d[id] = img endfor end plot, d.airmass, d.slitoffset, ps=4, xtit='Airmass', yr=[2.2, 3.2], ytit='SlitOffset' a=d.object & s = a[sort(a)] & object_u = s[uniq(s)] color_u = [255, x11rgb('DarkGreen'), x11rgb('DarkBlue'), x11rgb('DarkViolet')] for iu = 0, n_elements(object_u)-1 do begin indx = where(d.object eq object_u[iu]) oplot, d[indx].airmass, d[indx].slitoffset, ps=4, color=color_u[iu] xyouts, 1.2, 2.3 + iu/10., object_u[iu], color=color_u[iu] endfor tv2png, 'fig/1_id_orders_SlitOffset_v_airmass.png', /tr, /co seqno = indgen(nd) + seqnostart plot, seqno, d.slitoffset, ps=4, xtit='SeqNo', yr=[2.2, 3.2], ytit='SlitOffset' a=d.object & s = a[sort(a)] & object_u = s[uniq(s)] color_u = [255, x11rgb('DarkGreen'), x11rgb('DarkBlue'), x11rgb('DarkViolet')] for iu = 0, n_elements(object_u)-1 do begin indx = where(d.object eq object_u[iu]) oplot, seqno[indx], d[indx].slitoffset, ps=4, color=color_u[iu] xyouts, seqnoend, 2.3 + iu/10., object_u[iu], color=color_u[iu] endfor tv2png, 'fig/1_id_orders_SlitOffset_v_seqno.png', /tr, /co end