ses_chdr = get_ses_chdr(fname); Returns session cell headers from EGIS file specified in fname This function provides a wrapper around the file I/O that necessarily accompanies lower-level routines such as rd_egis_hdr_v.
0001 function chdr = get_ses_chdr(fname) 0002 % ses_chdr = get_ses_chdr(fname); 0003 % 0004 % Returns session cell headers from EGIS file specified in fname 0005 % 0006 % This function provides a wrapper around the file I/O that necessarily 0007 % accompanies lower-level routines such as rd_egis_hdr_v. 0008 % 0009 0010 % 10/22/01 PJ 0011 0012 byte_sex = 'ieee-be'; 0013 0014 fid = fopen(fname, 'rb', byte_sex); 0015 0016 if fid == -1, error(sprintf('Error opening file %s', fname)), end 0017 0018 [fhdr,chdr,ename,czeros,cgains,cnames,fcom,ftext, coff]=rd_egis_hdr_v(fid); 0019 0020 fclose(fid); 0021 0022 return