source: TOOLS/ConsoGENCMIP6/bin/gencmip6_path.py.init @ 3734

Last change on this file since 3734 was 2437, checked in by labetoulle, 9 years ago

Add plot_bilan_jobs.py and do some cleaning

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3
4# this must come first
5from __future__ import print_function, unicode_literals, division
6
7# standard library imports
8import os
9import os.path
10
11# Application library imports
12from gencmip6 import *
13
14
15ROOT_DIR = os.path.join(os.environ["HOME"], "ConsoGENCMIP6")
16
17# Common paths
18# ============
19DIR = {
20  "ROOT": ROOT_DIR,
21  "DATA": os.path.join(ROOT_DIR, "output"),
22  "SAVE": os.path.join(os.environ["CCCWORKDIR"], "ConsoGENCMIP6"),
23  "PLOT": os.path.join(ROOT_DIR, "plot"),
24  "DODS": None,
25}
26DIR["SAVEDATA"] = os.path.join(DIR["SAVE"], "data")
27DIR["SAVEPLOT"] = os.path.join(DIR["SAVE"], "plot")
28
29for dirname in DIR.itervalues():
30  if dirname and not os.path.isdir(dirname):
31    try :
32      os.makedirs(dirname)
33    except Exception as rc :
34      print("Could not create {}:\n{}".format(dirname, rc))
35
36# Common files
37# ============
38OUT = {
39  "PARAM": "OUT_CONSO_PARAM",
40  "BILAN": "OUT_CONSO_BILAN",
41  "UTHEO": "OUT_CONSO_UTHEO",
42  "LOGIN": "OUT_CONSO_LOGIN",
43  "STORE": "OUT_CONSO_STORE",
44  "CCCMP": "ccc_myproject.dat",
45  "JOBS":  "OUT_JOBS_PENDING",
46}
47
48
49if __name__ == "__main__":
50  print(DIR, )
51  print(OUT, )
Note: See TracBrowser for help on using the repository browser.