ctbtodev
Last change
on this file since 3232589 was
222aa11,
checked in by Anne Philipp <anne.philipp@…>, 6 years ago
|
added pathes in config file and according testcases
|
-
Property mode set to
100644
|
File size:
1.6 KB
|
Rev | Line | |
---|
[54a8a01] | 1 | #!/usr/bin/env python |
---|
| 2 | # -*- coding: utf-8 -*- |
---|
| 3 | #******************************************************************************* |
---|
| 4 | # @Author: Anne Philipp (University of Vienna) |
---|
| 5 | # |
---|
| 6 | # @Date: August 2018 |
---|
| 7 | # |
---|
| 8 | # @Change History: |
---|
| 9 | # |
---|
| 10 | # @License: |
---|
| 11 | # (C) Copyright 2014-2018. |
---|
| 12 | # |
---|
| 13 | # This software is licensed under the terms of the Apache Licence Version 2.0 |
---|
| 14 | # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. |
---|
| 15 | # |
---|
| 16 | # @Description: |
---|
| 17 | # Contains constant value parameter for flex_extract. |
---|
| 18 | # |
---|
| 19 | #******************************************************************************* |
---|
| 20 | |
---|
| 21 | # ------------------------------------------------------------------------------ |
---|
| 22 | # MODULES |
---|
| 23 | # ------------------------------------------------------------------------------ |
---|
| 24 | import os |
---|
| 25 | import sys |
---|
| 26 | import inspect |
---|
| 27 | |
---|
| 28 | _VERSION_STR = '7.1' |
---|
| 29 | |
---|
| 30 | # add path to pythonpath |
---|
[222aa11] | 31 | PATH_LOCAL_PYTHON = os.path.dirname(os.path.abspath( |
---|
[54a8a01] | 32 | inspect.getfile(inspect.currentframe()))) |
---|
[222aa11] | 33 | if PATH_LOCAL_PYTHON not in sys.path: |
---|
| 34 | sys.path.append(PATH_LOCAL_PYTHON) |
---|
| 35 | |
---|
| 36 | PATH_FLEXEXTRACT_DIR = os.path.normpath(os.path.dirname(os.path.abspath( |
---|
| 37 | inspect.getfile(inspect.currentframe()))) + '/../') |
---|
| 38 | |
---|
| 39 | PATH_TEMPLATES = os.path.join(PATH_FLEXEXTRACT_DIR + os.path.sep + |
---|
| 40 | '_templates') |
---|
[dda0e9d] | 41 | |
---|
| 42 | # path to gribtable |
---|
[222aa11] | 43 | PATH_GRIBTABLE = os.path.join(PATH_TEMPLATES + os.path.sep + |
---|
| 44 | 'ecmwf_grib1_table_128') |
---|
| 45 | |
---|
| 46 | PATH_RUN_DIR = os.path.join(PATH_FLEXEXTRACT_DIR + os.path.sep + |
---|
| 47 | 'run') |
---|
[dda0e9d] | 48 | |
---|
[222aa11] | 49 | PATH_CONTROLFILES = os.path.join(PATH_RUN_DIR + os.path.sep + |
---|
| 50 | 'control') |
---|
Note: See
TracBrowser
for help on using the repository browser.