-- ExtractAway.lua -- shows the extract in another window path = pathtofile() -- path of the 2D spectrum Xfile = path.."X" -- where we'll store the vertical projection os.execute("rm -rf \""..Xfile.."\"") -- delets the old projections, if they already exist extract( ) export( Xfile ) -- we store a copy of the extract closex() -- and return to the main (2-D) spectrum open( Xfile ) -- reopen the file containing the extract