Skip to content
Snippets Groups Projects
Commit 30f7911a authored by Anne Philipp's avatar Anne Philipp
Browse files

reviewed installation section of online documentation; minor corrections

parent 0690a6c1
Branches
Tags
No related merge requests found
Showing
with 248 additions and 35 deletions
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
File added
File added
File added
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 4fe8dea6f5157d998485e509f35babce
tags: 645f666f9bcd5a90fca523b33c5a78b7
...@@ -2215,9 +2215,17 @@ command line.</li> ...@@ -2215,9 +2215,17 @@ command line.</li>
<dt id="GribUtil.GribUtil"> <dt id="GribUtil.GribUtil">
<em class="property">class </em><code class="descclassname">GribUtil.</code><code class="descname">GribUtil</code><span class="sig-paren">(</span><em>filenames</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/GribUtil.html#GribUtil"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#GribUtil.GribUtil" title="Permalink to this definition"></a></dt> <em class="property">class </em><code class="descclassname">GribUtil.</code><code class="descname">GribUtil</code><span class="sig-paren">(</span><em>filenames</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/GribUtil.html#GribUtil"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#GribUtil.GribUtil" title="Permalink to this definition"></a></dt>
<dd><p>Class for GRIB utilities (new methods) based on GRIB API</p> <dd><p>Class for GRIB utilities (new methods) based on GRIB API</p>
<p>The GRIB API provides all necessary tools to work directly with the
grib files. Nevertheless, the GRIB API tools are very basic and are in
direct connection with the grib files. This class provides some higher
functions which apply a set of GRIB API tools together in the respective
context. So, the class initially contains a list of grib files (their
names) and the using program then applies the methods directly on the
class objects without having to think about how the actual GRIB API
tools have to be arranged.</p>
<dl class="method"> <dl class="method">
<dt id="GribUtil.GribUtil.copy_dummy_msg"> <dt id="GribUtil.GribUtil.copy_dummy_msg">
<code class="descname">copy_dummy_msg</code><span class="sig-paren">(</span><em>filename_in</em>, <em>selectWhere=True</em>, <em>keynames=[]</em>, <em>keyvalues=[]</em>, <em>filemode='w'</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/GribUtil.html#GribUtil.copy_dummy_msg"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#GribUtil.GribUtil.copy_dummy_msg" title="Permalink to this definition"></a></dt> <code class="descname">copy_dummy_msg</code><span class="sig-paren">(</span><em>filename_in</em>, <em>selectWhere=True</em>, <em>keynames=[]</em>, <em>keyvalues=[]</em>, <em>filemode='wb'</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/GribUtil.html#GribUtil.copy_dummy_msg"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#GribUtil.GribUtil.copy_dummy_msg" title="Permalink to this definition"></a></dt>
<dd><p>Add the content of another input grib file to the objects file but <dd><p>Add the content of another input grib file to the objects file but
only messages corresponding to keys/values passed to the function. only messages corresponding to keys/values passed to the function.
The selectWhere switch decides if to copy the keys equal to (True) or The selectWhere switch decides if to copy the keys equal to (True) or
...@@ -2233,7 +2241,7 @@ different to (False) the keynames/keyvalues list passed to the ...@@ -2233,7 +2241,7 @@ different to (False) the keynames/keyvalues list passed to the
function. Default is True.</li> function. Default is True.</li>
<li><strong>keynames</strong> (<code class="xref py py-obj docutils literal notranslate"><span class="pre">list</span></code> of <code class="xref py py-obj docutils literal notranslate"><span class="pre">string</span></code>, optional) – List of keynames. Default is an empty list.</li> <li><strong>keynames</strong> (<code class="xref py py-obj docutils literal notranslate"><span class="pre">list</span></code> of <code class="xref py py-obj docutils literal notranslate"><span class="pre">string</span></code>, optional) – List of keynames. Default is an empty list.</li>
<li><strong>keyvalues</strong> (<code class="xref py py-obj docutils literal notranslate"><span class="pre">list</span></code> of <code class="xref py py-obj docutils literal notranslate"><span class="pre">string</span></code>, optional) – List of keyvalues. Default is an empty list.</li> <li><strong>keyvalues</strong> (<code class="xref py py-obj docutils literal notranslate"><span class="pre">list</span></code> of <code class="xref py py-obj docutils literal notranslate"><span class="pre">string</span></code>, optional) – List of keyvalues. Default is an empty list.</li>
<li><strong>filemode</strong> (<code class="xref py py-obj docutils literal notranslate"><span class="pre">string</span></code>, optional) – Sets the mode for the output file. Default is “w”.</li> <li><strong>filemode</strong> (<code class="xref py py-obj docutils literal notranslate"><span class="pre">string</span></code>, optional) – Sets the mode for the output file. Default is “wb”.</li>
</ul> </ul>
</td> </td>
</tr> </tr>
...@@ -2297,7 +2305,7 @@ Default is “my.idx”.</li> ...@@ -2297,7 +2305,7 @@ Default is “my.idx”.</li>
<dl class="method"> <dl class="method">
<dt id="GribUtil.GribUtil.set_keys"> <dt id="GribUtil.GribUtil.set_keys">
<code class="descname">set_keys</code><span class="sig-paren">(</span><em>fromfile</em>, <em>keynames</em>, <em>keyvalues</em>, <em>wherekeynames=[]</em>, <em>wherekeyvalues=[]</em>, <em>strict=False</em>, <em>filemode='w'</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/GribUtil.html#GribUtil.set_keys"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#GribUtil.GribUtil.set_keys" title="Permalink to this definition"></a></dt> <code class="descname">set_keys</code><span class="sig-paren">(</span><em>fromfile</em>, <em>keynames</em>, <em>keyvalues</em>, <em>wherekeynames=[]</em>, <em>wherekeyvalues=[]</em>, <em>strict=False</em>, <em>filemode='wb'</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/GribUtil.html#GribUtil.set_keys"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#GribUtil.GribUtil.set_keys" title="Permalink to this definition"></a></dt>
<dd><p>Opens the file to read the grib messages and then write <dd><p>Opens the file to read the grib messages and then write
the selected messages (with wherekeys) to a new output file. the selected messages (with wherekeys) to a new output file.
Also, the keyvalues of the passed list of keynames are set.</p> Also, the keyvalues of the passed list of keynames are set.</p>
...@@ -2318,7 +2326,7 @@ Default value is an empty list.</li> ...@@ -2318,7 +2326,7 @@ Default value is an empty list.</li>
<li><strong>strict</strong> (<code class="xref py py-obj docutils literal notranslate"><span class="pre">boolean</span></code>, optional) – Decides if everything from keynames and keyvalues <li><strong>strict</strong> (<code class="xref py py-obj docutils literal notranslate"><span class="pre">boolean</span></code>, optional) – Decides if everything from keynames and keyvalues
is written out the grib file (False) or only those is written out the grib file (False) or only those
meeting the where statement (True). Default is False.</li> meeting the where statement (True). Default is False.</li>
<li><strong>filemode</strong> (<code class="xref py py-obj docutils literal notranslate"><span class="pre">string</span></code>, optional) – Sets the mode for the output file. Default is “w”.</li> <li><strong>filemode</strong> (<code class="xref py py-obj docutils literal notranslate"><span class="pre">string</span></code>, optional) – Sets the mode for the output file. Default is “wb”.</li>
</ul> </ul>
</td> </td>
</tr> </tr>
......
...@@ -226,6 +226,126 @@ For each main dataset there is an example and additionally some variances in res ...@@ -226,6 +226,126 @@ For each main dataset there is an example and additionally some variances in res
in grouped sections with their default values. In <a class="reference internal" href="control_params.html"><span class="doc">The CONTROL parameters</span></a> you can find a more in grouped sections with their default values. In <a class="reference internal" href="control_params.html"><span class="doc">The CONTROL parameters</span></a> you can find a more
detailed description with additional hints, possible values and some useful information about detailed description with additional hints, possible values and some useful information about
the setting of these parameters.</p> the setting of these parameters.</p>
<div class="literal-block-wrapper docutils container" id="id1">
<div class="code-block-caption"><span class="caption-text">CONTROL.documentation</span><a class="headerlink" href="#id1" title="Permalink to this code"></a></div>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="c1">################################################################################</span>
<span class="c1"># Comprehensive list of relevant CONTROL file parameters with</span>
<span class="c1"># short descriptions and default values. </span>
<span class="c1">#</span>
<span class="c1"># For more details on how to select and define parameters </span>
<span class="c1"># please see Table of CONTROLparameters. </span>
<span class="c1">#</span>
<span class="c1"># AUTHOR: Anne Philipp</span>
<span class="c1"># DATE: 05. February 2019</span>
<span class="c1">################################################################################</span>
<span class="c1">#===============================================================================</span>
<span class="c1"># USER SECTION:</span>
<span class="c1"># User specific information for ECMWF server.</span>
<span class="c1"># Information are needed for storage or data transfer to local gateway server.</span>
<span class="c1"># (OPTIONAL: INFORMATION ARE KNOWN THROUGH EXTRA FILE AFTER INSTALLATION)</span>
<span class="c1">#-------------------------------------------------------------------------------</span>
ECUID None
ECGID None
DESTINATION None
GATEWAY None
<span class="c1">#===============================================================================</span>
<span class="c1"># GENERAL SECTION:</span>
<span class="c1"># Specific storage, notification and data transfer settings.</span>
<span class="c1"># Selection of ECMWF access interface and extra output options. </span>
<span class="c1">#-------------------------------------------------------------------------------</span>
DEBUG <span class="m">0</span>
REQUEST <span class="m">0</span>
PUBLIC <span class="m">0</span>
OPER <span class="m">0</span>
ECSTORAGE <span class="m">0</span>
ECTRANS <span class="m">0</span>
PREFIX <span class="s1">&#39;EN&#39;</span>
ECFSDIR <span class="s1">&#39;ectmp:/${USER}/econdemand/&#39;</span>
MAILFAIL <span class="o">[</span><span class="s1">&#39;${USER}&#39;</span><span class="o">]</span>
MAILOPS <span class="o">[</span><span class="s1">&#39;${USER}&#39;</span><span class="o">]</span>
<span class="c1">#===============================================================================</span>
<span class="c1"># TIME SECTION:</span>
<span class="c1"># Selection of time period and temporal resolution for extraction period.</span>
<span class="c1">#-------------------------------------------------------------------------------</span>
START_DATE
END_DATE
DATE_CHUNK <span class="m">3</span>
DTIME None
BASETIME None
<span class="c1">#===============================================================================</span>
<span class="c1"># DATA SECTION:</span>
<span class="c1"># General description of data set.</span>
<span class="c1">#-------------------------------------------------------------------------------</span>
CLASS None
DATASET None
STREAM None
NUMBER <span class="s1">&#39;OFF&#39;</span>
EXPVER <span class="s1">&#39;1&#39;</span>
FORMAT <span class="s1">&#39;GRIB1&#39;</span>
<span class="c1">#===============================================================================</span>
<span class="c1"># DATA FIELDS SECTION:</span>
<span class="c1"># Specific selection of field composition regarding type, analysis or forecast </span>
<span class="c1"># time and the forecast time step.</span>
<span class="c1">#-------------------------------------------------------------------------------</span>
TYPE None
TIME None
STEP None
MAXSTEP None
<span class="c1">#===============================================================================</span>
<span class="c1"># FLUX DATA FIELDS SECTION:</span>
<span class="c1"># Specific selection of flux field composition regarding forecast field type</span>
<span class="c1"># the forecast start times and the maximum forecast step per start time.</span>
<span class="c1"># Specification of disaggregation method of precipitation data.</span>
<span class="c1">#-------------------------------------------------------------------------------</span>
ACCTYPE None
ACCTIME None
ACCMAXSTEP None
RRINT <span class="m">0</span>
<span class="c1">#===============================================================================</span>
<span class="c1"># DOMAIN SECTION: </span>
<span class="c1"># Definition of horizontal area, spatial resolution and vertical levels. </span>
<span class="c1">#-------------------------------------------------------------------------------</span>
GRID None
RESOL None
SMOOTH <span class="m">0</span>
LEFT None
LOWER None
UPPER None
RIGHT None
LEVEL None
LEVELIST None
<span class="c1">#===============================================================================</span>
<span class="c1"># VERTICAL WIND SECTION:</span>
<span class="c1"># Selection of vertical wind calculation method.</span>
<span class="c1">#-------------------------------------------------------------------------------</span>
GAUSS <span class="m">0</span>
ACCURACY <span class="m">24</span>
OMEGA <span class="m">0</span>
OMEGADIFF <span class="m">0</span>
ETA <span class="m">0</span>
ETADIFF <span class="m">0</span>
DPDETA <span class="m">1</span>
ETAPAR <span class="m">77</span>
<span class="c1">#===============================================================================</span>
<span class="c1"># ADDITIONAL DATA SECTION:</span>
<span class="c1"># Specification of extra data fields to be extracted.</span>
<span class="c1">#-------------------------------------------------------------------------------</span>
CWC <span class="m">0</span>
WRF <span class="m">0</span>
DOUBLEELDA <span class="m">0</span>
ADDPAR None
</pre></div>
</div>
</div>
<div class="toctree-wrapper compound"> <div class="toctree-wrapper compound">
</div> </div>
</div> </div>
......
...@@ -421,19 +421,6 @@ Possible selections are: ...@@ -421,19 +421,6 @@ Possible selections are:
<td><p class="first last">For the ECMWF server it is enough to give ${USER} as input. On local system an actual email is prefered to operate correctly. </p> <td><p class="first last">For the ECMWF server it is enough to give ${USER} as input. On local system an actual email is prefered to operate correctly. </p>
</td> </td>
</tr> </tr>
<tr class="row-odd"><td><p class="first last">MAILFAIL</p>
</td>
<td><p class="first last">list of String [m1, m2, …]</p>
</td>
<td><p class="first last">any number of mail addresses, seperated by comma</p>
</td>
<td><p class="first last">[‘”${USER}”]</p>
</td>
<td><p class="first last">If there will be an error log on ECMWF servers, the log file will be sent to the list of emails stored in this parameter. The email addresses should be seperated by a comma.</p>
</td>
<td><p class="first last">For the ECMWF server it is enough to give ${USER} as input. On local system an actual email is prefered to operate correctly. </p>
</td>
</tr>
</tbody> </tbody>
</table> </table>
</div> </div>
...@@ -1091,20 +1078,7 @@ ETADOT calculation from continuity equation on either Gaussian or lat/lon grid i ...@@ -1091,20 +1078,7 @@ ETADOT calculation from continuity equation on either Gaussian or lat/lon grid i
</tr> </tr>
</thead> </thead>
<tbody valign="top"> <tbody valign="top">
<tr class="row-even"><td><p class="first last">WRF</p> <tr class="row-even"><td><p class="first last">CWC</p>
</td>
<td><p class="first last">Integer</p>
</td>
<td><p class="first last">[0,1]</p>
</td>
<td><p class="first last">0</p>
</td>
<td><p class="first last">Switch to retrieve additional parameters needed to run WRF (1) or not (0).</p>
</td>
<td><p class="first last">Up to now, this is still experimental and not completely tested.</p>
</td>
</tr>
<tr class="row-odd"><td><p class="first last">CWC</p>
</td> </td>
<td><p class="first last">Integer</p> <td><p class="first last">Integer</p>
</td> </td>
...@@ -1117,7 +1091,7 @@ ETADOT calculation from continuity equation on either Gaussian or lat/lon grid i ...@@ -1117,7 +1091,7 @@ ETADOT calculation from continuity equation on either Gaussian or lat/lon grid i
<td><p class="first last"></p> <td><p class="first last"></p>
</td> </td>
</tr> </tr>
<tr class="row-even"><td><p class="first last">DOUBLEELDA</p> <tr class="row-odd"><td><p class="first last">DOUBLEELDA</p>
</td> </td>
<td><p class="first last">Integer</p> <td><p class="first last">Integer</p>
</td> </td>
...@@ -1130,7 +1104,7 @@ ETADOT calculation from continuity equation on either Gaussian or lat/lon grid i ...@@ -1130,7 +1104,7 @@ ETADOT calculation from continuity equation on either Gaussian or lat/lon grid i
<td><p class="first last">Each ensemble member is used to create a new synthesized ensemble member by subtracting 2 * ( current time step value - last time step value ) from the current time step value</p> <td><p class="first last">Each ensemble member is used to create a new synthesized ensemble member by subtracting 2 * ( current time step value - last time step value ) from the current time step value</p>
</td> </td>
</tr> </tr>
<tr class="row-odd"><td><p class="first last">ADDPAR</p> <tr class="row-even"><td><p class="first last">ADDPAR</p>
</td> </td>
<td><p class="first last">String [p1/p2/../pn]</p> <td><p class="first last">String [p1/p2/../pn]</p>
</td> </td>
......
...@@ -193,7 +193,7 @@ ...@@ -193,7 +193,7 @@
<div class="section" id="ecmwf-user-credential-file-ecmwf-env"> <div class="section" id="ecmwf-user-credential-file-ecmwf-env">
<h1>ECMWF User Credential file <code class="docutils literal notranslate"><span class="pre">ECMWF_ENV</span></code><a class="headerlink" href="#ecmwf-user-credential-file-ecmwf-env" title="Permalink to this headline"></a></h1> <h1>ECMWF User Credential file <code class="docutils literal notranslate"><span class="pre">ECMWF_ENV</span></code><a class="headerlink" href="#ecmwf-user-credential-file-ecmwf-env" title="Permalink to this headline"></a></h1>
<p>This file contains the user credentials for working on ECMWF servers and transfering files between the ECMWF servers and the local gateway server. It is located in the <code class="docutils literal notranslate"><span class="pre">flex_extract_vX.X/run</span></code> directory and will be created in the installation process for the application modes <strong>remote</strong> and <strong>gateway</strong>.</p> <p>This file contains the user credentials for working on ECMWF servers and transferring files between the ECMWF servers and the local gateway server. It is located in the <code class="docutils literal notranslate"><span class="pre">flex_extract_vX.X/run</span></code> directory and will be created in the installation process for the application modes <strong>remote</strong> and <strong>gateway</strong>.</p>
<p>This file is based on the template <code class="docutils literal notranslate"><span class="pre">ECMWF_ENV.template</span></code> which is located in the <code class="docutils literal notranslate"><span class="pre">templates</span></code> directory.</p> <p>This file is based on the template <code class="docutils literal notranslate"><span class="pre">ECMWF_ENV.template</span></code> which is located in the <code class="docutils literal notranslate"><span class="pre">templates</span></code> directory.</p>
<div class="admonition note"> <div class="admonition note">
<p class="first admonition-title">Note</p> <p class="first admonition-title">Note</p>
......
...@@ -226,7 +226,7 @@ A list of these <code class="docutils literal notranslate"><span class="pre">Mak ...@@ -226,7 +226,7 @@ A list of these <code class="docutils literal notranslate"><span class="pre">Mak
</div> </div>
</div></blockquote> </div></blockquote>
<p>For instructions on how to adapt the <code class="docutils literal notranslate"><span class="pre">Makefiles</span></code> for the local application mode <p>For instructions on how to adapt the <code class="docutils literal notranslate"><span class="pre">Makefiles</span></code> for the local application mode
please see <a class="reference internal" href="../../installation.html#ref-install-local"><span class="std std-ref">Local installation</span></a>.</p> please see <a class="reference internal" href="../../Installation/local.html#ref-install-local"><span class="std std-ref">Local installation</span></a>.</p>
<div class="toctree-wrapper compound"> <div class="toctree-wrapper compound">
</div> </div>
</div> </div>
......
...@@ -477,6 +477,113 @@ the command line parameters and the so-called <code class="docutils literal notr ...@@ -477,6 +477,113 @@ the command line parameters and the so-called <code class="docutils literal notr
</div> </div>
<div class="section" id="content-of-run-sh"> <div class="section" id="content-of-run-sh">
<h2>Content of <code class="docutils literal notranslate"><span class="pre">run.sh</span></code><a class="headerlink" href="#content-of-run-sh" title="Permalink to this headline"></a></h2> <h2>Content of <code class="docutils literal notranslate"><span class="pre">run.sh</span></code><a class="headerlink" href="#content-of-run-sh" title="Permalink to this headline"></a></h2>
<div class="literal-block-wrapper docutils container" id="id2">
<div class="code-block-caption"><span class="caption-text">run.sh</span><a class="headerlink" href="#id2" title="Permalink to this code"></a></div>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="ch">#!/bin/bash</span>
<span class="c1">#</span>
<span class="c1"># @Author: Anne Philipp</span>
<span class="c1">#</span>
<span class="c1"># @Date: October, 4 2018</span>
<span class="c1">#</span>
<span class="c1"># @Description: </span>
<span class="c1">#</span>
<span class="c1"># -----------------------------------------------------------------</span>
<span class="c1"># AVAILABLE COMMANDLINE ARGUMENTS TO SET</span>
<span class="c1"># </span>
<span class="c1"># THE USER HAS TO SPECIFY THESE PARAMETERS:</span>
<span class="nv">QUEUE</span><span class="o">=</span><span class="s1">&#39;ecgate&#39;</span>
<span class="nv">START_DATE</span><span class="o">=</span>None
<span class="nv">END_DATE</span><span class="o">=</span>None
<span class="nv">DATE_CHUNK</span><span class="o">=</span>None
<span class="nv">JOB_CHUNK</span><span class="o">=</span><span class="m">3</span>
<span class="nv">BASETIME</span><span class="o">=</span>None
<span class="nv">STEP</span><span class="o">=</span>None
<span class="nv">LEVELIST</span><span class="o">=</span>None
<span class="nv">AREA</span><span class="o">=</span>None
<span class="nv">INPUTDIR</span><span class="o">=</span>None
<span class="nv">OUTPUTDIR</span><span class="o">=</span>None
<span class="nv">PP_ID</span><span class="o">=</span>None
<span class="nv">JOB_TEMPLATE</span><span class="o">=</span><span class="s1">&#39;job.temp&#39;</span>
<span class="nv">CONTROLFILE</span><span class="o">=</span><span class="s1">&#39;CONTROL_OD.OPER.FC.gauss.global&#39;</span>
<span class="nv">DEBUG</span><span class="o">=</span><span class="m">0</span>
<span class="nv">REQUEST</span><span class="o">=</span><span class="m">2</span>
<span class="nv">PUBLIC</span><span class="o">=</span><span class="m">0</span>
<span class="c1"># -----------------------------------------------------------------</span>
<span class="c1">#</span>
<span class="c1"># AFTER THIS LINE THE USER DOES NOT HAVE TO CHANGE ANYTHING !!!</span>
<span class="c1">#</span>
<span class="c1"># -----------------------------------------------------------------</span>
<span class="c1"># PATH TO SUBMISSION SCRIPT</span>
<span class="nv">pyscript</span><span class="o">=</span>../Source/Python/submit.py
<span class="c1"># INITIALIZE EMPTY PARAMETERLIST</span>
<span class="nv">parameterlist</span><span class="o">=</span><span class="s2">&quot;&quot;</span>
<span class="c1"># CHECK FOR MORE PARAMETER </span>
<span class="k">if</span> <span class="o">[</span> -n <span class="s2">&quot;</span><span class="nv">$START_DATE</span><span class="s2">&quot;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
<span class="nv">parameterlist</span><span class="o">+=</span><span class="s2">&quot; --start_date=</span><span class="nv">$START_DATE</span><span class="s2">&quot;</span>
<span class="k">fi</span>
<span class="k">if</span> <span class="o">[</span> -n <span class="s2">&quot;</span><span class="nv">$END_DATE</span><span class="s2">&quot;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
<span class="nv">parameterlist</span><span class="o">+=</span><span class="s2">&quot; --end_date=</span><span class="nv">$END_DATE</span><span class="s2">&quot;</span>
<span class="k">fi</span>
<span class="k">if</span> <span class="o">[</span> -n <span class="s2">&quot;</span><span class="nv">$DATE_CHUNK</span><span class="s2">&quot;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
<span class="nv">parameterlist</span><span class="o">+=</span><span class="s2">&quot; --date_chunk=</span><span class="nv">$DATE_CHUNK</span><span class="s2">&quot;</span>
<span class="k">fi</span>
<span class="k">if</span> <span class="o">[</span> -n <span class="s2">&quot;</span><span class="nv">$JOB_CHUNK</span><span class="s2">&quot;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
<span class="nv">parameterlist</span><span class="o">+=</span><span class="s2">&quot; --job_chunk=</span><span class="nv">$JOB_CHUNK</span><span class="s2">&quot;</span>
<span class="k">fi</span>
<span class="k">if</span> <span class="o">[</span> -n <span class="s2">&quot;</span><span class="nv">$BASETIME</span><span class="s2">&quot;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
<span class="nv">parameterlist</span><span class="o">+=</span><span class="s2">&quot; --basetime=</span><span class="nv">$BASETIME</span><span class="s2">&quot;</span>
<span class="k">fi</span>
<span class="k">if</span> <span class="o">[</span> -n <span class="s2">&quot;</span><span class="nv">$STEP</span><span class="s2">&quot;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
<span class="nv">parameterlist</span><span class="o">+=</span><span class="s2">&quot; --step=</span><span class="nv">$STEP</span><span class="s2">&quot;</span>
<span class="k">fi</span>
<span class="k">if</span> <span class="o">[</span> -n <span class="s2">&quot;</span><span class="nv">$LEVELIST</span><span class="s2">&quot;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
<span class="nv">parameterlist</span><span class="o">+=</span><span class="s2">&quot; --levelist=</span><span class="nv">$LEVELIST</span><span class="s2">&quot;</span>
<span class="k">fi</span>
<span class="k">if</span> <span class="o">[</span> -n <span class="s2">&quot;</span><span class="nv">$AREA</span><span class="s2">&quot;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
<span class="nv">parameterlist</span><span class="o">+=</span><span class="s2">&quot; --area=</span><span class="nv">$AREA</span><span class="s2">&quot;</span>
<span class="k">fi</span>
<span class="k">if</span> <span class="o">[</span> -n <span class="s2">&quot;</span><span class="nv">$INPUTDIR</span><span class="s2">&quot;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
<span class="nv">parameterlist</span><span class="o">+=</span><span class="s2">&quot; --inputdir=</span><span class="nv">$INPUTDIR</span><span class="s2">&quot;</span>
<span class="k">fi</span>
<span class="k">if</span> <span class="o">[</span> -n <span class="s2">&quot;</span><span class="nv">$OUTPUTDIR</span><span class="s2">&quot;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
<span class="nv">parameterlist</span><span class="o">+=</span><span class="s2">&quot; --outputdir=</span><span class="nv">$OUTPUTDIR</span><span class="s2">&quot;</span>
<span class="k">fi</span>
<span class="k">if</span> <span class="o">[</span> -n <span class="s2">&quot;</span><span class="nv">$PP_ID</span><span class="s2">&quot;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
<span class="nv">parameterlist</span><span class="o">+=</span><span class="s2">&quot; --ppid=</span><span class="nv">$PP_ID</span><span class="s2">&quot;</span>
<span class="k">fi</span>
<span class="k">if</span> <span class="o">[</span> -n <span class="s2">&quot;</span><span class="nv">$JOB_TEMPLATE</span><span class="s2">&quot;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
<span class="nv">parameterlist</span><span class="o">+=</span><span class="s2">&quot; --job_template=</span><span class="nv">$JOB_TEMPLATE</span><span class="s2">&quot;</span>
<span class="k">fi</span>
<span class="k">if</span> <span class="o">[</span> -n <span class="s2">&quot;</span><span class="nv">$QUEUE</span><span class="s2">&quot;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
<span class="nv">parameterlist</span><span class="o">+=</span><span class="s2">&quot; --queue=</span><span class="nv">$QUEUE</span><span class="s2">&quot;</span>
<span class="k">fi</span>
<span class="k">if</span> <span class="o">[</span> -n <span class="s2">&quot;</span><span class="nv">$CONTROLFILE</span><span class="s2">&quot;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
<span class="nv">parameterlist</span><span class="o">+=</span><span class="s2">&quot; --controlfile=</span><span class="nv">$CONTROLFILE</span><span class="s2">&quot;</span>
<span class="k">fi</span>
<span class="k">if</span> <span class="o">[</span> -n <span class="s2">&quot;</span><span class="nv">$DEBUG</span><span class="s2">&quot;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
<span class="nv">parameterlist</span><span class="o">+=</span><span class="s2">&quot; --debug=</span><span class="nv">$DEBUG</span><span class="s2">&quot;</span>
<span class="k">fi</span>
<span class="k">if</span> <span class="o">[</span> -n <span class="s2">&quot;</span><span class="nv">$REQUEST</span><span class="s2">&quot;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
<span class="nv">parameterlist</span><span class="o">+=</span><span class="s2">&quot; --request=</span><span class="nv">$REQUEST</span><span class="s2">&quot;</span>
<span class="k">fi</span>
<span class="k">if</span> <span class="o">[</span> -n <span class="s2">&quot;</span><span class="nv">$PUBLIC</span><span class="s2">&quot;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
<span class="nv">parameterlist</span><span class="o">+=</span><span class="s2">&quot; --public=</span><span class="nv">$PUBLIC</span><span class="s2">&quot;</span>
<span class="k">fi</span>
<span class="c1"># -----------------------------------------------------------------</span>
<span class="c1"># CALL SCRIPT WITH DETERMINED COMMANDLINE ARGUMENTS</span>
<span class="nv">$pyscript</span> <span class="nv">$parameterlist</span>
</pre></div>
</div>
</div>
</div> </div>
<div class="section" id="usage-of-submit-py-optional"> <div class="section" id="usage-of-submit-py-optional">
<span id="ref-install-script"></span><h2>Usage of <code class="docutils literal notranslate"><span class="pre">submit.py</span></code> (optional)<a class="headerlink" href="#usage-of-submit-py-optional" title="Permalink to this headline"></a></h2> <span id="ref-install-script"></span><h2>Usage of <code class="docutils literal notranslate"><span class="pre">submit.py</span></code> (optional)<a class="headerlink" href="#usage-of-submit-py-optional" title="Permalink to this headline"></a></h2>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment