Commit 56a0f9fa authored by Marion Bandet's avatar Marion Bandet
Browse files

added Wind data May2014

parent 6e208ef8
......@@ -8,7 +8,7 @@
<title>WERA SYSTEM &mdash; documentation_HFR_analysis 0.0.1 documentation</title>
<link rel="stylesheet" href="_static/default.css" type="text/css" />
<link rel="stylesheet" href="_static/classic.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript">
......@@ -27,8 +27,8 @@
<link rel="next" title="CODAR SYSTEM" href="CODARdata.html" />
<link rel="prev" title="Welcome to the documentation of High Frequency Radars (CODAR and WERA)" href="index.html" />
</head>
<body>
<div class="related">
<body role="document">
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
......@@ -40,14 +40,14 @@
<li class="right" >
<a href="index.html" title="Welcome to the documentation of High Frequency Radars (CODAR and WERA)"
accesskey="P">previous</a> |</li>
<li><a href="index.html">documentation_HFR_analysis 0.0.1 documentation</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="index.html">documentation_HFR_analysis 0.0.1 documentation</a> &raquo;</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="body" role="main">
<div class="section" id="wera-system">
<h1>WERA SYSTEM<a class="headerlink" href="#wera-system" title="Permalink to this headline"></a></h1>
......@@ -230,7 +230,7 @@
</div>
</div>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<h3><a href="index.html">Table Of Contents</a></h3>
<ul>
......@@ -254,29 +254,28 @@
<h4>Next topic</h4>
<p class="topless"><a href="CODARdata.html"
title="next chapter">CODAR SYSTEM</a></p>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/WERAdata.txt"
rel="nofollow">Show Source</a></li>
</ul>
<div id="searchbox" style="display: none">
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/WERAdata.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
<h3>Quick search</h3>
<form class="search" action="search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
<div><input type="text" name="q" /></div>
<div><input type="submit" value="Go" /></div>
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related">
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
......@@ -288,12 +287,12 @@
<li class="right" >
<a href="index.html" title="Welcome to the documentation of High Frequency Radars (CODAR and WERA)"
>previous</a> |</li>
<li><a href="index.html">documentation_HFR_analysis 0.0.1 documentation</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="index.html">documentation_HFR_analysis 0.0.1 documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">
<div class="footer" role="contentinfo">
&copy; Copyright 2015, Marion Bandet.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.4.
</div>
</body>
</html>
\ No newline at end of file
......@@ -8,7 +8,7 @@
<title>WERA radial currents processing &mdash; documentation_HFR_analysis 0.0.1 documentation</title>
<link rel="stylesheet" href="_static/default.css" type="text/css" />
<link rel="stylesheet" href="_static/classic.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript">
......@@ -27,8 +27,8 @@
<link rel="next" title="Calibrations" href="calibration.html" />
<link rel="prev" title="CODAR radial currents processing" href="CODARprocessing.html" />
</head>
<body>
<div class="related">
<body role="document">
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
......@@ -40,14 +40,14 @@
<li class="right" >
<a href="CODARprocessing.html" title="CODAR radial currents processing"
accesskey="P">previous</a> |</li>
<li><a href="index.html">documentation_HFR_analysis 0.0.1 documentation</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="index.html">documentation_HFR_analysis 0.0.1 documentation</a> &raquo;</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="body" role="main">
<div class="section" id="wera-radial-currents-processing">
<h1>WERA radial currents processing<a class="headerlink" href="#wera-radial-currents-processing" title="Permalink to this headline"></a></h1>
......@@ -88,7 +88,7 @@
</div>
</div>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<h4>Previous topic</h4>
<p class="topless"><a href="CODARprocessing.html"
......@@ -96,29 +96,28 @@
<h4>Next topic</h4>
<p class="topless"><a href="calibration.html"
title="next chapter">Calibrations</a></p>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/WERAprocessing.txt"
rel="nofollow">Show Source</a></li>
</ul>
<div id="searchbox" style="display: none">
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/WERAprocessing.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
<h3>Quick search</h3>
<form class="search" action="search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
<div><input type="text" name="q" /></div>
<div><input type="submit" value="Go" /></div>
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related">
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
......@@ -130,12 +129,12 @@
<li class="right" >
<a href="CODARprocessing.html" title="CODAR radial currents processing"
>previous</a> |</li>
<li><a href="index.html">documentation_HFR_analysis 0.0.1 documentation</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="index.html">documentation_HFR_analysis 0.0.1 documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">
<div class="footer" role="contentinfo">
&copy; Copyright 2015, Marion Bandet.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.4.
</div>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Data from EC, station Pointe-au-Pere (from routine Wind_csv2mat.m) &mdash; documentation_HFR_analysis 0.0.1 documentation</title>
<link rel="stylesheet" href="_static/classic.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '0.0.1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="documentation_HFR_analysis 0.0.1 documentation" href="index.html" />
<link rel="next" title="Log Work Marion" href="dailylog.html" />
<link rel="prev" title="Tides at Rimouski May 2014" href="TidesMay2014.html" />
</head>
<body role="document">
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="dailylog.html" title="Log Work Marion"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="TidesMay2014.html" title="Tides at Rimouski May 2014"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">documentation_HFR_analysis 0.0.1 documentation</a> &raquo;</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<div class="section" id="data-from-ec-station-pointe-au-pere-from-routine-wind-csv2mat-m">
<h1>Data from EC, station Pointe-au-Pere (from routine <a class="reference external" href="Wind_csv2mat.html">Wind_csv2mat.m</a>)<a class="headerlink" href="#data-from-ec-station-pointe-au-pere-from-routine-wind-csv2mat-m" title="Permalink to this headline"></a></h1>
<hr class="docutils" />
<div class="figure align-center">
<img alt="_images/Wind_csv2mat_May2014_01.png" src="_images/Wind_csv2mat_May2014_01.png" />
</div>
<div class="figure align-center">
<img alt="_images/Wind_csv2mat_May2014_02.png" src="_images/Wind_csv2mat_May2014_02.png" />
</div>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<h4>Previous topic</h4>
<p class="topless"><a href="TidesMay2014.html"
title="previous chapter">Tides at Rimouski May 2014</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="dailylog.html"
title="next chapter">Log Work Marion</a></p>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/WindMay2014.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
<h3>Quick search</h3>
<form class="search" action="search.html" method="get">
<div><input type="text" name="q" /></div>
<div><input type="submit" value="Go" /></div>
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="dailylog.html" title="Log Work Marion"
>next</a> |</li>
<li class="right" >
<a href="TidesMay2014.html" title="Tides at Rimouski May 2014"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">documentation_HFR_analysis 0.0.1 documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer" role="contentinfo">
&copy; Copyright 2015, Marion Bandet.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.4.
</div>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!--
This HTML was auto-generated from MATLAB code.
To make changes, update the MATLAB code and republish this document.
--><title>Wind_csv2mat</title><meta name="generator" content="MATLAB 7.14"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2016-08-05"><meta name="DC.source" content="Wind_csv2mat.m"><style type="text/css">
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outine:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}
html { min-height:100%; margin-bottom:1px; }
html body { height:100%; margin:0px; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#000; line-height:140%; background:#fff none; overflow-y:scroll; }
html body td { vertical-align:top; text-align:left; }
h1 { padding:0px; margin:0px 0px 25px; font-family:Arial, Helvetica, sans-serif; font-size:1.5em; color:#d55000; line-height:100%; font-weight:normal; }
h2 { padding:0px; margin:0px 0px 8px; font-family:Arial, Helvetica, sans-serif; font-size:1.2em; color:#000; font-weight:bold; line-height:140%; border-bottom:1px solid #d6d4d4; display:block; }
h3 { padding:0px; margin:0px 0px 5px; font-family:Arial, Helvetica, sans-serif; font-size:1.1em; color:#000; font-weight:bold; line-height:140%; }
a { color:#005fce; text-decoration:none; }
a:hover { color:#005fce; text-decoration:underline; }
a:visited { color:#004aa0; text-decoration:none; }
p { padding:0px; margin:0px 0px 20px; }
img { padding:0px; margin:0px 0px 20px; border:none; }
p img, pre img, tt img, li img { margin-bottom:0px; }
ul { padding:0px; margin:0px 0px 20px 23px; list-style:square; }
ul li { padding:0px; margin:0px 0px 7px 0px; }
ul li ul { padding:5px 0px 0px; margin:0px 0px 7px 23px; }
ul li ol li { list-style:decimal; }
ol { padding:0px; margin:0px 0px 20px 0px; list-style:decimal; }
ol li { padding:0px; margin:0px 0px 7px 23px; list-style-type:decimal; }
ol li ol { padding:5px 0px 0px; margin:0px 0px 7px 0px; }
ol li ol li { list-style-type:lower-alpha; }
ol li ul { padding-top:7px; }
ol li ul li { list-style:square; }
.content { font-size:1.2em; line-height:140%; padding: 20px; }
pre, tt, code { font-size:12px; }
pre { margin:0px 0px 20px; }
pre.error { color:red; }
pre.codeinput { padding:10px; border:1px solid #d3d3d3; background:#f7f7f7; }
pre.codeoutput { padding:10px 11px; margin:0px 0px 20px; color:#4c4c4c; }
@media print { pre.codeinput, pre.codeoutput { word-wrap:break-word; width:100%; } }
span.keyword { color:#0000FF }
span.comment { color:#228B22 }
span.string { color:#A020F0 }
span.untermstring { color:#B20000 }
span.syscmd { color:#B28C00 }
.footer { width:auto; padding:10px 0px; margin:25px 0px 0px; border-top:1px dotted #878787; font-size:0.8em; line-height:140%; font-style:italic; color:#878787; text-align:left; float:none; }
.footer p { margin:0px; }
</style></head><body><div class="content"><pre class="codeinput"><span class="comment">% csv2mat.m</span>
<span class="comment">% reads csv files and save data into .mat files</span>
<span class="comment">%</span>
<span class="comment">% Marion Bandet</span>
<span class="comment">% July 2016</span>
<span class="comment">%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</span>
clear <span class="string">all</span>
close <span class="string">all</span>
cd(<span class="string">'/run/media/bandma01/SeagateWireless/MEOPAR/DATA/Wind'</span>)
PART = 2;
<span class="comment">% PART = 1; import data and save .mat</span>
<span class="comment">% PART = 2; draw figures</span>
<span class="keyword">if</span> PART == 1
filename = <span class="string">'fre-hourly-05012014-05312014.csv'</span>;
fid = fopen(filename);
<span class="comment">% explore file with tline = fgetl(fid) to read line by line</span>
tline = fgetl(fid);
wind.station = tline(22:42);
tline = fgetl(fid);
tline = fgetl(fid);
wind.latitude = [tline(13:14) <span class="string">'.'</span> tline(16:end-1)];
tline = fgetl(fid);
wind.longitude = [tline(14:16) <span class="string">'.'</span> tline(18:end-1)];
tline = fgetl(fid);
wind.altitude = [tline(13) <span class="string">'.'</span> tline(15:end-1)];
<span class="comment">% once at line of interest, offset = ftell(fid);</span>
offset = 1045;
<span class="comment">% rewind to beginning of file with fseek(fid,0,-1)</span>
fseek(fid,0,-1)
fseek(fid,offset,-1);
ftell(fid);
<span class="comment">% can't use textscan because lines don't have the same number of</span>
<span class="comment">% arguments</span>
C = textscan(fid,<span class="string">'%q %q %q %q %q %q %q %q %q %q %q %q %q %q %q %q %q %q %q %q %q %q %q %q'</span>,<span class="string">'delimiter'</span>,<span class="string">','</span>);
fclose(fid);
C{1}
C{2}
C{3}
C{4}
hour = C{5};
<span class="comment">% MANUALLY (yes I know..) import other variables from _mod.csv file</span>
clear <span class="string">C</span> <span class="string">ans</span> <span class="string">fid</span> <span class="string">tline</span> <span class="string">offset</span>
save <span class="string">WindMay2014_PAP</span>
<span class="keyword">elseif</span> PART == 2
load <span class="string">WindMay2014_PAP</span>
<span class="comment">% take care of the time vector</span>
H=[];
<span class="keyword">for</span> i = 1:length(hour)
tmp = hour{i};
<span class="keyword">if</span> strcmp(tmp,<span class="string">''</span>)
<span class="keyword">else</span>
H = [H; str2double(tmp(1:2))];
<span class="keyword">end</span>
<span class="keyword">end</span>
time = datenum(year,month,day,H,zeros(length(year),1),zeros(length(year),1));
<span class="comment">% plots</span>
figure
subplot(311)
plot(time,pressure_kPa,<span class="string">'.'</span>)
datetick(<span class="string">'x'</span>,<span class="string">'d'</span>)
<span class="comment">% set(gca,'XTick',[5 10 15 20 25 30])</span>
<span class="comment">% set(gca,'XTickLabel',['05'; '10'; '15'; '20'; '25'; '30'])</span>
grid <span class="string">on</span>
<span class="comment">%xlabel('may 2014 [days]')</span>
ylabel(<span class="string">'Pressure [kPa]'</span>)
title(<span class="string">' Point-au-Pere station'</span>)
subplot(312)
plot(time,windSpd_kmh*1000/3600,<span class="string">'.:'</span>)
datetick(<span class="string">'x'</span>,<span class="string">'d'</span>)
grid <span class="string">on</span>
xlabel(<span class="string">'may 2014 [days]'</span>)
ylabel(<span class="string">'Wind Speed [m/s]'</span>)
subplot(313)
polar(windSpd_kmh*1000/3600,WindDir_deg,<span class="string">'.'</span>)
set(gcf,<span class="string">'position'</span>,[1361 116 560 870])
figure
subplot(311)
plot(time,Temp_C*1000/3600,<span class="string">'.:'</span>)
datetick(<span class="string">'x'</span>,<span class="string">'d'</span>)
grid <span class="string">on</span>
<span class="comment">%xlabel('may 2014 [days]')</span>
ylabel(<span class="string">'Air temperature [deg C]'</span>)
title(<span class="string">' Point-au-Pere station'</span>)
subplot(312)
plot(time,relHum_pct,<span class="string">'.:'</span>)
datetick(<span class="string">'x'</span>,<span class="string">'d'</span>)
grid <span class="string">on</span>
<span class="comment">%xlabel('may 2014 [days]')</span>
ylabel(<span class="string">'relative Humidity [%]'</span>)
subplot(313)
plot(time,rosee_C,<span class="string">'.:'</span>)
datetick(<span class="string">'x'</span>,<span class="string">'d'</span>)
grid <span class="string">on</span>
xlabel(<span class="string">'may 2014 [days]'</span>)
ylabel(<span class="string">'point de Rosee [deg C]'</span>)
<span class="keyword">end</span>
</pre><img vspace="5" hspace="5" src="Wind_csv2mat_01.png" alt=""> <img vspace="5" hspace="5" src="Wind_csv2mat_02.png" alt=""> <p class="footer"><br>
Published with MATLAB&reg; 7.14<br></p></div><!--
##### SOURCE BEGIN #####
% csv2mat.m
% reads csv files and save data into .mat files
%
% Marion Bandet
% July 2016
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
clear all
close all
cd('/run/media/bandma01/SeagateWireless/MEOPAR/DATA/Wind')
PART = 2;
% PART = 1; import data and save .mat
% PART = 2; draw figures
if PART == 1
filename = 'fre-hourly-05012014-05312014.csv';
fid = fopen(filename);
% explore file with tline = fgetl(fid) to read line by line
tline = fgetl(fid);
wind.station = tline(22:42);
tline = fgetl(fid);
tline = fgetl(fid);
wind.latitude = [tline(13:14) '.' tline(16:end-1)];
tline = fgetl(fid);
wind.longitude = [tline(14:16) '.' tline(18:end-1)];
tline = fgetl(fid);
wind.altitude = [tline(13) '.' tline(15:end-1)];
% once at line of interest, offset = ftell(fid);
offset = 1045;
% rewind to beginning of file with fseek(fid,0,-1)
fseek(fid,0,-1)
fseek(fid,offset,-1);
ftell(fid);
% can't use textscan because lines don't have the same number of
% arguments
C = textscan(fid,'%q %q %q %q %q %q %q %q %q %q %q %q %q %q %q %q %q %q %q %q %q %q %q %q','delimiter',',');
fclose(fid);
C{1}
C{2}
C{3}
C{4}
hour = C{5};
% MANUALLY (yes I know..) import other variables from _mod.csv file
clear C ans fid tline offset
save WindMay2014_PAP
elseif PART == 2
load WindMay2014_PAP
% take care of the time vector
H=[];
for i = 1:length(hour)
tmp = hour{i};
if strcmp(tmp,'')
else
H = [H; str2double(tmp(1:2))];
end
end
time = datenum(year,month,day,H,zeros(length(year),1),zeros(length(year),1));
% plots
figure
subplot(311)
plot(time,pressure_kPa,'.')
datetick('x','d')
% set(gca,'XTick',[5 10 15 20 25 30])
% set(gca,'XTickLabel',['05'; '10'; '15'; '20'; '25'; '30'])
grid on
%xlabel('may 2014 [days]')
ylabel('Pressure [kPa]')
title(' Point-au-Pere station')
subplot(312)
plot(time,windSpd_kmh*1000/3600,'.:')