pro loc2abs, h, v, loc_col, loc_row, $ cols_per_tile=cols_per_tile, $ rows_per_tile=rows_per_tile, $ v_offset=v_offset, $ abs_col, abs_row if n_elements(cols_per_tile) eq 0 then $ cols_per_tile = 951 if n_elements(rows_per_tile) eq 0 then $ rows_per_tile = 951 if n_elements(v_offset) eq 0 then $ v_offset = 0 abs_col = h * cols_per_tile + loc_col abs_row = (v - v_offset) * rows_per_tile + loc_row print, 'loc2abs:' print, ' h: ', h print, ' v: ', v print, ' loc_col: ', loc_col print, ' loc_row: ', loc_row print print, ' cols_per_tile:', cols_per_tile print, ' rows_per_tile:', rows_per_tile print, ' v_offset: ', v_offset print print, ' abs_col: ', abs_col print, ' abs_row: ', abs_row end