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

Last change on this file since 2425 was 2425, checked in by labetoulle, 8 years ago

Save daily plots on WORK

  • Property svn:executable set to *
File size: 1.0 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.getcwd()
16
17# Common paths
18# ============
19DIR = {
20  "ROOT": ROOT_DIR,
21  "DATA": os.path.join(ROOT_DIR, "output"),
22  "SAVE": os.path.join(ROOT_DIR, "save"),
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}
46
47
48if __name__ == "__main__":
49  print(DIR, )
50  print(OUT, )
Note: See TracBrowser for help on using the repository browser.