; ---------------------------------------------------------------------- ; Find image row given a column, nires spec order, and polynomials. ; mode=1 : lower bound. ; mode=2 : upper bound. ; The lower bound is offset for some orders to align profiles. ; function nsxng_find_image_row, mode, icol, nso, NCP, SlitOffset if n_params() lt 5 then SlitOffset = 0. if n_params() lt 4 then ncp = nsxng_load_ncp() row = round(( nsxng_find_real_image_row(mode,icol,nso, NCP, SlitOffset) )) return, row end