/*  BasyouhuC200005.h ver.1.00
 *	Special header file for BasyouhuC200005.c
 *		--- for Japan Discretionary Time in May-Aug, 2000 ---
 *		--- for conjugate study
 *			with SyowaS&E/Sanae/Halley/Tiger/Ker/IceE/Fin
 *
 *	********************************
 *	* This version _DOES_ include  *
 *	* the new Kerguelen radar code *
 *	*  & the new Kodiak radar code *
 *	********************************
 *
 *							on Apr.18, 2000
 *							by  Sessai@NIPR
 */

	// some special beams such as spbm[mode][1][?]>=0 will be treated
	// also as normal beams, (scan will be 0 for them.)

/////////////////////////////////////
#ifdef TIGER
#ifndef LEICESTER
#define LEICESTER
#endif
#endif
/////////////////////////////////////

/////////////////////////////////////
//#ifndef KODIAK
//#define KODIAK 7
////#define KODIAK ALASKA
//#endif
/////////////////////////////////////

#define MODEMAX 1
//XXX#define SUBMODEMAX 1
#define SUBMODEMAX 2
//#define SPBMMAX 14
#define SPBMMAX 12
#define SPBMNUM  4	// means there is AT MOST SPBMNUM spec_beams...

#define SP_SMR_B -1
#define SP_SMR_P 0

unsigned long spdate[MODEMAX]={29991231};

#if SD_RADAR_ID == GOOSEBAY

#define SPRSEP 45
short int sptgate[MODEMAX][SUBMODEMAX-1]={{24}};
short int spintt[MODEMAX][SUBMODEMAX]={{ 3}};
short int sponly[MODEMAX][SUBMODEMAX]={{ 0}};
short int spstbm[MODEMAX][SUBMODEMAX]={{ 0}};
short int spedbm[MODEMAX][SUBMODEMAX]={{15}};
//short int spbm[MODEMAX][SUBMODEMAX][2][SPBMNUM]={{{{11, 2},{12, 3}}}};
short int spbm[MODEMAX][SUBMODEMAX][2][SPBMNUM]
					={{{{11, 2,11, 2},{12, 3,12, 3}}}};
		// 2 for SPA(South Pole), 11 for STF
unsigned short int spsmbm[MODEMAX][SUBMODEMAX]={{0x0d24}};	// ba852

#elif SD_RADAR_ID == KAPUSKASING

#define SPRSEP 45
short int sptgate[MODEMAX][SUBMODEMAX-1]={{24}};
short int spintt[MODEMAX][SUBMODEMAX]={{ 3}};
short int sponly[MODEMAX][SUBMODEMAX]={{ 0}};
short int spstbm[MODEMAX][SUBMODEMAX]={{14}};
short int spedbm[MODEMAX][SUBMODEMAX]={{ 0}};
//short int spbm[MODEMAX][SUBMODEMAX][2][SPBMNUM]={{{{ 6,-1},{ 1,-1}}}};
short int spbm[MODEMAX][SUBMODEMAX][2][SPBMNUM]
					={{{{ 6,-1,-1,-1},{ 1,-1,-1,-1}}}};
		// 6 for RIT
unsigned short int spsmbm[MODEMAX][SUBMODEMAX]={{0x0560}};	// a865
//unsigned short int spsmbm[MODEMAX][SUBMODEMAX]={{0x0520}};	// a85

#elif SD_RADAR_ID == SASKATOON

#define SPRSEP 45
short int sptgate[MODEMAX][SUBMODEMAX-1]={{24}};
short int spintt[MODEMAX][SUBMODEMAX]={{ 3}};
short int sponly[MODEMAX][SUBMODEMAX]={{ 0}};
short int spstbm[MODEMAX][SUBMODEMAX]={{ 1}};
short int spedbm[MODEMAX][SUBMODEMAX]={{15}};
//short int spbm[MODEMAX][SUBMODEMAX][2][SPBMNUM]={{{{10,-1},{ 9,-1}}}};
short int spbm[MODEMAX][SUBMODEMAX][2][SPBMNUM]
					={{{{10,-1,-1,-1},{ 9,-1,-1,-1}}}};
		// 10 for RIT
unsigned short int spsmbm[MODEMAX][SUBMODEMAX]={{0x0520}};	// a85

#elif SD_RADAR_ID == PRINCEGEORGE

Sorry! not ready yet!!!!

//#define OTHER
//#define BACKWARDS
//#define XCF 1
//#define STATUS
//#define DAY_START 16
//#define NIGHT_START 2
//#define DAY_FREQ 14300
//#define NIGHT_FREQ 10200
//#define DAY_MPINC 2400
//#define NIGHT_MPINC 2400
//#define DAY_FRANG 180
//#define NIGHT_FRANG 180
//#define NRANG 70
//#define SPECIAL_BEAM 4
//#define MAX_ATTEN 2
//#define PROT_ATTEN 3
//#define RSEP_SWITCH 0
//#define SMR_BEAM_A 5
//#define SMR_BEAM_B 10
//#define SMR_PWR 3

//#elif SD_RADAR_ID == KODIAK
#elif SD_RADAR_ID == ALASKA

#define SPRSEP 45
short int sptgate[MODEMAX][SUBMODEMAX-1]={{24}};
short int spintt[MODEMAX][SUBMODEMAX]={{ 3}};
short int sponly[MODEMAX][SUBMODEMAX]={{ 0}};
short int spstbm[MODEMAX][SUBMODEMAX]={{ 1}};
short int spedbm[MODEMAX][SUBMODEMAX]={{15}};
//short int spbm[MODEMAX][SUBMODEMAX][2][SPBMNUM]={{{{ 8,-1},{12,-1}}}};
short int spbm[MODEMAX][SUBMODEMAX][2][SPBMNUM]
					={{{{ 8,-1,-1,-1},{12,-1,-1,-1}}}};
		// 8 for nothing just the center of FOV...
unsigned short int spsmbm[MODEMAX][SUBMODEMAX]={{0x0520}};	// a85

#elif SD_RADAR_ID == ICEWEST

#define SPRSEP 45
short int sptgate[MODEMAX][SUBMODEMAX-1]={{24}};
short int spintt[MODEMAX][SUBMODEMAX]={{ 3}};
short int sponly[MODEMAX][SUBMODEMAX]={{ 0}};
short int spstbm[MODEMAX][SUBMODEMAX]={{15}};
short int spedbm[MODEMAX][SUBMODEMAX]={{ 0}};
//short int spbm[MODEMAX][SUBMODEMAX][2][SPBMNUM]={{{{ 6, 5},{ 8, 5}}}};
short int spbm[MODEMAX][SUBMODEMAX][2][SPBMNUM]
					={{{{ 6, 5, 6, 5},{ 8, 5, 8, 5}}}};
		// 5(or4) for SPA(South Pole), 6 for STF
unsigned short int spsmbm[MODEMAX][SUBMODEMAX]={{0x0560}};	// a865

#elif SD_RADAR_ID == ICEEAST

#define SPRSEP 45
short int sptgate[MODEMAX][SUBMODEMAX-1]={{24}};
short int spintt[MODEMAX][SUBMODEMAX]={{ 3}};
short int sponly[MODEMAX][SUBMODEMAX]={{ 0}};
short int spstbm[MODEMAX][SUBMODEMAX]={{ 0}};
short int spedbm[MODEMAX][SUBMODEMAX]={{14}};
short int spbm[MODEMAX][SUBMODEMAX][2][SPBMNUM]
					={{{{ 2, 4, 6, 4},{ 4, 1, 2, 1}}}};
				    //	={{{{ 2, 4, 6, 4},{ 4, 1, 2,-1}}}};
		// 4 for ZHO(Zhongshan), 5 for LYR(LongYearBean)
unsigned short int spsmbm[MODEMAX][SUBMODEMAX]={{0x0474}};	// a6542

#elif SD_RADAR_ID == FINLAND

#define SPRSEP 45
short int sptgate[MODEMAX][SUBMODEMAX-1]={{24}};
short int spintt[MODEMAX][SUBMODEMAX]={{ 3}};
short int sponly[MODEMAX][SUBMODEMAX]={{ 0}};
short int spstbm[MODEMAX][SUBMODEMAX]={{14}};
short int spedbm[MODEMAX][SUBMODEMAX]={{ 0}};
short int spbm[MODEMAX][SUBMODEMAX][2][SPBMNUM]
					={{{{ 2, 4, 6, 4},{ 0, 3, 2, 3}}}};
		// 4(or3) for ZHO(Zhongshan), 9 for LYR(LongYearBean)
unsigned short int spsmbm[MODEMAX][SUBMODEMAX]={{0x0474}};	// a6542

#elif SD_RADAR_ID == HALLEY

#define SPRSEP 45
short int sptgate[MODEMAX][SUBMODEMAX-1]={{24}};
short int spintt[MODEMAX][SUBMODEMAX]={{ 3}};
//short int spintt[MODEMAX][SUBMODEMAX]={{ 4}};	// is better????
short int sponly[MODEMAX][SUBMODEMAX]={{ 0}};
short int spstbm[MODEMAX][SUBMODEMAX]={{ 0}};
short int spedbm[MODEMAX][SUBMODEMAX]={{14}};
short int spbm[MODEMAX][SUBMODEMAX][2][SPBMNUM]
					={{{{ 1, 3, 6, 3},{ 8,11, 6,11}}}};
		// 3 for SPA(South Pole), 12 for STF
unsigned short int spsmbm[MODEMAX][SUBMODEMAX]={{0x014a}};	// 8631

#elif SD_RADAR_ID == SANAE

#define SPRSEP 45
short int sptgate[MODEMAX][SUBMODEMAX-1]={{24}};
short int spintt[MODEMAX][SUBMODEMAX]={{ 3}};
short int sponly[MODEMAX][SUBMODEMAX]={{ 0}};

//////if Sanae's boresite=173.20 !!!!!!!!
short int spstbm[MODEMAX][SUBMODEMAX]={{15}};
short int spedbm[MODEMAX][SUBMODEMAX]={{ 1}};
short int spbm[MODEMAX][SUBMODEMAX][2][SPBMNUM]
					={{{{ 7, 5, 3, 5},{ 0, 3, 2, 3}}}};
		// 5 for SPA(South Pole), 12 for STF
unsigned short int spsmbm[MODEMAX][SUBMODEMAX]={{0x10a8}};	// c753

#elif SD_RADAR_ID == SYOWA

#define SPRSEP 45
short int sptgate[MODEMAX][SUBMODEMAX-1]={{24}};
short int spintt[MODEMAX][SUBMODEMAX]={{ 3}};
short int sponly[MODEMAX][SUBMODEMAX]={{ 0}};
short int spstbm[MODEMAX][SUBMODEMAX]={{14}};
short int spedbm[MODEMAX][SUBMODEMAX]={{ 0}};
short int spbm[MODEMAX][SUBMODEMAX][2][SPBMNUM]
					={{{{ 5, 3, 1, 3},{ 8,11,10,11}}}};
		// 3 for SPA(South Pole), 4 for STF
unsigned short int spsmbm[MODEMAX][SUBMODEMAX]={{0x402a}};	// e531

#elif SD_RADAR_ID == SYOWAEAST

#define SPRSEP 45
short int sptgate[MODEMAX][SUBMODEMAX-1]={{24}};
short int spintt[MODEMAX][SUBMODEMAX]={{ 3}};
short int sponly[MODEMAX][SUBMODEMAX]={{ 0}};
short int spstbm[MODEMAX][SUBMODEMAX]={{ 0}};
short int spedbm[MODEMAX][SUBMODEMAX]={{14}};
short int spbm[MODEMAX][SUBMODEMAX][2][SPBMNUM]
					={{{{ 7, 5, 7, 9},{10, 9,10, 7}}}};
		// 7 for ZHO(Zhongshan), 9 for LYR(LongYearBean)
unsigned short int spsmbm[MODEMAX][SUBMODEMAX]={{0x12a1}};	// c9750

#elif SD_RADAR_ID == TIGERTAS

#define SPRSEP 45
short int sptgate[MODEMAX][SUBMODEMAX-1]={{24}};
short int spintt[MODEMAX][SUBMODEMAX]={{ 3}};
short int sponly[MODEMAX][SUBMODEMAX]={{ 0}};

#ifdef BACKWARDS
short int spstbm[MODEMAX][SUBMODEMAX]={{14}};
short int spedbm[MODEMAX][SUBMODEMAX]={{ 0}};
short int spbm[MODEMAX][SUBMODEMAX][2][SPBMNUM]
					={{{{ 7, 9, 7, 5},{10, 9,10, 7}}}};
		// 5 for DRV, 11 for another cusp region
unsigned short int spsmbm[MODEMAX][SUBMODEMAX]={{0x07a1}};	// a98750

#else
short int spstbm[MODEMAX][SUBMODEMAX]={{ 0}};
short int spedbm[MODEMAX][SUBMODEMAX]={{14}};
short int spbm[MODEMAX][SUBMODEMAX][2][SPBMNUM]
					={{{{ 7, 5, 7, 9},{10, 9,10, 7}}}};
		// 5 for DRV, 11 for another cusp region
unsigned short int spsmbm[MODEMAX][SUBMODEMAX]={{0x07a1}};	// a98750

#endif

#elif SD_RADAR_ID == KERGUELEN

#define SPRSEP 45
short int sptgate[MODEMAX][SUBMODEMAX-1]={{24}};
short int spintt[MODEMAX][SUBMODEMAX]={{ 3}};
short int sponly[MODEMAX][SUBMODEMAX]={{ 0}};
short int spstbm[MODEMAX][SUBMODEMAX]={{14}};
short int spedbm[MODEMAX][SUBMODEMAX]={{ 0}};
short int spbm[MODEMAX][SUBMODEMAX][2][SPBMNUM]
					={{{{ 8, 6, 4, 6},{ 4, 1, 2, 1}}}};
		// 6 for ZHO(Zhongshan), 10 for LYR(LongYearBean)
unsigned short int spsmbm[MODEMAX][SUBMODEMAX]={{0x0151}};	// 8640

#else

// should never get here... just a dummy...
Nna Ahona! Are you King Salmon, or TigerNZ radar or someone else?!?!
//#define SPRSEP 45
//short int spintt[MODEMAX]={ 3};
//short int sponly[MODEMAX]={ 0};
//short int spstbm[MODEMAX]={ 0};
//short int spedbm[MODEMAX]={15};
//short int spbm[MODEMAX][2][SPBMNUM]={{{ 5,-1,-1},{ 8,-1,-1}}};
//unsigned short int spsmbm[MODEMAX]={0xffff};

#endif