Ignore:
Timestamp:
02/25/15 15:18:06 (9 years ago)
Author:
labetoulle
Message:

put all path definitions in a seperate file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/ConsoGENCMIP6/bin/plot_bilan.py

    r2413 r2417  
    99import os 
    1010import os.path 
    11 # import glob 
    1211import datetime as dt 
    1312import numpy as np 
     
    273272  # ... Files and directories ... 
    274273  # ----------------------------- 
    275   file_pattern = "OUT_CONSO_" 
    276   file_param = get_last_file(DIR["DATA"], file_pattern+"PARAM") 
    277   file_utheo = get_last_file(DIR["DATA"], file_pattern+"UTHEO") 
    278   file_bilan = get_last_file(DIR["DATA"], file_pattern+"BILAN") 
    279   file_login = get_last_file(DIR["DATA"], file_pattern+"LOGIN") 
    280   file_store = get_last_file(DIR["DATA"], file_pattern+"STORE") 
     274  file_param = get_last_file(DIR["DATA"], OUT["PARAM"]) 
     275  file_utheo = get_last_file(DIR["DATA"], OUT["UTHEO"]) 
     276  file_bilan = get_last_file(DIR["DATA"], OUT["BILAN"]) 
    281277  img_name = "bilan.pdf" 
    282278 
     
    285281    print(file_utheo) 
    286282    print(file_bilan) 
    287     print(file_login) 
    288     print(file_store) 
     283    print(img_name) 
    289284 
    290285  # .. Get project info .. 
     
    309304  # .. Extract data depending on C.L. arguments .. 
    310305  # ============================================== 
    311   # args.range = [ 
    312   #   string_to_date("2015-01-01"), 
    313   #   string_to_date("2015-01-31") 
    314   # ] 
    315   # args.full  = True 
    316306  if args.full: 
    317307    selected_items = bilan.get_items_in_full_range(args.inc) 
Note: See TracChangeset for help on using the changeset viewer.