CurrentsCombination.html 6.87 KB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

<html xmlns="">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Current combination &mdash; documentation_HFR_analysis 0.0.1 documentation</title>
    <link rel="stylesheet" href="_static/default.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    <script type="text/javascript">
        URL_ROOT:    './',
        VERSION:     '0.0.1',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
    <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="OGSL quasi-realtime data feed" href="OGSL.html" />
    <link rel="prev" title="WERA POST=PROCESSING" href="WERA_processing.html" /> 
    <div class="related">
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
        <li class="right" >
          <a href="OGSL.html" title="OGSL quasi-realtime data feed"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="WERA_processing.html" title="WERA POST=PROCESSING"
             accesskey="P">previous</a> |</li>
        <li><a href="index.html">documentation_HFR_analysis 0.0.1 documentation</a> &raquo;</li> 

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
  <div class="section" id="current-combination">
<h1>Current combination<a class="headerlink" href="#current-combination" title="Permalink to this headline">¶</a></h1>
<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=""></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>
<p>&#8216;&#8217;&#8216;1- download the last available data at WERA sites&#8217;&#8216;&#8217; (radial currents - ascii format)</p>
<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>
<p>Every 10 min the crontab tries to download data via a shell script:</p>
<p>5,15,25,35,45,50 * * * * /home/wera/projets/hfr-data-processing/hfr_process/</p>
<p>The data is located in: /home/wera/codar_wera_ogsl/archives/data</p>
<p>&#8216;&#8217;&#8216;2- download the last available data at CODAR sites&#8217;&#8216;&#8217; (.ruv)</p>
<p>For PAP and STF, data is available at HH+00</p>
<p>Every 5 minutes, the crontab tries to download data via a shell script:</p>
<p>0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/wera/projets/hfr-data-processing/hfr_process/</p>
<p>The data is located in: /home/wera/codar_wera_ogsl/archives/data</p>
<p>&#8216;&#8217;&#8216;3-&#8216;&#8217;&#8217; at H+55min the crontab runs to &#8216;&#8217;&#8216;combine currents for the last hour&#8217;&#8216;&#8217; via a shell script:</p>
<p>55 * * * * /home/wera/projets/hfr-data-processing/hfr_process/</p>
<p>What does the shell do?</p>
<p>1- 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</p>
<p>2- unzip .gz files</p>
<p>3- convert .ruv to .mat format (ruv2mat)</p>
<p>4- convert ascii to .mat format (ascii2mat)</p>
<p>5- generate (combine) total currents (rad2tot)</p>
<p>At this stage a .mat file is generated (i.e. HFR_LSLE_20150817T170000Z.mat) for each hour.</p>
<p>6- the routine currentsHfrWithAverageExport.m computes the 25-hour current average and exports the hourly currents into a .csv file to be displayed on the OGSL website.</p>
<p>7- 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)</p>

      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h4>Previous topic</h4>
  <p class="topless"><a href="WERA_processing.html"
                        title="previous chapter">WERA POST=PROCESSING</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="OGSL.html"
                        title="next chapter">OGSL quasi-realtime data feed</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="_sources/CurrentsCombination.txt"
           rel="nofollow">Show Source</a></li>
<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" />
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
<script type="text/javascript">$('#searchbox').show(0);</script>
      <div class="clearer"></div>
    <div class="related">
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
        <li class="right" >
          <a href="OGSL.html" title="OGSL quasi-realtime data feed"
             >next</a> |</li>
        <li class="right" >
          <a href="WERA_processing.html" title="WERA POST=PROCESSING"
             >previous</a> |</li>
        <li><a href="index.html">documentation_HFR_analysis 0.0.1 documentation</a> &raquo;</li> 
    <div class="footer">
        &copy; Copyright 2015, Marion Bandet.
      Created using <a href="">Sphinx</a> 1.2.3.