CurrentsCombination.html 7.35 KB
Newer Older
Marion Bandet's avatar
update  
Marion Bandet committed
1 2 3 4 5 6 7 8
<!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" />
    
Marion Bandet's avatar
update  
Marion Bandet committed
9
    <title>Current combination and OGSL data feed &mdash; documentation_HFR_analysis 0.0.1 documentation</title>
Marion Bandet's avatar
update  
Marion Bandet committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
    
    <link rel="stylesheet" href="_static/default.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" />
Marion Bandet's avatar
update  
Marion Bandet committed
27 28
    <link rel="next" title="Experiment on May 15, 2013" href="20130515.html" />
    <link rel="prev" title="Comparison WERA and ADCP radial velocities September 2013" href="Comparison_WERA-ADCP_Sept2013.html" /> 
Marion Bandet's avatar
update  
Marion Bandet committed
29 30 31 32 33 34 35 36 37
  </head>
  <body>
    <div class="related">
      <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" >
Marion Bandet's avatar
update  
Marion Bandet committed
38
          <a href="20130515.html" title="Experiment on May 15, 2013"
Marion Bandet's avatar
update  
Marion Bandet committed
39 40
             accesskey="N">next</a> |</li>
        <li class="right" >
Marion Bandet's avatar
update  
Marion Bandet committed
41
          <a href="Comparison_WERA-ADCP_Sept2013.html" title="Comparison WERA and ADCP radial velocities September 2013"
Marion Bandet's avatar
update  
Marion Bandet committed
42 43 44 45 46 47 48 49 50 51
             accesskey="P">previous</a> |</li>
        <li><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">
            
Marion Bandet's avatar
update  
Marion Bandet committed
52 53
  <div class="section" id="current-combination-and-ogsl-data-feed">
<h1>Current combination and OGSL data feed<a class="headerlink" href="#current-combination-and-ogsl-data-feed" title="Permalink to this headline"></a></h1>
Marion Bandet's avatar
update  
Marion Bandet committed
54 55 56 57 58
<p>Radial currents from WERA and CODAR systems are combined together on a grid to provide total currents approximately every hour.
The processing is conducted on the WERA server (ssh <a class="reference external" href="mailto:wera&#37;&#52;&#48;132&#46;215&#46;11&#46;14">wera<span>&#64;</span>132<span>&#46;</span>215<span>&#46;</span>11<span>&#46;</span>14</a>) and the resulting hourly currents are exported to .csv files to be displayed on he OGSL website (<a class="reference external" href="http://ogsl.ca/observations/">http://ogsl.ca/observations/</a>).</p>
<p>All the matlab scripts are located in ~/projets/hfr_data_processing/hfr_processing.</p>
<p>A crontab runs the analysis (crontab).</p>
<p>The processing runs as follows:</p>
Marion Bandet's avatar
update  
Marion Bandet committed
59 60 61 62
<p>1- Download the last available data at each WERA sites (radial currents - ascii format)</p>
<blockquote>
<div><p>For PAO, data is available at HH+00 and HH+30.</p>
<p>For PAB, data is available at HH+15 et HH+45.</p>
Marion Bandet's avatar
update  
Marion Bandet committed
63
<p>Every 10 min the crontab tries to download data via a shell script:</p>
Marion Bandet's avatar
update  
Marion Bandet committed
64
</div></blockquote>
Marion Bandet's avatar
update  
Marion Bandet committed
65
<p>5,15,25,35,45,50 * * * * /home/wera/projets/hfr-data-processing/hfr_process/download_wera_rt.sh</p>
Marion Bandet's avatar
update  
Marion Bandet committed
66 67 68 69 70
<blockquote>
<div>The data is located in: /home/wera/codar_wera_ogsl/archives/data</div></blockquote>
<p>2- Download the last available data at each CODAR sites (.ruv)</p>
<blockquote>
<div><p>For PAP and STF, data is available at HH+00</p>
Marion Bandet's avatar
update  
Marion Bandet committed
71
<p>Every 5 minutes, the crontab tries to download data via a shell script:</p>
Marion Bandet's avatar
update  
Marion Bandet committed
72
</div></blockquote>
Marion Bandet's avatar
update  
Marion Bandet committed
73
<p>0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/wera/projets/hfr-data-processing/hfr_process/download_codar_rt.sh</p>
Marion Bandet's avatar
update  
Marion Bandet committed
74 75 76
<blockquote>
<div>The data is located in: /home/wera/codar_wera_ogsl/archives/data</div></blockquote>
<p>3- at H+55min the crontab runs to combine currents for the last hour via a shell script:</p>
Marion Bandet's avatar
update  
Marion Bandet committed
77 78
<p>55 * * * * /home/wera/projets/hfr-data-processing/hfr_process/ogsl_hfr_treatment.sh</p>
<p>What does the shell do?</p>
Marion Bandet's avatar
update  
Marion Bandet committed
79 80 81 82 83 84 85 86 87
<blockquote>
<div><ol class="loweralpha simple">
<li>copy the .ruv and ascii files located in /home/wera/codar_wera_ogsl/archives/data in the working directory /home/wera/codar_wera_ogsl/travail</li>
<li>unzip .gz files</li>
<li>convert .ruv to .mat format (<strong>ruv2mat.m</strong>)</li>
<li>convert ascii to .mat format (<strong>ascii2mat.m</strong>)</li>
<li>generate (combine) total currents (<strong>rad2tot.m</strong>)</li>
</ol>
</div></blockquote>
Marion Bandet's avatar
update  
Marion Bandet committed
88
<p>At this stage a .mat file is generated (i.e. HFR_LSLE_20150817T170000Z.mat) for each hour.</p>
Marion Bandet's avatar
update  
Marion Bandet committed
89 90 91 92 93 94
<blockquote>
<div><ol class="loweralpha simple" start="6">
<li>the routine <strong>currentsHfrWithAverageExport.m</strong> computes the 25-hour current average and exports the hourly currents into a .csv file to be displayed on the OGSL website.</li>
<li>the .csv files are moved to the webserver (/srv/www/htdocs/wera/hfrdata) and the .mat are moved in archives (/home/wera/codar_wera_ogsl/archives/matfiles and /srv/www/htdocs/wera/hfrmat) and logs are kept in /home/wera/codar_wera_ogsl/logs (download_codar_rt.log, download_wera_rt.log, ogsl_hfr_treatment.log, reprocess_ogsl_hfr_treatment.log)</li>
</ol>
</div></blockquote>
Marion Bandet's avatar
update  
Marion Bandet committed
95 96 97 98 99 100 101 102 103
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h4>Previous topic</h4>
Marion Bandet's avatar
update  
Marion Bandet committed
104 105
  <p class="topless"><a href="Comparison_WERA-ADCP_Sept2013.html"
                        title="previous chapter">Comparison WERA and ADCP radial velocities September 2013</a></p>
Marion Bandet's avatar
update  
Marion Bandet committed
106
  <h4>Next topic</h4>
Marion Bandet's avatar
update  
Marion Bandet committed
107 108
  <p class="topless"><a href="20130515.html"
                        title="next chapter">Experiment on May 15, 2013</a></p>
Marion Bandet's avatar
update  
Marion Bandet committed
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
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="_sources/CurrentsCombination.txt"
           rel="nofollow">Show Source</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <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">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
Marion Bandet's avatar
update  
Marion Bandet committed
138
          <a href="20130515.html" title="Experiment on May 15, 2013"
Marion Bandet's avatar
update  
Marion Bandet committed
139 140
             >next</a> |</li>
        <li class="right" >
Marion Bandet's avatar
update  
Marion Bandet committed
141
          <a href="Comparison_WERA-ADCP_Sept2013.html" title="Comparison WERA and ADCP radial velocities September 2013"
Marion Bandet's avatar
update  
Marion Bandet committed
142 143 144 145 146 147 148 149 150 151
             >previous</a> |</li>
        <li><a href="index.html">documentation_HFR_analysis 0.0.1 documentation</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2015, Marion Bandet.
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
    </div>
  </body>
</html>