2000/09/17 LTA file IDs: >> dec2hex(a.config.ids) ans = 0000 fixed leader 0080 variable leader 0100 velocity profile data 0200 correlation profile data 0300 echo intensity 0400 PG 1003 garbage 3000 binary fixed attitude 30E0 binary var. att with BT off; 30E8 binary var. att with BT on; 2000 navigation 0500 status (useless) If there are two ping types: 0001 fixed leader 0081 etc 0101 0201 0301 0401 The header is the only type that is not duplicated. mode 1 BB; mode 10 NB If only one, this is it; if two ping types, then 0100 will always be BB, 0101 will be NB, etc. ---------------------------------------------------------------------- changing everything to use an object of 'os' to overload functions a = read(instclass,'../../ping/leg3007_000000.ENS',... 'range', [1 1],'vars', {'all', 'nav'}) a = vel: [75x4 double] cor: [75x4 double] amp: [75x4 double] pg: [75x4 double] heading: 91.9100 pitch: 0 roll: 0 soundspeed: 1543 temperature: 29.1200 bt: [1x1 struct] nav: [1x1 struct] dday: 259.1532 ens_num: 1 num_pings: 1 config: [1x1 struct] depth: [1x75 double] error: [] K>> a = read(instclass,'../../ping/leg3007_000001.ENS',... 'range', [1 1],'vars', {'all', 'nav'}) a = vel: [75x4x0 double] cor: [75x4x0 double] amp: [75x4x0 double] pg: [75x4x0 double] heading: [0x1 double] pitch: [0x1 double] roll: [0x1 double] soundspeed: [0x1 double] temperature: [0x1 double] bt: [1x1 struct] nav: [1x1 struct] dday: [0x1 double] ens_num: [0x1 double] num_pings: [0x1 double] config: [1x1 struct] depth: [1x75 double] error: [] avg will say "attempt to grow along ambiguous dimension" at this line a.vel(:,ii) = uu + mstdgap(ulayer); % simple mean for now ---------------------------------------------------------------------- NOTE: if we want to see what all the parameters are, we'll have to print out most of these: a = read(instclass,'file','range', [1 1],'vars', {'all', 'nav'}) a = vel: [75x4x0 double] cor: [75x4x0 double] amp: [75x4x0 double] pg: [75x4x0 double] heading: [0x1 double] pitch: [0x1 double] roll: [0x1 double] soundspeed: [0x1 double] temperature: [0x1 double] bt: [1x1 struct] nav: [1x1 struct] dday: [0x1 double] ens_num: [0x1 double] num_pings: [0x1 double] config: [1x1 struct] depth: [1x75 double] error: [] a.bt ans = vel: [4x0 double] range: [4x0 double] cor: [4x0 double] amp: [4x0 double] rssi: [4x0 double] a.nav = sec_pc_minus_utc: [0x1 double] txy1: [3x0 double] txy2: [3x0 double] a.config yearbase: 2000 nbytes: 1786 ndata: 10 offsets: [10x1 double] ids: [10x1 double] nbeams_used: 4 ncells: 75 cell: 16 blank: 16 mode: 10 code_reps: 0 EZ: 81 bin1distance: 31.9700 pulse: 16 lag: 2.9100 head_align: 0 head_bias: 0 sysconfig: [1x1 struct] tr_depth: 5 bt: [1x1 struct] a.config.sysconfig ans = frequency: 38 up: 0 convex: 1 angle: 30 a.config.bt ans = BP: NaN BC: NaN BA: NaN BX: NaN