PRO load_lut,table,mn=mn,mx=mx r=intarr(256) g=intarr(256) b=intarr(256) tbl=intarr(4,256) MESSAGE,'Loading table '+table, /INFORMATIONAL ; openr,11,'/home/tdarnell/idl/image_tools/'+table openr,11,'.'+table readf,11,tbl close,11 r=tbl(1,*) g=tbl(2,*) b=tbl(3,*) r=bytscl(r,MIN=mn,MAX=mx) g=BYTSCL(g,MIN=mn,MAX=mx) b=BYTSCL(b,MIN=mn,MAX=mx) tvlct,r,g,b END