source: flex_extract.git/Documentation/html/_sources/installation.rst.txt @ 30f7911

ctbtodev
Last change on this file since 30f7911 was 30f7911, checked in by Anne Philipp <anne.philipp@…>, 5 years ago

reviewed installation section of online documentation; minor corrections

  • Property mode set to 100644
File size: 9.8 KB
Line 
1************
2Installation
3************
4
5.. role:: underline
6    :class: underline
7   
8.. toctree::
9    :hidden:
10    :maxdepth: 2
11   
12     
13.. _Python 3: https://docs.python.org/3/
14.. _Python3: https://www.python.org/downloads/
15.. _Anaconda Python3: https://www.anaconda.com/distribution/#download-section
16
17.. _numpy: http://www.numpy.org/
18.. _ecmwf-api-client: https://confluence.ecmwf.int/display/WEBAPI/ECMWF+Web+API+Home
19.. _cdsapi: https://cds.climate.copernicus.eu/api-how-to
20.. _genshi: https://genshi.edgewall.org/
21.. _eccodes for python: https://packages.debian.org/sid/python3-eccodes
22.. _eccodes for conda: https://anaconda.org/conda-forge/eccodes
23.. _gfortran: https://gcc.gnu.org/wiki/GFortran
24.. _fftw3: http://www.fftw.org
25.. _eccodes: https://software.ecmwf.int/wiki/display/ECC
26.. _emoslib: https://software.ecmwf.int/wiki/display/EMOS/Emoslib
27.. _member state: https://www.ecmwf.int/en/about/who-we-are/member-states
28.. _registration form: https://apps.ecmwf.int/registration/
29.. _CDS API registration: https://cds.climate.copernicus.eu/user/register
30.. _ECMWF ectrans site: https://confluence.ecmwf.int/display/ECAC/Unattended+file+transfer+-+ectrans
31.. _ECaccess Presentation: https://confluence.ecmwf.int/download/attachments/45759146/ECaccess.pdf
32.. _ECMWF's instructions on gateway server: https://confluence.ecmwf.int/display/ECAC/ECaccess+Home
33.. _Computing Representative: https://www.ecmwf.int/en/about/contact-us/computing-representatives
34.. _MARS access: https://confluence.ecmwf.int//display/WEBAPI/Access+MARS
35
36.. _download section: https://www.flexpart.eu/downloads
37
38
39
40The ``flex_extract`` software package contains python and shell scripts as well as a Fortran program. These components rely on several libraries which need to be available before starting the installation process. Currently, the software is only tested for a GNU/Linux environment. Feel free to try it out on other platforms.
41
42At first, go to the `user group <Ecmwf/access.html>`_ section and decide which group you belong to and follow the instructions at :ref:`ref-registration` to obtain an account at ECMWF (if you don't have it already). Depending on the user group and the way to access the ECWMF MARS archive, there are four possible :doc:`Documentation/Overview/app_modes`: 
43
44- Remote (member-state users only) :ref:`[installation]<ref-remote-mode>`
45- Gateway (member-state users only) :ref:`[installation]<ref-gateway-mode>`
46- Local, member-state user :ref:`[installation]<ref-local-mode>`
47- Local, public user :ref:`[installation]<ref-local-mode>`
48
49Please follow the link :doc:`Documentation/Overview/app_modes` to get a description of the modes.
50
51.. note::
52
53   If you encounter any problems in the installation process, you can ask for :doc:`support`.
54   
55   
56   
57   
58
59.. _ref-registration:
60
61Registration at ECMWF
62=====================
63
64The registration depends on the :doc:`Documentation/Overview/app_modes` and in case of the local mode also on the data set you'd like to retrieve. The following table gives an overview where you need to register.
65
66+--------------+------------------------------------+--------------+
67|              |  Member-state user                 | Public user  |
68|              +---------+----------+---------------+--------------+
69|    Data sets |Remote   |Gateway   |Local          | Local        |
70+--------------+---------+----------+---------------+--------------+
71| Operational  | 1       | 1        | 1,2           | -            |
72+--------------+---------+----------+---------------+--------------+
73| ERA-Interim  | 1       | 1        | 1,2           | 2            |
74+--------------+---------+----------+---------------+--------------+
75| CERA-20C     | 1       | 1        | 1,2           | 2            |
76+--------------+---------+----------+---------------+--------------+
77| ERA5         | 1       | 1        | 3             | -            |
78+--------------+---------+----------+---------------+--------------+
79
80
81
82Registration options:
83
84    1.)  Access through a member-state user account granted by the `Computing Representative`_. The credentials have to be provided during installation.
85   
86    2.)  Access through the ECMWF Web API. Need to sign in at `ECMWF Web API <https://confluence.ecmwf.int/display/WEBAPI/ECMWF+Web+API+Home>`_ and configure the ECMWF key as described. Member-state users can sign in with their credentials from the `Computing Representative`_ and public users have to fill out the `registration form`_ to get an account.
87   
88    3.) Access through the `CDS API <https://cds.climate.copernicus.eu/api-how-to>`_. Extra registration for member-state users is required at `Copernicus Climate Data Store <https://cds.climate.copernicus.eu/user/register>`_ including the configurations of the CDS key as described. This mode is currently not available for public users. See the note at `user group <Ecmwf/access.html>`_ for information.
89
90   
91   
92.. _ref-licence:
93   
94Licence agreement for public datasets
95=====================================
96
97Each ECMWF public dataset has its own licence which has to be accepted, regardless of the user group.
98
99For the *ERA-Interim* and *CERA-20C* datasets this can be done at the ECMWF website `Available ECMWF Public Datasets <https://confluence.ecmwf.int/display/WEBAPI/Available+ECMWF+Public+Datasets>`_. Log in and follow the licence links on the right side for each dataset and accept it.
100   
101For the *ERA5* dataset this has to be done at the `Climate Data Store (CDS) website <https://cds.climate.copernicus.eu/cdsapp#!/search?type=dataset>`_. Log in and select, on the left panel, product type "Reanalysis" for finding *ERA5* datasets. Then follow any link with *ERA5* to the full dataset record, click on tab "Download data" and scroll down. There is a section "Terms of use" where you have to click the :underline:`Accept terms` button.
102   
103
104
105
106
107.. _ref-download:
108
109Download ``flex_extract``
110=========================
111
112There are two options to download ``flex_extract``:
113
114tar ball
115    You can download a tar ball with the latest release from the `flex_extract page <https://www.flexpart.eu/wiki/FpInputMetEcmwf>`_ from our ``FLEXPART`` community website and then untar the file.
116 
117    .. code-block:: bash
118       
119       tar -xvf <flex_extract_vX.X.tar>
120
121git repo 
122    Alternatively, if you have ``git`` installed on your machine, and if you are interested to keep the code in a version control system, you may clone the latest version from our git repository master branch. 
123
124    .. code-block:: bash
125
126       $ git clone --single-branch --branch master https://www.flexpart.eu/gitmob/flexpart
127
128
129
130
131
132.. _ref-requirements:
133 
134Environment requirements
135========================
136
137The software required for running ``flex_extract`` depends on the :doc:`Documentation/Overview/app_modes` and therefore is described in the respective specific installation sections.
138
139   
140Generally speaking, ``flex_extract`` requires `Python 3`_ and Fortran together with certain modules / libraries.
141We tested ``flex_extract`` with the python3 package from the the GNU/Linux distribution and Anaconda Python. The required python3 modules should prefarably be installed as distribution packages, or alternatively using Python's own package manager ``pip`` (this may mess up some aspects of your python installation, especially if you use ``pip`` as root. Think about using virtual environments.).
142
143
144
145
146
147
148.. _ref-install-fe:
149
150Installation of ``flex_extract``
151================================
152
153The actual installation of ``flex_extract`` is done by executing a shell script called ``setup.sh``.
154It defines some parameters and calls a Python script passing the parameters as command line arguments. For details, see :doc:`Documentation/Input/setup`.
155
156For each application mode installation section we describe the requirements for the explicit
157environment and how it is installed, test if it works and how the actual ``flex_extract``
158installation has to be done. At the users local side not all software has to be present for ``flex_extract``.
159
160
161Select one of the following modes to install:
162
163    :doc:`Installation/remote`
164   
165    :doc:`Installation/gateway`
166   
167    :doc:`Installation/local`
168
169
170.. toctree::
171    :hidden:
172    :maxdepth: 2
173   
174    Installation/remote
175    Installation/gateway
176    Installation/local
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193   
194   
195   
196
197``Flex_extract`` in combination with ``FLEXPART``
198=================================================
199
200Some users might like to incorporate ``flex_extract`` directly into the ``FLEXPART``
201distribution. Then the installation path has to be changed by setting the parameter
202`installdir` in the ``setup.sh`` file to the ``script`` directory in the ``FLEXPART`` root directoy.
203
204
205
206
207
208
209
210
211
212.. _ref-testinstallfe:
213
214Test installation
215=================
216
217Fortran program test
218--------------------
219
220To check if the compilation of the Fortran program ``CONVERT2`` was successful
221a quick program call on a minimal prepared dataset can be done.
222
223For this, go from the ``flex_extract`` root directory to the test
224directory and call the executable of the Fortran program.
225
226.. note::
227   Remember that you might have to log in at the ECMWF server if you used the installation for the **remote** or **gateway** mode. There you find the ``flex_extract`` root directory in your ``$HOME`` directory.
228
229.. code-block:: bash
230   
231   cd test/Installation/Convert
232   # call the Fortran progam without arguments
233   ../../../source/fortran/CONVERT2
234
235The installation was successfull if it showed the following output:
236
237.. code-block:: bash
238
239    readspectral:            1  records read
240    readlatlon:            8  records read
241   STATISTICS:  98842.4598 98709.7359  5120.5385
242    readlatlon:            4  records read
243    readlatlon:            4  records read
244    readlatlon:            4  records read
245   SUCCESSFULLY FINISHED CONVERT_PRE: CONGRATULATIONS
246
247Now go back to the root directory:
248
249.. code-block:: bash
250   
251   $ cd ../../../
252   
253
254
255Full test
256---------
257
258    see :doc:`quick_start`
259
260   
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG