function fileinfon(files,att)
dat=ncattr(files,att);
if(strncmp(att,'dep',3))
	str=['Instrument depths are: ',int2str(dat)];
elseif(strncmp(att,'lat',3))
	str=['Instrument lats are: ',num2str(dat)];
elseif(strncmp(att,'lon',3))
	str=['Instrument longs are: ',num2str(dat)];
elseif(strncmp(att,'dim',3))
	str=['Instrument lengths are: ',num2str(dat)];
end
disp(str)
set(gcf,'name',str)
