Changeset 2526 for TOOLS/ConsoGENCMIP6/bin/plot_bilan.py
- Timestamp:
- 05/21/15 11:50:57 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/ConsoGENCMIP6/bin/plot_bilan.py
r2524 r2526 163 163 self.real_use = real_use 164 164 self.theo_use = theo_use 165 self.poly_theo = np.poly1d([]) 166 self.poly_delay = np.poly1d([]) 165 167 self.run_mean = run_mean 166 168 self.pen_mean = pen_mean … … 364 366 # ------------------------------ 365 367 args = get_arguments() 366 if args.verbose:367 print(args)368 368 369 369 # ... Turn interactive mode off ... … … 387 387 [OUT["PARAM"], OUT["UTHEO"], OUT["BILAN"]]) 388 388 389 img_name = "bilan" 389 img_name = os.path.splitext( 390 os.path.basename(__file__) 391 )[0].replace("plot_", "") 392 390 393 today = os.path.basename(file_param).strip(OUT["PARAM"]) 391 394 392 395 if args.verbose: 393 print(file_param) 394 print(file_utheo) 395 print(file_data) 396 print(img_name) 397 print(today) 396 fmt_str = "{:10s} : {}" 397 print(fmt_str.format("args", args)) 398 print(fmt_str.format("today", today)) 399 print(fmt_str.format("file_param", file_param)) 400 print(fmt_str.format("file_utheo", file_utheo)) 401 print(fmt_str.format("file_data", file_data)) 402 print(fmt_str.format("img_name", img_name)) 398 403 399 404 # .. Get project info .. … … 506 511 # ------------------------------ 507 512 if args.dods: 513 if args.verbose: 514 print("Publish figure on dods") 508 515 dods_cp(img_in, DIR) 509 516 … … 512 519 513 520 exit(0) 521
Note: See TracChangeset
for help on using the changeset viewer.