source: flexpart.git/preproc/src/README.md @ 02095e3

10.4.1_peseiFPv9.3.1FPv9.3.1b_testingFPv9.3.2GFS_025bugfixes+enhancementsdevfp9.3.1-20161214-nc4grib2nc4_repairrelease-10release-10.4.1scaling-bugunivie
Last change on this file since 02095e3 was 5763793, checked in by Anne Fouilloux <annefou@…>, 9 years ago

Add pre-processing programs and examples. This is still under development!

  • Property mode set to 100644
File size: 2.9 KB
Line 
1# README #
2
3This documentation shows how to compile `CONVERT2` program
4
5### Overview ###
6
7### Requirements ###
8
9| Utilities             |
10|----------------------:|
11|  make                 | [http://www.gnu.org/software/make/](http://www.gnu.org/software/make/) |
12| Third party libraries |
13|----------------------:|
14|  EMOS                 | [https://software.ecmwf.int/wiki/display/EMOS/Emoslib](https://software.ecmwf.int/wiki/display/EMOS/Emoslib) | Make sure you install EMOS lib with 64 bits reals.
15|  grib-api             | [https://software.ecmwf.int/wiki/display/GRIB/Home](https://software.ecmwf.int/wiki/display/GRIB/Home) | Make sure you install GRIB-API with JPEG support and python GRIB-API.
16
17
18### Installation ###
19
20*  Environment
21
22At UIO, Red Hat 6 Linux systems (64 bits) were used for testing. We use the [Module package](http://modules.sourceforge.net/) to set-up user environment.
23
24* Getting the source code
25
26If you still haven't got the source from bitbucket (Please note that it needs to be done once only).
27
28In the directory of your choice:
29
30`
31git clone git@bitbucket.org:flexpart/flexpart.git
32`
33This command will create a subdirectory called flexpart: it contains the latest FLEXPART version.
34
35Set then environment variable `FLEXPART_HOME`:
36
37** Korn-shell or Bash users:
38`
39cd flexpart
40export FLEXPART_HOME=$PWD
41`
42
43** C-shell users:
44
45`
46cd flexpart
47setenv FLEXPART_HOME=$PWD
48`
49
50* Installation
51
52There is a makefile example called `makefile` which you can use as a template. It uses GNU gfortran version 4.8.2. The version of your `gfortran`compiler can be tested with the following command:
53`
54gfortran --version
55`
56
57For using our `makefile`, you need to define the following environment variables:
58
59Please note that these environment variables may be automatically defined on your system. Please check with your local IT administrator. For instance at UIO, these environment variables are defined by loading the corresponding modulefiles (`module load grib_api emos`).
60
61+ `GRIB_API_FFLAGS`
62+ `GRIB_API_LDFLAGS`
63+ `EMOS_LDFLAGS`
64
65For instance at UIO on sverdrup.uio.no:
66`
67> echo $GRIB_API_FFLAGS
68-I/site/opt/grib_api/1.12.3_gnu/include
69
70> echo $GRIB_API_LDFLAGS
71-L/site/opt/grib_api/1.12.3_gnu/lib -lgrib_api_f90 -lgrib_api
72
73> echo $EMOS_LDFLAGS
74-L/site/opt/emos/000392_grib_api_1.12.3_gnu -lemos
75
76`
77
78If `EMOS` and `GRIB-API` have been installed properly and you have adjusted your makefile then you can compile `CONVERT2`:
79`
80cd preproc/src
81
82gmake
83`
84
85If successful, a program called `CONVERT2` is created in the current directory. You now need to add this program in your `PATH`:
86** Korn-shell or Bash users:
87`
88export PATH=$FLEXPART_HOME/preproc/src:$PATH
89`
90
91** C-shell users:
92
93`
94setenv PATH $FLEXPART_HOME/preproc/src:$PATH
95`
96
97Where `$FLEXPART_HOME` is the directory where FLEXPART
98
99* Testing your installation
100
101See separate instructions in `tests/preproc`.
102
103Please report any problems.
104
105###  Installation FAQ ###
106
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG