
[id,data] = readCSV('../timeseries_0000.csv');

x = [500 6000];

% Moder
figure;
subplot(3,1,1);
plot(ex('PMaxau.Q',id,data));
line(x,[4000 4000],'color','r','linestyle','--');
line(x,[4400 4400],'color','r','linestyle','--');
axis([x, 0000 7000]);
ylabel('Abfluss Maxau [m3/s]');
subplot(3,1,2);
plot(ex('SModerB.Q',id,data));
axis([x, -80 180]);
ylabel('Zufluss / Abfluss [m3/s]');
subplot(3,1,3);
plot(ex('SModer.H',id,data));
axis([x, 110 120]);
line(x,[110.45 110.45],'color','r','linestyle','--');
line(x,[118.45 118.45],'color','r','linestyle','--');
xlabel('Zeitschritt');
ylabel('Wasserstand [mNN]');
set(gcf,'paperposition',[1 1 14 26]);
print _SModer.eps -dpsc2
set(gcf,'paperposition',[0 0 15 15]);
print _SModer.png -dpng
close;

% Polder Altenheim
figure;
subplot(4,1,1);
plot(ex('PKehlKronenhof.Q',id,data));
line(x,[2800 2800],'color','r','linestyle','--');
line(x,[1400 1400],'color','r','linestyle','--');
legend('PKehlKronenhof.Q','Q=2800','Q=1400');
axis([x, 0 8000]);
ylabel('Abfluss [m3/s]');
subplot(4,1,2);
plot(ex('WKehlStrasbourgBetriebsart.st',id,data));
axis([x, -0.05 2.05]);
ylabel('Status [0/1/2]');
subplot(4,1,3);
plot([ex('SAltenheimEinlauf.Q',id,data),...
      ex('SAltenheimIntern.Q',id,data),...
      ex('SAltenheimAuslauf.Q',id,data)]);
legend('SAltenheimEinlauf.Q','SAltenheimIntern.Q','SAltenheimAuslauf.Q');
axis([x, -5 180]);
ylabel('Abfluss [m3/s]');
subplot(4,1,4);
plot([ex('SAltenheim2.H',id,data),...
      ex('SAltenheim1.H',id,data)]);
line(x,[149.66 149.66],'color','r','linestyle','--');
line(x,[146.66 146.66],'color','r','linestyle','--');
legend('SAltenheim2.H','SAltenheim2.H','H=149.66','H=146.66');
axis([x, 144.00 150.00]);
xlabel('Zeitschritt');
ylabel('Hoehe [mNN]');
set(gcf,'paperposition',[1 1 14 26]);
print _SAltenheim.eps -dpsc2
set(gcf,'paperposition',[0 0 15 20]);
print _SAltenheim.png -dpng
close;

% Erstein
figure;
subplot(3,1,1);
plot(ex('PKehlKronenhof.Q',id,data));
line(x,[3600 3600],'color','r','linestyle','--');
line(x,[3000 3000],'color','r','linestyle','--');
legend('PKehlKronenhof','Q=3600','Q=3000', 'Location', 'West');
axis([x, 0000 8000]);
ylabel('Abfluss [m3/s]');
subplot(3,1,2);
plot([ex('SErsteinOP1.Q',id,data),...
      ex('SErsteinOP2.Q',id,data),...
      ex('SErsteinOV1.Q',id,data),...
      ex('SErsteinOV2.Q',id,data)]);
legend('SErsteinOP1','SErsteinOP2','SErsteinOV1','SErsteinOV2', 'Location', 'West');
axis([x, -5 105]);
ylabel('Zufluss / Abfluss [m3/s]');
subplot(3,1,3);
plot([ex('SErstein.H',id,data),...
      ex('PPlombsheimerBecken.H',id,data),...
      ex('PAltenheim.H',id,data)]);
line(x,[149.60 149.60],'color','r','linestyle','--');
line(x,[148.50 148.50],'color','r','linestyle','--');
legend('SErstein','PPlombsh. B.','PAltenheim','H=149.60','H=148.50', 'Location', 'NorthWest');
axis([x, 147 150]);
xlabel('Zeitschritt');
ylabel('Wasserstand [mNN]');
set(gcf,'paperposition',[1 1 14 26]);
print _SErstein.eps -dpsc2
set(gcf,'paperposition',[0 0 15 15]);
print _SErstein.png -dpng
close;

% Soellingen-Greffern
figure;
subplot(4,1,1);
plot(ex('PKehlKronenhof.Q',id,data));
line(x,[3800 3800],'color','r','linestyle','--');
line(x,[3000 3000],'color','r','linestyle','--');
legend('PKehlKronenhof','Q=3800','Q=3000');
axis([x, 0 8000]);
ylabel('Abfluss [m3/s]');
subplot(4,1,2);
plot(ex('PMaxau.Q',id,data));
line(x,[4200 4200],'color','r','linestyle','--');
legend('PMaxau','Q=4200');
axis([x, 0 8000]);
ylabel('Abfluss [m3/s]');
subplot(4,1,3);
plot([ex('SSoellingenGreffern42E.Q',id,data),...
      ex('SSoellingenGreffern46N.Q',id,data),...
      ex('SSoellingenGreffern54.Q',id,data),...
      ex('SSoellingenGreffern64.Q',id,data),...
      ex('SSoellingenGreffern65G.Q',id,data),...
      ex('SSoellingenGreffern71J.Q',id,data),...
      ex('SSoellingenGreffernF.Q',id,data)]);
legend('42E.Q','46N.Q','54.Q','64.Q','65G.Q','71J.Q','F.Q', 'Location', 'West');
axis([x, -5 400]);
xlabel('Zeitschritt');
ylabel('Abfluss [m^3/s]');
subplot(4,1,4);
plot([ex('SSoellingenGreffern1.H',id,data),...
      ex('SSoellingenGreffern2.H',id,data),...
      ex('SSoellingenGreffern3.H',id,data),...
      ex('SSoellingenGreffern4.H',id,data)]);
legend('SSG1.H','SSG2.H','SSG3.H','SSG4.H', 'Location', 'West');
axis([x, 117 126]);
xlabel('Zeitschritt');
ylabel('Wasserstand [mNN]');
set(gcf,'paperposition',[1 1 14 26]);
print _SSoellingenGreffern.eps -dpsc2
set(gcf,'paperposition',[0 0 15 20]);
print _SSoellingenGreffern.png -dpng
close;

% Kulturwehr Breisach
figure;
subplot(4,1,1);
plot(ex('PMaxau.Q',id,data));
line(x,[800 800],'color','r','linestyle','--');
legend('PMaxau.Q','Q=800');
axis([x, 0 8000]);
ylabel('Abfluss [m3/s]');

subplot(4,1,2);
plot(ex('WBreisachNormalbetrieb.st',id,data));
axis([x, -0.05 1.05]);
ylabel('Status [0/1]');

subplot(4,1,3);
plot([ex('WBreisach.H',id,data),...
      ex('WBreisach.C',id,data)]);
line(x,[192.30 192.30],'color','r','linestyle','--');
line(x,[192.00 192.00],'color','r','linestyle','--');
legend('WBreisach.H','WBreisach.C', 'Location', 'NorthEast');
axis([x, 185.00 195.00]);
xlabel('Zeitschritt');
ylabel('Hoehe [mNN]');

subplot(4,1,4);
plot([ex('WMoehlinwehr.H',id,data),...
      ex('WMoehlinwehr.C',id,data)]);
line(x,[190.60 190.60],'color','r','linestyle','--');
line(x,[189.80 189.80],'color','r','linestyle','--');
legend('WMoehlinwehr.H','WMoehlinwehr.C');
axis([x, 185.00 195.00]);
xlabel('Zeitschritt');
ylabel('Hoehe [mNN]');

set(gcf,'paperposition',[1 1 14 26]);
print _WBreisach.eps -dpsc2
set(gcf,'paperposition',[0 0 15 20]);
print _WBreisach.png -dpng
close;

% Kulturwehr Kehl-Strassburg
figure;
subplot(4,1,1);
plot(ex('PKehlKronenhof.Q',id,data));
line(x,[2800 2800],'color','r','linestyle','--');
line(x,[1400 1400],'color','r','linestyle','--');
legend('PKehlKronenhof.Q','Q=2800','Q=1400', 'Location', 'NorthWest');
axis([x, 0 8000]);
ylabel('Abfluss [m3/s]');
subplot(4,1,2);
plot(ex('WKehlStrasbourgBetriebsart.st',id,data));
axis([x, -0.05 2.05]);
ylabel('Status [0/1/2]');
subplot(4,1,3);
plot(ex('WKehlStrasbourg.HSP',id,data));
legend('WKehlStrassbourg.HSP', 'Location', 'West');
axis([x, 139.00 146.00]);
ylabel('Hoehe [mNN]');
subplot(4,1,4);
plot([ex('WKehlStrasbourg.H',id,data),...
      ex('WKehlStrasbourg.C',id,data)]);
line(x,[140.00 140.00],'color','r','linestyle','--');
line(x,[139.70 139.70],'color','r','linestyle','--');
legend('WKehlStrassbourg.H','WKehlStrassbourg.C', 'Location', 'NorthWest');
axis([x, 135.00 148.00]);
xlabel('Zeitschritt');
ylabel('Hoehe [mNN]');
set(gcf,'paperposition',[1 1 14 26]);
print _WKehlStrassbourg.eps -dpsc2
set(gcf,'paperposition',[0 0 15 20]);
print _WKehlStrassbourg.png -dpng
close;

% Polder Altenheim
figure;
subplot(4,1,1);
plot(ex('PKehlKronenhof.Q',id,data));
line(x,[2800 2800],'color','r','linestyle','--');
line(x,[1400 1400],'color','r','linestyle','--');
legend('PKehlKronenhof.Q','Q=2800','Q=1400');
axis([x, 0 8000]);
ylabel('Abfluss [m3/s]');
subplot(4,1,2);
plot(ex('WKehlStrasbourgBetriebsart.st',id,data));
axis([x, -0.05 2.05]);
ylabel('Status [0/1/2]');
subplot(4,1,3);
plot([ex('SAltenheimEinlauf.Q',id,data),...
      ex('SAltenheimIntern.Q',id,data),...
      ex('SAltenheimAuslauf.Q',id,data)]);
legend('SAltenheimEinlauf.Q','SAltenheimIntern.Q','SAltenheimAuslauf.Q');
axis([x, -5 180]);
ylabel('Abfluss [m3/s]');
subplot(4,1,4);
plot([ex('SAltenheim2.H',id,data),...
      ex('SAltenheim1.H',id,data)]);
line(x,[149.66 149.66],'color','r','linestyle','--');
line(x,[146.66 146.66],'color','r','linestyle','--');
legend('SAltenheim2.H','SAltenheim1.H','H=149.66','H=146.66');
axis([x, 144.00 150.00]);
xlabel('Zeitschritt');
ylabel('Hoehe [mNN]');
set(gcf,'paperposition',[1 1 14 26]);
print _SAltenheim.eps -dpsc2

% Kraftwerke Rheinseitenkanal
figure;
subplot(4,1,1);
plot([ex('PBaselRheinhalle.Q',id,data),...
      ex('PMaxau.Q',id,data)]);
line(x,[3300 3300],'color','r','linestyle','--');
line(x,[4200 4200],'color','r','linestyle','--');
legend('PBaselRheinhalle.Q','PMaxau.Q','Q=4200','Q=3300');
axis([x, 0 8000]);
ylabel('Abfluss [m3/s]');
subplot(4,1,2);
plot(ex('WKembs.H',id,data));
line(x,[244.25 244.25],'color','r','linestyle','--');
legend('WKembs.H','H=244.25');
axis([x, 244 245]);
ylabel('Wasserspiegel [mNN]');
subplot(4,1,3);
plot([ex('KKWKembs.Q',id,data),...
      ex('KWKembs.Q',id,data)]);
legend('KKWKembs.Q','KWKembs.Q');
axis([x, -10 1600]);
ylabel('Abfluss [m3/s]');
subplot(4,1,4);
plot([ex('KWKembs.Q',id,data),...
      ex('KWOttmarsheim.Q',id,data),...
      ex('KWFessenheim.Q',id,data),...
      ex('KWVogelgruen.Q',id,data)]);
legend('KWKembs.Q','KWOttmarsheim.Q','KWFessenheim.Q','KWVogelgruen.Q');
axis([x, -10 1600]);
xlabel('Zeitschritt');
ylabel('Abfluss [m3/s]');
set(gcf,'paperposition',[1 1 14 26]);
print _Rheinkraftwerke.eps -dpsc2

