0a1,16
> /**************************************************************************
>  transub_bbp.c 
> 
>         BASED on transub.c of NB proccessed transect files by UH.
> 
>         Modified Sept '95
>                 Dave Senciall
>                 NWAFC,DFO,Gov of Canada
> 
> The main change here is to handle the 2 paragraphs of direct commands that the
> BB format supports.
> 
> NOTE the 2nd parargraph code has not been tested . Its ok for 1 paragraph.
>                                                         ~Davsen
> **************************************************************************/
> 
3c19,20
< #include "tran_nbp.h"  /* NBP_ENSEMBLE_TYPE */
---
> #include "tran_bbp.h"  /* BBP_ENSEMBLE_TYPE */
> #include "tran_dcl.h"
5c22,23
< void set_depth(db_ens)
---
> /**************************************************************************/
> void set_depth(db_ens,ens)
6a25
> BBP_ENSEMBLE_TYPE *ens;
9,10c28,30
<    db_ens->depth[0] = db_ens->conf1.tr_depth + db_ens->conf1.blank_length +
<       0.5 * (db_ens->conf1.bin_length + db_ens->conf1.pls_length);
---
> /* BB encode middle of first bin depth as cm  ~davsen */
>     db_ens->depth[0] = db_ens->conf1.tr_depth + (ens->conf.bin_1_dist)/100.0 ;
> 
16c36
< 
---
> /**************************************************************************/
17a38
> 
19c40
< NBP_ENSEMBLE_TYPE *ens;
---
>  BBP_ENSEMBLE_TYPE *ens;
21c42,43
<    db_ens->bc_nbytes = 32 + ens->conf.direct_cmd_size;
---
>    db_ens->bc_nbytes = 32 + ens->conf.direct_cmd_size+ens->conf.direct_cmd2_size;
> 
26a49,53
> 
>    /* ens->conf.direct_cmd etc. are null-terminated strings.
>    The Name label line adds 11 characters and "DirectCommands:\n"
>    adds 16.  Null termination adds one, for a total of 28; hence
>    adding 32 to bc_nbytes above should be more than adequate. */
30c57,62
<    return(OK);
---
> 
> /* IF A 2nd PARARGRAPH IS PRESENT */
> 
>    if (ens->conf.direct_cmd2_size)
>    {
>       strcat (db_ens->bc,ens->conf.direct_cmd2);
32a65,67
>    return(OK);
> }
> /**************************************************************************/
