12 #define SPC_LAT 44.6547
13 #define SPC_LON 11.6236
15 #define GAT_LAT 44.7914
16 #define GAT_LON 10.4992
19 using namespace radarelab;
28 vector<double> make_elev_array(
const int* data,
unsigned count)
32 for (
unsigned i = 0; i < count; ++i)
33 res.push_back(data[i] * 360. / 4096.);
38 namespace elaboradar {
51 radarSite.lat_r=GAT_LAT;
52 radarSite.lon_r=GAT_LON;
53 radarSite.height_r = 35.;
54 radarSite.antennaTowerHeight=25.;
55 radarSite.source=
"RAD:IYai,PLC:itgat,NOD:itgat ";
57 vpr_iaz_min=IAZ_MIN_GAT;
58 vpr_iaz_max=IAZ_MAX_GAT;
63 return getenv_default(
"FILE_DEM_GAT",
"../../PP+BLOC/dati/dem_Gatta.txt");
68 if (1 <= month && month <= 3)
69 return "../dati/FIRST_LEVEL_GAT_2006_INV";
70 else if (4 <= month && month <= 9)
71 return "../dati/FIRST_LEVEL_GAT_2006_PRI-EST";
73 return "../dati/FIRST_LEVEL_GAT_2006_AUT";
80 static const int elev_data[]={6,16,26,37,47,57,80,109,148,205,284, 300, 305, 310, 315 };
81 return make_elev_array(elev_data,
sizeof(elev_data) /
sizeof(
int));
83 static const int elev_data[]={6,16,26,37,47,57,80,109,148,205,284, 300, 305, 310, 315 };
84 return make_elev_array(elev_data,
sizeof(elev_data) /
sizeof(
int));
104 radarSite.lat_r=SPC_LAT;
105 radarSite.lon_r=SPC_LON;
106 radarSite.height_r = 11.;
107 radarSite.antennaTowerHeight=20.;
108 radarSite.source=
"WMO:16144,RAD:IY46,PLC:itspc,NOD:itspc ";
109 vpr_iaz_min=IAZ_MIN_SPC;
110 vpr_iaz_max=IAZ_MAX_SPC;
117 return getenv_default(
"FILE_DEM_SPC",
"../../PP+BLOC/dati/dem_SanPi.txt");
122 if (1 <= month && month <= 3)
123 return "../dati/FIRST_LEVEL_SPC_2006_INV";
124 else if (4 <= month && month <= 9)
125 return "../dati/FIRST_LEVEL_SPC_2006_PRI-EST";
127 return "../dati/FIRST_LEVEL_SPC_2006_AUT";
134 static const int elev_data[]={6,16,26,36,47,57,80,108,148,205,284,300,305,310,315};
135 return make_elev_array(elev_data,
sizeof(elev_data) /
sizeof(
int));
137 static const int elev_data[]={6,16,26,36,47,57,80,108,148,205,284,300,305,310,315};
138 return make_elev_array(elev_data,
sizeof(elev_data) /
sizeof(
int));
145 if (when >= 1380108600)
154 const Site& Site::get(
const char* name)
156 if (strcmp(name,
"GAT") == 0)
158 else if (strcmp(name,
"SPC") == 0)
163 throw domain_error(errmsg +
" is not a valid radar site name");
definisce struttura Site Contiene le informazioni di base che caratterizzano il sito radar ...
virtual const char * get_dem_file_name() const
Return dem file name.
virtual std::vector< double > get_elev_array(bool medium=false) const
return the elev array used
struttura Site custom per GAT
virtual const char * get_first_level_file_name(unsigned month) const
Return first_elev file name.
virtual unsigned char get_bin_wind_magic_number(time_t when) const
Return the magic number for wind to be used in clean procedure.
virtual const char * get_first_level_file_name(unsigned month) const
Return first_elev file name.
struttura Site custom per SPC
virtual unsigned char get_bin_wind_magic_number(time_t when) const
Return the magic number for wind to be used in clean procedure.
virtual std::vector< double > get_elev_array(bool medium=false) const
return the elev array used
const char * getenv_default(const char *envname, const char *default_value)
A wrapper of getenv, that returns 'default_value' if the given environment name is not defined...
virtual const char * get_dem_file_name() const
Return dem file name.