SCALE-RM
read_toshiba.h
Go to the documentation of this file.
1 /*----------------------------------------------------------------------
2  FILE NAME: read_toshiba.h
3  created by Shinsuke Satoh and modified by Shigenori Otsuka
4 ----------------------------------------------------------------------*/
5 
6 #define RDIM 600 /* max number of Range bins */
7 #define AZDIM 320 /* max number of AZ angles */
8 #define ELDIM 121 /* max number of AZ angles */
9 #define NFNAME 128 /* number of characters for file names */
10 #define DMISS -327.68 /* missing data in output (& input data offset) */
11 #define DNOISE -327.00 /* noise level data in output */
12 
13 #define RAD (3.141592653589/180.0)
14 
15 typedef struct {
16  int s_yr, s_mn, s_dy, s_hr, s_mi, s_sc;
17  int e_yr, e_mn, e_dy, e_hr, e_mi, e_sc;
18  int data_size;
19  int total_step_num, el_num, total_el_num;
20  int hit_num, sector_num, range_num, range_res, mesh_size;
21  double latitude, longitude, altitude;
22  float start_angle, end_angle, mesh_lsb, mesh_offset;
23  float tx_freq, tx_power, pulse_len_l, pulse_len_s;
24  float ant_gain, beam_wid_h, beam_wid_v;
25  float tx_loss, rx_loss, smin_h, smin_l;
26  float prf_l, prf_h, zr_b, zr_beta;
27 } pawr_header;
28 
29 /*
30 int jitdt_read_toshiba(int n_type, char *jitdt_place, pawr_header hd[n_type],
31  float az[n_type][ELDIM][AZDIM], float el[n_type][ELDIM][AZDIM],
32  float rtdat[n_type][ELDIM][AZDIM][RDIM]);
33 */
34 
35 int decode_toshiba(size_t bufsize, unsigned char *buf, pawr_header *hd,
36  float az[ELDIM][AZDIM], float el[ELDIM][AZDIM],
37  float rtdat[ELDIM][AZDIM][RDIM]);
pawr_header::e_yr
int e_yr
Definition: read_toshiba.h:17
pawr_header::beam_wid_v
float beam_wid_v
Definition: read_toshiba.h:24
RDIM
#define RDIM
Definition: read_toshiba.h:6
decode_toshiba
int decode_toshiba(size_t bufsize, unsigned char *buf, pawr_header *hd, float az[ELDIM][AZDIM], float el[ELDIM][AZDIM], float rtdat[ELDIM][AZDIM][RDIM])
Definition: read_toshiba.c:97
pawr_header::total_step_num
int total_step_num
Definition: read_toshiba.h:19
pawr_header
Definition: read_toshiba.h:15
pawr_header::sector_num
int sector_num
Definition: read_toshiba.h:20
pawr_header::longitude
double longitude
Definition: read_toshiba.h:21
pawr_header::start_angle
float start_angle
Definition: read_toshiba.h:22
AZDIM
#define AZDIM
Definition: read_toshiba.h:7
pawr_header::zr_beta
float zr_beta
Definition: read_toshiba.h:26
pawr_header::tx_power
float tx_power
Definition: read_toshiba.h:23
pawr_header::data_size
int data_size
Definition: read_toshiba.h:18
pawr_header::tx_loss
float tx_loss
Definition: read_toshiba.h:25
ELDIM
#define ELDIM
Definition: read_toshiba.h:8
pawr_header::s_yr
int s_yr
Definition: read_toshiba.h:16