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

Last change on this file since 2437 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
RevLine 
[2413]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
[2425]9import os.path
[2413]10
11# Application library imports
12from gencmip6 import *
13
14
[2437]15ROOT_DIR = os.path.join(os.environ["HOME"], "ConsoGENCMIP6")
[2413]16
[2421]17# Common paths
[2425]18# ============
[2413]19DIR = {
20  "ROOT": ROOT_DIR,
21  "DATA": os.path.join(ROOT_DIR, "output"),
[2437]22  "SAVE": os.path.join(os.environ["CCCWORKDIR"], "ConsoGENCMIP6"),
[2413]23  "PLOT": os.path.join(ROOT_DIR, "plot"),
[2421]24  "DODS": None,
[2413]25}
[2425]26DIR["SAVEDATA"] = os.path.join(DIR["SAVE"], "data")
27DIR["SAVEPLOT"] = os.path.join(DIR["SAVE"], "plot")
[2413]28
[2425]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
[2421]36# Common files
[2425]37# ============
[2421]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",
[2437]44  "CCCMP": "ccc_myproject.dat",
45  "JOBS":  "OUT_JOBS_PENDING",
[2421]46}
[2413]47
[2421]48
[2413]49if __name__ == "__main__":
50  print(DIR, )
[2421]51  print(OUT, )
Note: See TracBrowser for help on using the repository browser.