function inverse_map,rmap,dbins=dbin ; Note: this function will give ambiguous results if the map is not invertible n = n_elements(rmap) imap = intarr(128) dbin = intarr(128) imap[rmap.bin] = rmap.start dbin[rmap.bin] = rmap.delta return,imap end