source: flex_extract.git/Documentation/html/_sources/Installation/remote.rst.txt @ d720895

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

updated online docu

  • Property mode set to 100644
File size: 9.0 KB
Line 
1************************
2Remote mode installation
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.. _ref-remote-mode:
40
41
42.. _ref-req-remote:
43 
44Remote mode - dependencies
45==========================
46
47The following software is required, and already available at the ECMWF servers:
48   
49+---------------------------+-----------------+
50|  Python part              | Fortran part    |
51+---------------------------+-----------------+
52| * `Python3`_              | * `gfortran`_   |
53| * `numpy`_                | * `fftw3`_      |
54| * `genshi`_               | * `eccodes`_    |
55| * `eccodes for python`_   | * `emoslib`_    |
56+---------------------------+-----------------+
57
58
59.. _ref-prep-remote:
60
61Prepare remote environment
62==========================
63 
64ECMWF servers provide all libraries via a module system. Loading the required modules is already built into ``flex_extract`` and no user action is needed.
65
66
67.. _ref-install-remote:
68
69Remote installation
70===================
71
72First, log in on one of the ECMWF servers, such as *ecgate* or *cca/ccb*.
73Substitute *<ecuid>* with your ECMWF user name:
74
75.. code-block:: bash
76   
77   ssh -X <ecuid>@ecaccess.ecmwf.int
78
79This will lead to the following output on the command line, asking for your
80password:
81   
82.. code-block:: bash
83
84   Authorized access only.
85
86   ***************************************************************
87      For further information, read the ECaccess documentation at:
88
89      https://software.ecmwf.int/wiki/display/ECAC/ECaccess+Home
90
91      You can also use ECaccess to load & download files from your
92      EChome, ECscratch or ECfs directories using the ECaccess FTP
93      server:
94
95      ftp://uid@ecaccess.ecmwf.int/
96
97      Please note you must use your UID and ActivID code to login!
98   ***************************************************************
99
100   <ecuid>@<ipname/address>'s password: ***
101   Select hostname (ecgate, cca, ccb) [ecgate]: ecgate
102
103   [<ecuid>@ecgb11 ~]$
104   
105Substitute the *<localuser>* and *<localmachine.tld>* placeholders with your local user name and the IP name or address of your local machine.
106Untar the file and change into the ``flex_extract`` root directory.
107   
108.. code-block:: bash
109
110   scp <localuser>@<localmachine.tld>:</path/to/tarfile/>flex_extract_vX.X.tar.gz  $HOME/
111   cd $HOME
112   tar xvf flex_extract_vX.X.tar.gz
113   cd flex_extract_vX.X
114   
115
116   
117Execute the ``setup.sh`` script from the ``flex_extract``'s root directory.
118Before executing it, it is necessary to adapt some parameters from ``setup.sh``
119described in :doc:`Documentation/Input/setup`.
120
121Open ``setup.sh`` with your preferred editor (e.g., ``nano'') and adapt the values: 
122   
123+----------------------------------------------+----------------------------------------------+   
124|   Use this for target = **ectrans**          |   Use this for target = **cca**              |
125+----------------------------------------------+----------------------------------------------+
126| .. code-block:: bash                         | .. code-block:: bash                         |
127|                                              |                                              |
128|   ...                                        |   ...                                        |   
129|   # -----------------------------------------|   # -----------------------------------------|
130|   # AVAILABLE COMMANDLINE ARGUMENTS TO SET   |   # AVAILABLE COMMANDLINE ARGUMENTS TO SET   |
131|   #                                          |   #                                          | 
132|   # THE USER HAS TO SPECIFY THESE PARAMETER  |   # THE USER HAS TO SPECIFY THESE PARAMETER  |
133|   #                                          |   #                                          |
134|   TARGET='ecgate'                            |   TARGET='cca'                               |
135|   MAKEFILE='Makefile.gfortran'               |   MAKEFILE='Makefile.CRAY'                   | 
136|   ECUID='uid'                                |   ECUID='uid'                                | 
137|   ECGID='gid'                                |   ECGID='gid'                                |
138|   GATEWAY=None                               |   GATEWAY=None                               |
139|   DESTINATION=None                           |   DESTINATION=None                           |
140|   INSTALLDIR=None                            |   INSTALLDIR=''                              |
141|   JOB_TEMPLATE='job.template'                |   JOB_TEMPLATE='job.template'                |
142|   CONTROLFILE='CONTROL_EA5'                  |   CONTROLFILE='CONTROL_EA5'                  |
143|   ...                                        |   ...                                        |   
144+----------------------------------------------+----------------------------------------------+
145
146:underline:`Please substitute the values of ECUID and ECGID
147with your own ones (look at any of your files with ``ls -l'' to see uid and gid).`
148
149.. note::
150
151   If a local gateway server is available, files can be transferred with ``ECaccess`` commands. In that case, a valid *GATEWAY* and *DESTINATION* have to be present in the ``setup.sh`` file (even if not used, the lines must not be deleted).
152
153Afterwards, type:
154
155.. code-block:: bash
156
157   module load python3   
158   ./setup.sh
159   
160to start the installation. You should see the following on standard output.
161   
162   
163.. code-block:: bash
164
165   # Output of setup.sh
166   Create tarball ...
167   Job compilation script has been submitted to ecgate for installation in ${HOME}/flex_extract_vX.X
168   You should get an email with subject "flexcompile" within the next few minutes!
169
170   
171``Flex_extract`` uses the email address connectd to the user account on ECMWF servers. The email content should look like this with a "SUCCESS" statement in the last line:
172
173.. code-block:: bash
174
175    gfortran   -m64 -fdefault-real-8 -fcray-pointer -fno-second-underscore  -ffixed-line-length-132 -fopenmp  -fconvert=big-endian  -c -g -O3 -fopenmp phgrreal.f
176    gfortran   -m64 -fdefault-real-8 -fcray-pointer -fno-second-underscore  -ffixed-line-length-132 -fopenmp  -fconvert=big-endian  -c -g -O3 -fopenmp grphreal.f
177    gfortran   -m64 -fdefault-real-8 -fcray-pointer -fno-second-underscore  -ffixed-line-length-132 -fopenmp  -fconvert=big-endian  -c -g -O3 -fopenmp ftrafo.f
178    gfortran   -m64 -fdefault-real-8 -fcray-pointer -fno-second-underscore  -ffixed-line-length-132 -fopenmp  -fconvert=big-endian  -c -O3 -I. -I/usr/local/apps/eccodes/2.12.0/GNU/6.3.0/include -g rwGRIB2.f90
179    gfortran   -m64 -fdefault-real-8 -fcray-pointer -fno-second-underscore  -ffixed-line-length-132 -fopenmp  -fconvert=big-endian  -c -O3 -I. -I/usr/local/apps/eccodes/2.12.0/GNU/6.3.0/include -g posnam.f
180    gfortran   -m64 -fdefault-real-8 -fcray-pointer -fno-second-underscore  -ffixed-line-length-132 -fopenmp  -fconvert=big-endian  -c -O3 -I. -I/usr/local/apps/eccodes/2.12.0/GNU/6.3.0/include -g preconvert.f90
181    gfortran   -m64 -fdefault-real-8 -fcray-pointer -fno-second-underscore  -ffixed-line-length-132 -fopenmp  -fconvert=big-endian  -g -O3 -o ./CONVERT2 ftrafo.o phgrreal.o grphreal.o rwGRIB2.o posnam.o preconvert.o -L/usr/local/apps/eccodes/2.12.0/GNU/6.3.0/lib -Wl,-rpath,/usr/local/apps/eccodes/2.12.0/GNU/6.3.0/lib -leccodes_f90 -leccodes -ljasper -lpthread -L/usr/local/apps/jasper/1.900.1/LP64/lib -ljasper -lm -L/usr/local/apps/libemos/000455/GNU/6.3.0/lib  -Wl,-rpath,/usr/local/apps/libemos/000455/GNU/6.3.0/lib  -lemos.R64.D64.I32 -L/usr/local/apps/fftw/3.3.4/GNU/6.3.0/lib -Wl,-rpath,/usr/local/apps/fftw/3.3.4/GNU/6.3.0/lib -lfftw3   
182    -rwxr-x---. 1 USER at 353134 May 23 12:27 CONVERT2
183    SUCCESS!   
184
185
186   
187
188   
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG