A_scriptstart_katrin.m 5.69 KB
Newer Older
Achim Morschhauser's avatar
Achim Morschhauser committed
1
2
3
4
5
6
7
8
9
10
11
12

% -> 1-sec Program für Kyoto
% produce_IAGA_2002_min = '0'; % kann auch 'n' sein, warum?
% produce_IAGA_2002_sec = '0'; % kann auch 'n' sein, warum?


% -------------------------------------------------------------------------
% Pflicht-Parameter
% -------------------------------------------------------------------------

clear all
close all
Jürgen Matzka's avatar
Jürgen Matzka committed
13
14
station  = ['SMA0g']
%station  = ['SHE0g';'TTB1l']
Achim Morschhauser's avatar
Achim Morschhauser committed
15
16
17
%station  = ['VNA1s']
%station  = ['NGK0g']
%station  = ['TDC1d']
Jürgen Matzka's avatar
Jürgen Matzka committed
18
19
20
21
22
%station  = ['TTB1l']
%station  = ['BFO1s']
%station  = ['NGK0g';'NGK1g';'NGK2g';'NGK6g';'WNG0g';'WNG1g';'WNG2g';'WNG3g';'VNA1s';'SHE0g';'VSS0g';'TTB0g';'TTB1l';'VSS1g';'SMA0g';'PUL0g';'TEL0g'];
starttime = '2017-05-08';
stoptime  = '2017-05-11';    % nicht für Varlab
Achim Morschhauser's avatar
Achim Morschhauser committed
23
24
25
26
27
28
29
30
31
32
33
34


% -------------------------------------------------------------------------
% ppmsec2cdf
% -------------------------------------------------------------------------
% braucht keine weiteren Paramter
ppmsec2cdf('starttime',starttime,'stoptime',stoptime,'station',station);


% -------------------------------------------------------------------------
% cdf2def
% -------------------------------------------------------------------------
Jürgen Matzka's avatar
Jürgen Matzka committed
35

Achim Morschhauser's avatar
Achim Morschhauser committed
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
% - produce_IAGA_2002_min/sec '0' (default)     no output
%                             'P'               provisional data
%                             'D'               definitive data
%                             'Q'               quasi-definitive data
%                             'V'               variation (V)
%
% - output_resolution  '0' (default)    don't write mat-file
%                      's'              means that also 1-second values are
%                                       saved in matlab format.
%
% - calculate_IAGA_F    'n' (default)  888888 is set in the F-column for
%                                      types Q, D, P, V
%                       'y'            for type other than V), then F is
%                                      calculated from XYZ
%
% - output_format       'c' (default)  means calibrated, all types of files
%                       'r'            means raw, only raw-file 1 second 
%                                      and IAGA V
%
    
% -------------------------------------------------------------------------
% varlab
% -------------------------------------------------------------------------
% geht auch direkt aufzurufen
varlab_01('parfile','parameters_win_JM.txt','date',starttime,...
    'station',station(1:4));



Jürgen Matzka's avatar
Jürgen Matzka committed
65

Achim Morschhauser's avatar
Achim Morschhauser committed
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
% % -------------------------------------------------------------------------
% % Start programs
% % -------------------------------------------------------------------------
% 
% ppmsec2cdf('starttime',starttime,'stoptime',stoptime,'station',station);
% 
% cdf2def('starttime',starttime,'stoptime',stoptime,...
%         'station',station)
% 
% cdf2def('starttime',starttime,'stoptime',stoptime,...
%         'station',station,...
%         'produce_IAGA_2002_min',produce_IAGA_2002_min,...
%         'produce_IAGA_2002_sec',produce_IAGA_2002_min)
%     
%     varlab_01('parfile','parameters_win_JM.txt','date',starttime,...
%     'station',station(1:4));
% 
% for s=1:size(station,1)
%     
%     h=varlab_01('parfile','parameters_win_JM.txt','date',starttime,...
%     'station',station(s,1:4));
%     waitfor(h);
%     
%     pressed=questdlg('Aufrufen von cdf2def ?','Was jetzt?',...
%         'Ja','Nein','Abbrechen','Nein');
%     switch pressed
%         case 'Nein'
%             continue
%         case 'Abbrechen'
%             break
%     end
%             
%     cdf2def('starttime',starttime,'stoptime',stoptime,...
%         'station',station(s,:),...
%         'produce_IAGA_2002_min',produce_IAGA_2002_min,...
%         'produce_IAGA_2002_sec',produce_IAGA_2002_min);
%     
% end

% -------------------------------------------------------------------------
% FROM cdf2def_auto
% -------------------------------------------------------------------------

%station_array = 'NGK0g';

 %station_array = ['BFO1s';'VNA1s']
 %station_array = 'VNA1s'
 %station_array = ['MAR1l']
 %station_array = 'BFO1s';
 %station_array = 'MSN0g';
 %station_array = 'VNA1s';
 %station_array = 'TDC1d';
 %station_array = 'NGK0g';
 %station_array = 'WNG1g';
 %station_array = 'BFO1s'; 
 %station_array = 'TTB0g';
 %station_array = 'SMA0g';
 %station_array = 'VSS0g';
 %station_array = 'SHE0g';
% station_array = [...
%'TDC1d';...%  1
%'ROE1d';...%  2 
%'BFE4d';...%  3
%'BFE6d';...%  4
%'NAQ4d';...%  5
%'NAQ6d';...%  6
%'FHB1d';...%  7
%'GHB1d';...%  8
%'SKT1d';...%  9
%'STF1d';...% 10
%'ATU1d';...% 11
%'GDH4d';...% 12
%'GDH6d';...% 13
%'UMQ1d';...% 14
%'UPN1d';...% 15
%'KUV1d';...% 16
%'SVS1d';...% 17
%'TAB1d';...% 18
%'THL4d';...% 19
%'THL6d';...% 20
%'NRD1d';...% 21
%'DMH1d';...% 22
%'SCO1d';...% 23
% 'AMK1d';...%
% ];  % 24

% station_array = [...
% %'TDC1d';...%  1
% %'ROE1d';...%  2 
% %'BFE4d';...%  3
% %'BFE6d';...%  4
% %'NAQ4d';...%  5
% 'NAQ6d';...%  6
% %'FHB1d';...%  7
% %'GHB1d';...%  8
% 'SKT1d';...%  9
% 'STF1d';...% 10
% 'ATU1d';...% 11
% %'GDH4d';...% 12
% 'GDH6d';...% 13
% 'UMQ1d';...% 14
% %'UPN1d';...% 15
% %'KUV1d';...% 16
% %'SVS1d';...% 17
% %'TAB1d';...% 18
% %'THL4d';...% 19
% %'THL6d';...% 20
% %'NRD1d';...% 21
% %'DMH1d';...% 22
% %'SCO1d';...% 23
% % 'AMK1d';...%
% ];  % 24


% station_array = 'THL6d';
% station_array = 'GDH6d';
% station_array = 'NAQ6d';
% station_array = 'TDC1d';
% station_array = 'SHE0g';
% station_array = 'VNA1s';
%  station_array = 'VSS0g';
%  station_array = 'LOK0g';
  
  
  
  
% station_array = [...   % all variometer stations
%      'TAB1d';...%
%      'SVS1d';...%
%     'KUV1d';...%
%     'UPN1d';...%
%     'UMQ1d';...%
%     'ATU1d';...%
%     'STF1d';...%
%     'SKT1d';...%
%     'GHB1d';...%
%     'FHB1d';...%
%     'STN1d';...
%     'DNB1d';...
%     'SCO1d';...
%     'AMK1d'...
%      ];  %