function [spectra wavevector timevector]=getdata(filename)
	% reads in file and returns data, with times and wavelengths separated into one column vector and one row vector
	spectra=load(filename); % read all data into spectra
	tmp=size(spectra); % another stupid matlab bug workaround
	wavevector= spectra(1,2:tmp(2)); % extract wavelength vector
	timevector= spectra(2:tmp(1),1); % extract time vector
end 
