/***********************************************************************
Abstract
ewis_fileheader.h - Definitions of part of EWIS fileheader

(C) Copyright AU-System Communication AB 1994.

Change activity
1994-12-12      ARG  Created

Description

***********************************************************************/
#define pic_check_data  "PMERAWIS"

       /* type of data in stored files */

typedef enum {
	fil_pol_vol, 
	fil_xyz_vol, 
	fil_hor_pic, 
	fil_ver_pic,
	fil_disp, 
	fil_ver_pic_oblique
}pic_fil_type_t;

      /* picture type, type of computation done */
typedef enum {
	pic_none, 
	pic_cappi, 
	pic_max, 
	pic_hmax, 
	pic_etop,
	pic_acc, 
	pic_acc1, 
	pic_acc2, 
	pic_acc3, 
	pic_acc4, 
	pic_acc5, 
	pic_acc6, 
	pic_acc7,
	pic_forecast,
	pic_rreg, 
	pic_ereg, 
	pic_rsat, 
	pic_esat, 
	pic_rnat, 
	pic_enat, 
	pic_ppi,
	pic_comp_cappi, 
	pic_comp_max, 
	pic_comp_hmax, 
	pic_comp_etop, 
	pic_comp_acc , 
	pic_comp_acc1, 
	pic_comp_acc2, 
	pic_comp_acc3, 
	pic_comp_acc4, 
	pic_comp_acc5, 
	pic_comp_acc6, 
	pic_comp_acc7,
	pic_comp_ppi 
}pic_type_t;

      /* quantity type, qua_h for height in kilometers */
typedef enum {
	qua_none, 
	qua_z, 
	qua_r, 
	qua_w, 
	qua_t, 
	qua_hz, 
	qua_hw, 
	qua_ht,
	qua_a, 
	qua_h, 
	qua_vpi, 
	qua_zh, 
	qua_zdr, 
	qua_vil
}quant_t;

      /* projection, oblique=not parallel */
typedef enum {
	pro_hor, 
	pro_ver, 
	pro_ver_oblique
}proj_t;

       /* type, if only one picture, or time lapse, or other series */
typedef enum {
	ser_none, 
	ser_time, 
	ser_others
}ser_t;

      /* scale */
typedef enum {
	S120R1, 
	S240R2, 
	S480R2, 
	S240R1, 
	S960R4, 
	S1920R8, 
	S480R4,
	S960R2,  
	S1920R4, 
	S120R05, 
	S60R025
}scale_t;

      /* picture combination, com_vertical is not used */
typedef enum {
	com_none, 
	com_hor, 
	com_ver, 
	com_both
}cob_t;

      /* wether type used for presentation */
typedef enum {
	drizzle, 
	rain, 
	showers, 
	drysnow, 
	wetsnow
}weath_t;

/*-----------------------------------------------------------
FILE HEADER AND PICTURE COMMENT

Purpose 
   File header for picture files. A file holds at least one 
   picture. Each picture are described by a header block 
   followed by picture data.
   Note : the entire header record is NOT defined here
-----------------------------------------------------------*/

typedef struct
   {
   char 		ident [8];		/* contains "PMERAWIS" */
   int			header_len;
   char			date_time [12];
   char			time [8];		/* Really VAX/VMS time */
/*   scale_t		scale; */
/*   pic_type_t		pic_type; */
/*   quant_t		quant; */
/*   weath_t		weath; */
   char 		scale;
   char			pic_type;
   char			quant;
   char 		weath;
   char			comment1 [10];
   char			comment2 [30];
   char			sign [2];
   char			place [20];
   float		geo_coord [2];
   float		radar_coord[2];
   char 		radar_typ;
   int			east_uppb;
   float		east_size;
   int			north_uppb;
   float		north_size;
   int			hei_uppb;
   float		hei_size;
   int			pixel_cnt;
   int			store_min;
   int			store_max;
   float		store_slope;
   float		store_ord;
   int			store_offset;
   int			store_bits;
   int			store_align;
   char			store_quant[8];
   char			compressed;		/* boolean */
   float		rain_constant_a;
   float		rain_constant_b;
   float		geo_height;
   int			map_proj;
   int			map_subproj;
   float		map_centre [2];
   float		map_scale_east [5];
   float		map_scale_north [5];
} ewis_fileheader_t;
