DEFINE_STRUCT ANCILLARY_1 6

  ELEM  1  SHORT    pgs_sample             none
                                           /* Number of pings in sample  */
  FORMAT   "\nANCILLARY 1 :\n\nnumber of pings in sample............ %6d"  GO  NULL
  ELEM  1  FLOAT    tr_temp                C
                                           /* Mean temp of transducer    */
  FORMAT   "\nmean temperature of transducer....... %6.2e" go NULL
  ELEM  1  FLOAT    snd_spd_used           m/s
                                           /* Sound speed used by DAS    */
  FORMAT   "\nsound speed used..................... %6.2e" go NULL
  ELEM  1  FLOAT    best_snd_spd           m/s
                                           /* Best estimated sound speed */
  FORMAT   "\nbest estimate of sound speed......... %6.2e" go NULL
  ELEM  1  FLOAT    mn_heading             deg
                                           /* Mean heading                */
  FORMAT   "\nmean heading as in \"test\"............ %6.2e" go NULL
  ELEM  5  SHORT    unassigned             none
  FORMAT   " "  go NULL
DEFINE_STRUCT ANCILLARY_2 21

  ELEM  1  FLOAT    avg_fwd_speed          m/s
                                           /* (ship rel to water)        */
  ELEM  1  FLOAT    avg_stbd_speed         m/s
                                           /* (ship rel to water)        */
  ELEM  1  FLOAT    std_fwd_speed          m/s
                                           /* std dev; ship rel to water */
  ELEM  1  FLOAT    std_stbd_speed         m/s
                                           /* std dev; ship rel to water */
  ELEM  1  FLOAT    avg_u_rel              m/s
                                           /* ship eastward rel to water */
  ELEM  1  FLOAT    avg_v_rel              m/s
                                           /* ship north rel to water    */
  ELEM  1  FLOAT    avg_w_rel              m/s
                                           /* ship upward from resolved  */
  ELEM  1  FLOAT    last_temp              C
                                           /* Last temperature           */
  ELEM  1  FLOAT    last_heading           deg
                                           /* Last heading in sample     */
  ELEM  1  FLOAT    last_pitch             deg
                                           /* Last pitch in sample       */
  ELEM  1  FLOAT    last_roll              deg
                                           /* Last roll in sample        */
  ELEM  1  FLOAT    mn_pitch               deg
                                           /* Mean pitch in sample       */
  ELEM  1  FLOAT    mn_roll                deg
                                           /* Mean roll in sample        */
  ELEM  1  FLOAT    std_temp               C
                                           /* Std dev temperature        */
  ELEM  1  FLOAT    std_heading            deg
                                           /* Std dev heading in sample  */
  ELEM  1  FLOAT    std_pitch              deg
                                           /* Std dev pitch in sample    */
  ELEM  1  FLOAT    std_roll               deg
                                           /* Std dev roll in sample     */
  ELEM  1  SHORT    ocean_depth            m
                                           /* Depth of the ocean         */
  ELEM  1  SHORT    max_amp_bin            none
  ELEM  1  SHORT    last_good_bin          none
  ELEM  4  SHORT    unassigned             none

DEFINE_STRUCT BOTTOM_TRACK 3
  ELEM  1  FLOAT    E_W_comp_vel           m/s
  ELEM  1  FLOAT    N_S_comp_vel           m/s
  ELEM  1  FLOAT    bottom_depth           m

DEFINE_STRUCT NAVIGATION 4
  ELEM  1  DOUBLE   loran_lat              deg
  ELEM  1  DOUBLE   loran_lon              deg
  ELEM  1  DOUBLE   loran_vel              m/s
  ELEM  1  DOUBLE   loran_dir              none

DEFINE_FORMAT ACCESS_VARIABLES 8
  FORMAT  first_good_bin  "\nACCESS VARIABLES :\n\n\tfirst_good_bin...............\t%d\n" go NULL
  FORMAT  last_good_bin   "\tlast_good_bin................\t%d\n" go NULL
  FORMAT  U_ship_absolute "\tabsolute ship U velocity.....\t%g\n" go NULL
  FORMAT  V_ship_absolute "\tabsolute ship V velocity.....\t%g\n" go NULL
  FORMAT  user_flag_1     "\tuser flags...................\t%d\n" go NULL
  FORMAT  user_flag_2     "\t                             \t%d\n" go NULL
  FORMAT  user_flag_3     "\t                             \t%d\n" go NULL
  FORMAT  user_flag_4     "\t                             \t%d\n" go NULL

