/**---------------------------------------------------------------------------
 ** 
 ** sbe.h -- 
 ** 
 ** Author          : Pierre Jaccard
 ** Created On      : 1999/07/15 16:26:00
 ** Last Modified By: Pierre Jaccard
 ** Last Modified On: 1999/07/16 20:08:19
 ** Update Count    : 7
 ** Directory       : /home/pego/pcd1/codas3c/gfi/src/libs/ctd/
 ** Version         : 0.0
 ** Status          : Unknown
 ** ---------------------------------------------------------------------- ** 
 ** DESCRIPTION: 
 ** 
 **    See associated file sbe.c
 ** 
 ** ---------------------------------------------------------------------- ** 
 ** REVISIONS: 
 ** ---------------------------------------------------------------------- ** 
 ** CHANGES: 
 **------------------------------------------------------------------------**/

#ifndef gfilib_ctd_sbe_already_included
#define gfilib_ctd_sbe_already_included

#include "geninc.h"
#include "ioserv.h"

typedef struct
{
   CHAR   ship_name[12];
   CHAR   cruise_id[12];
   CHAR   unused[24];
} CONFIGURATION_1_TYPE;

typedef struct
{
   USHORT station;
   USHORT cast_num;
   USHORT end_time;             /* station end-time (hour & minute only) */
   SHORT  inst;
   FLOAT  max_pressure;
   FLOAT  aver;
   FLOAT  rate;
   FLOAT  ocean_depth;
   CHAR   unused[20];  
} ANCILLARY_1_TYPE;

typedef struct
{
	USHORT station;
	USHORT num_bottles;
	FLOAT  ocean_depth;
	CHAR   unused[20];  
} BTL_ANCILLARY_1_TYPE;

#ifndef GFI_CTD_HEADER
static CHAR SHIP_NAME[12], CRUISE[12];
#endif

#if PROTOTYPE_ALLOWED

int get_sbe_header(FILE *fpasc, CONFIGURATION_1_TYPE *conf,
   ANCILLARY_1_TYPE *anc, YMDHMS_TIME_TYPE *prftime, DMSH_POSITION_TYPE
   position[], char *profile_comment);
int get_sbe_bottles(FILE *fpbtl, ANCILLARY_1_TYPE *anc,
										BTL_ANCILLARY_1_TYPE *btl_anc, FLOAT *data);

#else

int get_sbe_header();
int get_sbe_bottles();

#endif /* PROTOTYPE_ALLOWED */


#endif /* gfilib_ctd_sbe_already_included */
