-
Notifications
You must be signed in to change notification settings - Fork 0
/
Configuration_BURNS.m
128 lines (114 loc) · 4.57 KB
/
Configuration_BURNS.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% MARINA (Multi annual radiation information approach)
% A TOOL FOR SOLAR RADIATION SERIES GENERATION
%
% Developed in the context of ASTRI
%
% CONFIGURATION OF VARIABLES
% Version of July, 2015. L. Ramírez; At CSIRO.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% CONFIGURATION OF VARIABLES FOR THE THREATMENT OF
%
% CASE: BURNS UNIVERSITY OF OREGON
% INPUT INFORMATION
%---------------------------------------------------------
% ENTRADAS:
% filedata: datos para la creación del nombre de fichero de salida
% filedata.loc: localidad
% filedata.own: propietario
% filedata.num: numero de estación (de igual localidad y propietario)
% filedata.ID : identificador del fichero
% filedata.name: nombre identificador de los datos
% geodata: datos geográficos de la ubicación
% geodata.lat: latitud [ºN]
% geodata.lon: longitud [ºE]
% geodata.alt: altitud [m]
% timedata: datos asociados a la referencia horaria de los datos
% timedata.timezone: zona horaria ('UTC+','VALOR')
% timedata.num_obs: numero de observaciones pro hora
% timedata.etiqueta: instante de la etiqueta de los datos
% 0 al principio, 0.5 si al medio, 1 si al final
% nodata:
% nodata: nodata value
% fechas: vector de fechas de los datos
% ha de corresponder con los vectores de los datos de entrada
% la frecuencia temporal es indistinta
% [aaaa mm dd hh mm] en caso de datos minutales
% GHI,DNI,DHI,OTRAS
% vectores de igual longitud, y con información de los datos
% correspondientes.
% OTRAS: matriz con otras variables adicionales
% Specific of threatment
anno_ini = 2010;
anno_end = 2010; % use the seam as ini in case 1 year.
% Specific for Alice Spring
zonaH = -8;
name = 'BURNS'; % ID
loc = 'BUR';
owner_station = 'UOR'; % Boureau of Meterology
lat = 43.5862;
lon = -119.0541;
alt = 100;
ref_temp = 'UTC-08'; % TSV / UTCSXX (S signo; XX corrección)
time_stamp = 0; % Values: 0/0.5/1 related to beguining/mid/end
num_obs = 1;
no_data = NaN;
%QC
var = [0 1 0]; % Variables for QC process [GHI DNI DHI] 1(yes)/0(no)
ofset_empirico = 0; % Just in case the results seems have timestamp mistakes
max_rad = 1400; % max. solar radiation value for the figures
level = 1; % level for validation
%fichero de resultado de la validación
file_val = 'BUR00-ETS-01.xlsx';
% numero de preseleccionados para la seleccion de candidatos
% 1 si ya tenemos los valores objetivos
num_pre=1;
name_input_generation= 'INPUT-GENERATION';
name_out_generation = 'OUTPUT2-GENERACION';
% Max. num of changes allowed each month.
max_cambios=30;
% Max. distance in the days used for the sustitution
dist_dias=5;
% Max. tiems that a day can be repeated in the month
max_uso=4;
%---------------------------------------------------------
% datos.filedata.own: owner
% datos.filedata.loc: location
% datos.filedata.name: name for the output information
% datos.geodata.lat => latitude [ºN]
% datos.geodata.lon => longitude[ºE]
% datos.geodata.alt => height [m]
% datos.timedata.timezone => zona horaria
% datos.timedata.etiq => 0 ini int; 0.5 centre int; 1 end int.
% datos.timedata.num_obs => num obs / hora
% datos.nodata => nodata value
% datos.mat => matriz:AAAA MM DD HH mm ss (AS INPUT) GHI DNI DHI
% DO NOT CHANGE THE NEXT
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
num_annos = anno_end-anno_ini+1;
filedata.own = owner_station; % Bureau of MEteorology
filedata.loc = loc; %
filedata.name = strcat(name);
filedata.num = '01'; % num of the station (could be more than one station)
timedata.timezone = ref_temp;
timedata.etiq = time_stamp;
timedata.num_obs = num_obs;
nodata = no_data;
geodata.lat = lat;
geodata.lon = lon;
geodata.alt = alt;
%-----------------------------------------------------------------
ruta_in = '..\P90'; %INPUT DATA IN ANNUAL FOLDERS INSIDE: \aaaa\
%ruta_meteo = '..\METEOData'; %Meteo data in annual excel files
ruta_format = '..\OUTPUT_Burn\1_FORMAT';
ruta_qc = '..\OUTPUT_Burn\2_QC';
ruta_val = '..\OUTPUT_Burn\3_VALIDATION';
ruta_cases = '..\OUTPUT_Burn\4_CASES';
ruta_tmy = '..\OUTPUT_Burn\5_TMY';
%ruta_trans = '..\OUTPUT\6_TRANS';
file_IN=strcat(ruta_val,'\',file_val);
% XLS file with the INPUT information for the series generation
filename_input=strcat(ruta_cases,'\',name_input_generation);
% XLS fiel with the information of the output series
filename_out =strcat(ruta_tmy,'\',name_out_generation);
num_dias_mes=[31 28 31 30 31 30 31 31 30 31 30 31];