Changeset 2460
- Timestamp:
- 04/02/15 12:12:26 (10 years ago)
- Location:
- TOOLS/ConsoGENCMIP6
- Files:
-
- 1 added
- 9 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/ConsoGENCMIP6/bin
- Property svn:ignore
-
old new 1 gencmip6_path.py 1 *.pyc
-
- Property svn:ignore
-
TOOLS/ConsoGENCMIP6/bin/conso_gencmip6.py
r2437 r2460 15 15 16 16 # Application library imports 17 from gencmip6 import * 18 from gencmip6_path import * 17 from libconso import * 19 18 20 19 … … 57 56 58 57 ######################################## 59 def parse_myproject(filename ):58 def parse_myproject(filename, project_name): 60 59 61 60 project = {} 62 project[" project"] = "gencmip6"61 project["name"] = project_name 63 62 logins = {} 64 63 … … 76 75 # Then extract script date 77 76 for ligne in filein: 78 if project[" project"] in ligne:77 if project["name"] in ligne: 79 78 today = ligne.split()[-1] 80 79 today = string_to_date(today) 80 project["machine"] = ligne.split()[5] 81 project["nodes"] = ligne.split()[6] 81 82 82 83 break … … 137 138 138 139 ######################################## 139 def write_bilan(filename, today, total, ureal, utheo, run_mean, pen_mean, run_std, pen_std): 140 def write_bilan(filename, today, total, ureal, utheo, 141 run_mean, pen_mean, run_std, pen_std): 140 142 """ 141 143 Conso totale par jour … … 145 147 """ 146 148 147 title_str = "{:10s} {:12s} {:11s} {:11s} {:13s} {:13s} {:13s} {:13s}\n".format( 148 "date", 149 "conso(hours)", 150 "real_use(%)", 151 "theo_use(%)", 152 "running(core)", 153 "pending(core)", 154 "run_std(core)", 155 "pen_std(core)", 156 ) 157 str_fmt = "{:%Y-%m-%d} {:12.2f} {:11.2f} {:11.2f} {:13.2f} {:13.2f} {:13.2f} {:13.2f}\n" 158 result_str = str_fmt.format( 159 today, 160 total, 161 ureal, 162 utheo, 163 run_mean, 164 pen_mean, 165 run_std, 166 pen_std, 167 ) 149 fmt_str = "{:10s} {:12s} {:11s} {:11s} {:13s} {:13s} {:13s} {:13s}\n" 150 151 title_str = fmt_str.format( 152 "date", 153 "conso(hours)", 154 "real_use(%)", 155 "theo_use(%)", 156 "running(core)", 157 "pending(core)", 158 "run_std(core)", 159 "pen_std(core)", 160 ) 161 162 fmt_str = ( 163 "{:%Y-%m-%d} {:12.2f} {:11.2f} {:11.2f} " 164 "{:13.2f} {:13.2f} {:13.2f} {:13.2f}\n" 165 ) 166 167 result_str = fmt_str.format( 168 today, 169 total, 170 ureal, 171 utheo, 172 run_mean, 173 pen_mean, 174 run_std, 175 pen_std, 176 ) 168 177 169 178 if args.dryrun: … … 337 346 args.all = False 338 347 348 project_name, DIR, OUT = parse_config("bin/config.ini") 349 339 350 if args.verbose: 340 351 print(DIR["DATA"]) 341 352 print(DIR["SAVEDATA"]) 342 353 343 (project, logins, today, total, utheo, ureal) = \ 344 parse_myproject(os.path.join(DIR["DATA"], OUT["CCCMP"])) 354 (project, logins, today, total, utheo, ureal) = parse_myproject( 355 os.path.join(DIR["DATA"], OUT["CCCMP"]), 356 project_name 357 ) 345 358 346 359 if args.verbose: … … 384 397 converters={ 385 398 0: string_to_datetime, 386 1: int,387 2: int,399 1: float, 400 2: float, 388 401 }, 389 402 missing_values="nan", -
TOOLS/ConsoGENCMIP6/bin/libconso.py
r2440 r2460 14 14 import datetime as dt 15 15 import numpy as np 16 import ConfigParser as cp 16 17 17 18 # Application library imports 18 from gencmip6_path import * 19 20 21 ######################################## 22 def dods_cp(filein): 19 20 21 ######################################## 22 def dods_cp(filein, DIR): 23 23 """ 24 24 """ … … 44 44 45 45 return 46 47 48 ######################################## 49 def parse_config(filename): 50 51 DIR = {} 52 OUT = {} 53 54 config = cp.ConfigParser() 55 config.optionxform = str 56 config.read(filename) 57 58 for section in ("projet", "directories", "files"): 59 if not config.has_section(section): 60 print("Missing section {} in {}, we stop".format(section, filename)) 61 exit(1) 62 63 # .. Project name .. 64 # ------------------ 65 section = "projet" 66 option = "name" 67 project_name = config.get(section, option) 68 69 # ..Common directories .. 70 # ----------------------- 71 section = "directories" 72 for option in config.options(section): 73 res = config.get(section, option) 74 if res != "None": 75 DIR[option] = res 76 else: 77 DIR[option] = None 78 79 if DIR[option] and not os.path.isdir(DIR[option]): 80 print("mkdir {}".format(DIR[option])) 81 try : 82 os.makedirs(DIR[option]) 83 except Exception as rc : 84 print("Could not create {}:\n{}".format(DIR[option], rc)) 85 86 # ..Common files .. 87 # ----------------- 88 section = "files" 89 for option in config.options(section): 90 OUT[option] = config.get(section, option) 91 92 return (project_name, DIR, OUT) 46 93 47 94 … … 142 189 143 190 ######################################## 144 def plot_save(img_in, img_out, title ):191 def plot_save(img_in, img_out, title, DIR): 145 192 """ 146 193 """ … … 184 231 import json 185 232 dico = json.load(open(filein, "r")) 186 self.project = dico[" project"]233 self.project = dico["name"] 187 234 self.deadline = string_to_date(dico["deadline"]) + \ 188 235 dt.timedelta(days=-1) -
TOOLS/ConsoGENCMIP6/bin/plot_bilan.py
r2448 r2460 13 13 14 14 # Application library imports 15 from gencmip6 import * 16 from gencmip6_path import * 15 from libconso import * 17 16 18 17 … … 204 203 line_width = 0.1 205 204 206 ax_conso.bar(xcoord, consos, width=1, align="center", color="linen", 207 linewidth=line_width, label="conso (heures)") 208 209 ax_theo.plot(xcoord, theo_equs, "--", 210 color="firebrick", linewidth=0.5, 211 solid_capstyle="round", solid_joinstyle="round") 212 ax_theo.plot(xcoord, theo_uses, line_style, color="firebrick", 213 linewidth=1, markersize=8, 214 solid_capstyle="round", solid_joinstyle="round", 215 label="conso\nthéorique (%)") 216 ax_theo.plot(xcoord, real_uses, line_style, color="forestgreen", 217 linewidth=1, markersize=8, 218 solid_capstyle="round", solid_joinstyle="round", 219 label="conso\nréelle (%)") 220 221 222 ######################################## 223 def plot_config(fig, ax_conso, ax_theo, xcoord, dates, title, conso_per_day): 205 ax_conso.bar( 206 xcoord, consos, width=1, align="center", color="linen", 207 linewidth=line_width, label="conso (heures)" 208 ) 209 210 ax_theo.plot( 211 xcoord, theo_equs, "--", 212 color="firebrick", linewidth=0.5, 213 solid_capstyle="round", solid_joinstyle="round" 214 ) 215 ax_theo.plot( 216 xcoord, theo_uses, line_style, color="firebrick", 217 linewidth=1, markersize=8, 218 solid_capstyle="round", solid_joinstyle="round", 219 label="conso\nthéorique (%)" 220 ) 221 ax_theo.plot( 222 xcoord, real_uses, line_style, color="forestgreen", 223 linewidth=1, markersize=8, 224 solid_capstyle="round", solid_joinstyle="round", 225 label="conso\nréelle (%)" 226 ) 227 228 229 ######################################## 230 def plot_config(fig, ax_conso, ax_theo, xcoord, dates, title, 231 conso_per_day): 224 232 """ 225 233 """ … … 273 281 ax_conso.set_xticks(xcoord, minor=True) 274 282 ax_conso.set_xticks(maj_xticks, minor=False) 275 ax_conso.set_xticklabels(maj_xlabs, rotation="vertical", size="x-small") 283 ax_conso.set_xticklabels( 284 maj_xlabs, rotation="vertical", size="x-small" 285 ) 276 286 277 287 yticks = list(ax_conso.get_yticks()) … … 365 375 # ... Files and directories ... 366 376 # ----------------------------- 377 project_name, DIR, OUT = parse_config("bin/config.ini") 378 367 379 (file_param, file_utheo, file_data) = \ 368 380 get_input_files(DIR["SAVEDATA"], … … 381 393 # .. Get project info .. 382 394 # ====================== 383 gencmip6= Project()384 gencmip6.fill_data(file_param)385 gencmip6.get_date_init(file_utheo)395 projet = Project() 396 projet.fill_data(file_param) 397 projet.get_date_init(file_utheo) 386 398 387 399 # .. Fill in data .. … … 390 402 # ---------------------- 391 403 bilan = DataDict() 392 bilan.init_range( gencmip6.date_init, gencmip6.deadline)404 bilan.init_range(projet.date_init, projet.deadline) 393 405 # ... Extract data from file ... 394 406 # ------------------------------ … … 423 435 consos = np.array(consos, dtype=float) 424 436 425 conso_per_day = gencmip6.alloc / gencmip6.days437 conso_per_day = projet.alloc / projet.days 426 438 427 439 theo_uses = np.array([100.*item.theo_use for item in selected_items], … … 456 468 # -------------------- 457 469 title = "Consommation {}\n({:%d/%m/%Y} - {:%d/%m/%Y})".format( 458 gencmip6.project.upper(), 459 gencmip6.date_init, 460 gencmip6.deadline 461 ) 462 463 plot_config(fig, ax_conso, ax_theo, xcoord, dates, title, conso_per_day) 470 projet.project.upper(), 471 projet.date_init, 472 projet.deadline 473 ) 474 475 plot_config( 476 fig, ax_conso, ax_theo, xcoord, dates, title, conso_per_day 477 ) 464 478 465 479 # ... Save figure ... … … 469 483 "{}_{}.pdf".format(img_name, today)) 470 484 471 plot_save(img_in, img_out, title )485 plot_save(img_in, img_out, title, DIR) 472 486 473 487 # ... Publish figure on dods ... 474 488 # ------------------------------ 475 489 if args.dods: 476 dods_cp(img_in )490 dods_cp(img_in, DIR) 477 491 478 492 if args.show: -
TOOLS/ConsoGENCMIP6/bin/plot_bilan_jobs.py
r2449 r2460 13 13 14 14 # Application library imports 15 from gencmip6 import * 16 from gencmip6_path import * 15 from libconso import * 17 16 18 17 … … 210 209 line_width = 0.1 211 210 212 ax_conso.bar(xcoord, consos, width=1, align="center", color="linen", 213 linewidth=line_width, label="conso (heures)") 214 215 ax_theo.plot(xcoord, theo_equs, "--", 216 color="firebrick", linewidth=0.5, 217 solid_capstyle="round", solid_joinstyle="round") 218 ax_theo.plot(xcoord, theo_uses, line_style, color="firebrick", 219 linewidth=1, markersize=8, 220 solid_capstyle="round", solid_joinstyle="round", 221 label="conso\nthéorique (%)") 222 ax_theo.plot(xcoord, real_uses, line_style, color="forestgreen", 223 linewidth=1, markersize=8, 224 solid_capstyle="round", solid_joinstyle="round", 225 label="conso\nréelle (%)") 211 ax_conso.bar( 212 xcoord, consos, width=1, align="center", color="linen", 213 linewidth=line_width, label="conso (heures)" 214 ) 215 216 ax_theo.plot( 217 xcoord, theo_equs, "--", 218 color="firebrick", linewidth=0.5, 219 solid_capstyle="round", solid_joinstyle="round" 220 ) 221 ax_theo.plot( 222 xcoord, theo_uses, line_style, color="firebrick", 223 linewidth=1, markersize=8, 224 solid_capstyle="round", solid_joinstyle="round", 225 label="conso\nthéorique (%)" 226 ) 227 ax_theo.plot( 228 xcoord, real_uses, line_style, color="forestgreen", 229 linewidth=1, markersize=8, 230 solid_capstyle="round", solid_joinstyle="round", 231 label="conso\nréelle (%)" 232 ) 226 233 227 234 line_width = 0. 228 235 width = 1.05 229 236 230 ax_jobs.bar(xcoord, run_mean, width=width, align="center", 231 # yerr=run_std/2, ecolor="green", 232 color="lightgreen", linewidth=line_width, antialiased=True, 233 label="jobs running") 234 ax_jobs.bar(xcoord, pen_mean, bottom=run_mean, width=width, align="center", 235 # yerr=pen_std/2, ecolor="darkred", 236 color="firebrick", linewidth=line_width, antialiased=True, 237 label="jobs pending") 237 ax_jobs.bar( 238 xcoord, run_mean, width=width, align="center", 239 # yerr=run_std/2, ecolor="green", 240 color="lightgreen", linewidth=line_width, 241 antialiased=True, label="jobs running" 242 ) 243 ax_jobs.bar( 244 xcoord, pen_mean, bottom=run_mean, width=width, align="center", 245 # yerr=pen_std/2, ecolor="darkred", 246 color="firebrick", linewidth=line_width, 247 antialiased=True, label="jobs pending" 248 ) 238 249 239 250 240 251 ######################################## 241 def plot_config(fig, ax_conso, ax_theo, xcoord, dates, title, conso_per_day): 252 def plot_config(fig, ax_conso, ax_theo, xcoord, dates, title, 253 conso_per_day): 242 254 """ 243 255 """ … … 292 304 ax_jobs.set_xticks(xcoord, minor=True) 293 305 ax_jobs.set_xticks(maj_xticks, minor=False) 294 ax_jobs.set_xticklabels(maj_xlabs, rotation="vertical", size="x-small") 306 ax_jobs.set_xticklabels( 307 maj_xlabs, rotation="vertical", size="x-small" 308 ) 295 309 296 310 for ax, y, label in ( … … 392 406 # ... Files and directories ... 393 407 # ----------------------------- 408 project_name, DIR, OUT = parse_config("bin/config.ini") 409 394 410 (file_param, file_utheo, file_data) = \ 395 411 get_input_files(DIR["SAVEDATA"], … … 408 424 # .. Get project info .. 409 425 # ====================== 410 gencmip6= Project()411 gencmip6.fill_data(file_param)412 gencmip6.get_date_init(file_utheo)426 projet = Project() 427 projet.fill_data(file_param) 428 projet.get_date_init(file_utheo) 413 429 414 430 # .. Fill in data .. … … 417 433 # ---------------------- 418 434 bilan = DataDict() 419 bilan.init_range( gencmip6.date_init, gencmip6.deadline)435 bilan.init_range(projet.date_init, projet.deadline) 420 436 # ... Extract data from file ... 421 437 # ------------------------------ … … 450 466 consos = np.array(consos, dtype=float) 451 467 452 conso_per_day = gencmip6.alloc / gencmip6.days468 conso_per_day = projet.alloc / projet.days 453 469 454 470 theo_uses = np.array([100.*item.theo_use for item in selected_items], … … 484 500 title = "{} : Conso globale et suivi des jobs " \ 485 501 "(moyenne journaliÚre)\n({:%d/%m/%Y} - {:%d/%m/%Y})".format( 486 gencmip6.project.upper(),487 gencmip6.date_init,488 gencmip6.deadline502 projet.project.upper(), 503 projet.date_init, 504 projet.deadline 489 505 ) 490 506 491 plot_config(fig, ax_conso, ax_theo, xcoord, dates, title, conso_per_day) 507 plot_config( 508 fig, ax_conso, ax_theo, xcoord, dates, title, conso_per_day 509 ) 492 510 493 511 # ... Save figure ... … … 497 515 "{}_{}.pdf".format(img_name, today)) 498 516 499 plot_save(img_in, img_out, title )517 plot_save(img_in, img_out, title, DIR) 500 518 501 519 # ... Publish figure on dods ... 502 520 # ------------------------------ 503 521 if args.dods: 504 dods_cp(img_in )522 dods_cp(img_in, DIR) 505 523 506 524 if args.show: -
TOOLS/ConsoGENCMIP6/bin/plot_jobs.py
r2450 r2460 13 13 14 14 # Application library imports 15 from gencmip6 import * 16 from gencmip6_path import * 15 from libconso import * 17 16 18 17 … … 50 49 converters={ 51 50 0: string_to_datetime, 52 1: int,53 2: int,51 1: float, 52 2: float, 54 53 }, 55 54 missing_values="nan", … … 191 190 width = 1.05 192 191 193 ax.bar(xcoord, run_jobs, width=width, yerr=run_std/2., 194 linewidth=line_width, align="center", 195 color="lightgreen", ecolor="green", antialiased=True, 196 label="jobs running") 197 ax.bar(xcoord, pen_jobs, bottom=run_jobs, width=width, 198 linewidth=line_width, align="center", 199 color="firebrick", antialiased=True, 200 label="jobs pending") 201 # ax.step(xcoord, run_jobs, where="mid", linewidth=1, color="black", label="jobs running") 202 # ax.step(xcoord, pen_jobs+run_jobs, where="mid", linewidth=1, color="black", label="jobs running") 192 ax.bar( 193 xcoord, run_jobs, width=width, yerr=run_std/2., 194 linewidth=line_width, align="center", 195 color="lightgreen", ecolor="green", antialiased=True, 196 label="jobs running" 197 ) 198 ax.bar( 199 xcoord, pen_jobs, bottom=run_jobs, width=width, 200 linewidth=line_width, align="center", 201 color="firebrick", antialiased=True, 202 label="jobs pending" 203 ) 204 # ax.step( 205 # xcoord, run_jobs, where="mid", 206 # linewidth=1, color="black", label="jobs running" 207 # ) 208 # ax.step( 209 # xcoord, pen_jobs+run_jobs, where="mid", 210 # linewidth=1, color="black", label="jobs running" 211 # ) 203 212 204 213 … … 310 319 # ... Files and directories ... 311 320 # ----------------------------- 321 project_name, DIR, OUT = parse_config("bin/config.ini") 322 312 323 (file_param, file_utheo) = \ 313 324 get_input_files(DIR["SAVEDATA"], [OUT["PARAM"], OUT["UTHEO"]]) … … 332 343 # .. Get project info .. 333 344 # ====================== 334 gencmip6= Project()335 gencmip6.fill_data(file_param)336 gencmip6.get_date_init(file_utheo)345 projet = Project() 346 projet.fill_data(file_param) 347 projet.get_date_init(file_utheo) 337 348 338 349 # .. Fill in data .. … … 341 352 # ---------------------- 342 353 bilan = DataDict() 343 bilan.init_range( gencmip6.date_init, gencmip6.deadline)354 bilan.init_range(projet.date_init, projet.deadline) 344 355 345 356 # ... Extract data from file ... 346 357 # ------------------------------ 347 358 bilan.fill_data(file_list) 348 349 # # ... Compute theoratical use from known data ...350 # # ------------------------------------------------351 # bilan.theo_equation()352 359 353 360 # .. Extract data depending on C.L. arguments .. … … 360 367 ) 361 368 else: 362 # selected_items = bilan.get_items(args.inc)363 369 range_end = today 364 range_start = range_end + dt.timedelta(weeks=-WEEK_NB) - dt.timedelta(days=1) 370 range_start = ( 371 range_end + dt.timedelta(weeks=-WEEK_NB) - dt.timedelta(days=1) 372 ) 365 373 selected_items = bilan.get_items_in_range( 366 374 range_start, range_end, args.inc … … 402 410 ) 403 411 404 conso_per_day = gencmip6.alloc / (gencmip6.days * 24.)412 conso_per_day = projet.alloc / (projet.days * 24.) 405 413 406 414 # .. Plot stuff .. … … 416 424 # # ... Tweak figure ... 417 425 # # -------------------- 418 # if args.max:419 # ymax = gencmip6.alloc420 # else:421 # ymax = np.nanmax(consos) + np.nanmax(consos)*.1422 423 426 title = "Suivi des jobs {}\n({:%d/%m/%Y} - {:%d/%m/%Y})".format( 424 gencmip6.project.upper(),425 gencmip6.date_init,426 gencmip6.deadline427 projet.project.upper(), 428 projet.date_init, 429 projet.deadline 427 430 ) 428 431 … … 435 438 "{}_w{:02d}.pdf".format(img_name, weeknum)) 436 439 437 plot_save(img_in, img_out, title )440 plot_save(img_in, img_out, title, DIR) 438 441 439 442 # ... Publish figure on dods ... 440 443 # ------------------------------ 441 444 if args.dods: 442 dods_cp(img_in )445 dods_cp(img_in, DIR) 443 446 444 447 if args.show: -
TOOLS/ConsoGENCMIP6/bin/plot_login.py
r2433 r2460 12 12 13 13 # Application library imports 14 from gencmip6 import * 15 from gencmip6_path import * 14 from libconso import * 16 15 17 16 … … 120 119 121 120 122 # ########################################123 # def plot_save(img_name):124 # """125 # """126 # dpi = 200.127 128 # img_in = os.path.join(DIR["PLOT"], "{}.pdf".format(img_name))129 130 # with PdfPages(img_in) as pdf:131 # pdf.savefig(dpi=dpi)132 133 # # pdf file's metadata134 # d = pdf.infodict()135 # d["Title"] = "Conso GENCMIP6 par login"136 # d["Author"] = "plot_bilan.py"137 # # d["Subject"] = "Time spent over specific commands during create_ts \138 # # jobs at IDRIS and four configurations at TGCC"139 # # d["Keywords"] = "bench create_ts TGCC IDRIS ncrcat"140 # # d["CreationDate"] = dt.datetime(2009, 11, 13)141 # # d["ModDate"] = dt.datetime.today()142 143 # if os.path.isdir(DIR["SAVEPLOT"]):144 # img_out = os.path.join(DIR["SAVEPLOT"],145 # "{}_{}.pdf".format(img_name, today))146 # shutil.copy(img_in, img_out)147 148 149 121 ######################################## 150 122 def get_arguments(): … … 188 160 # ... Files and directories ... 189 161 # ----------------------------- 162 project_name, DIR, OUT = parse_config("bin/config.ini") 163 190 164 (file_param, file_utheo, file_data) = \ 191 165 get_input_files(DIR["SAVEDATA"], … … 204 178 # .. Get project info .. 205 179 # ====================== 206 gencmip6= Project()207 gencmip6.fill_data(file_param)208 gencmip6.get_date_init(file_utheo)180 projet = Project() 181 projet.fill_data(file_param) 182 projet.get_date_init(file_utheo) 209 183 210 184 # .. Fill in data dict .. … … 249 223 # -------------------- 250 224 title = "Consommation {} par login\n{:%d/%m/%Y}".format( 251 gencmip6.project.upper(),225 projet.project.upper(), 252 226 date 253 227 ) … … 260 234 "{}_{}.pdf".format(img_name, today)) 261 235 262 plot_save(img_in, img_out, title )236 plot_save(img_in, img_out, title, DIR) 263 237 264 238 # ... Publish figure on dods ... 265 239 # ------------------------------ 266 240 if args.dods: 267 dods_cp(img_in )241 dods_cp(img_in, DIR) 268 242 269 243 if args.show: -
TOOLS/ConsoGENCMIP6/bin/plot_store.py
r2437 r2460 14 14 15 15 # Application library imports 16 from gencmip6 import * 17 from gencmip6_path import * 16 from libconso import * 18 17 19 18 … … 213 212 # ... Files and directories ... 214 213 # ----------------------------- 214 project_name, DIR, OUT = parse_config("bin/config.ini") 215 215 216 (file_param, file_utheo, file_data) = \ 216 217 get_input_files(DIR["SAVEDATA"], … … 229 230 # .. Get project info .. 230 231 # ====================== 231 gencmip6= Project()232 gencmip6.fill_data(file_param)233 gencmip6.get_date_init(file_utheo)232 projet = Project() 233 projet.fill_data(file_param) 234 projet.get_date_init(file_utheo) 234 235 235 236 # .. Fill in data dict .. … … 282 283 # -------------------- 283 284 title = "Occupation {} de STORE par login\n{:%d/%m/%Y}".format( 284 gencmip6.project.upper(),285 projet.project.upper(), 285 286 date 286 287 ) … … 294 295 "{}_{}.pdf".format(img_name, today)) 295 296 296 plot_save(img_in, img_out, title )297 plot_save(img_in, img_out, title, DIR) 297 298 298 299 # ... Publish figure on dods ... 299 300 # ------------------------------ 300 301 if args.dods: 301 dods_cp(img_in )302 dods_cp(img_in, DIR) 302 303 303 304 if args.show: -
TOOLS/ConsoGENCMIP6/launch_conso.sh
r2444 r2460 11 11 . /etc/bashrc 12 12 fi 13 13 14 # Load python 14 15 # =========== … … 19 20 # Go to root directory 20 21 # ==================== 21 cd ${HOME}/ConsoGENCMIP6/ 22 ROOT_DIR=$( dirname $0 ) 23 cd ${ROOT_DIR} 22 24 23 25 # Main script to get data … … 39 41 # -f : plot the whole period of the project 40 42 # -d : copy plot on dods 43 # -v : verbose mode 41 44 script="plot_bilan" 42 45 printf "\n${script}\n" … … 53 56 printf "\n${script}\n" 54 57 echo "--------------------" 55 bin/${script}.py -f d58 bin/${script}.py -fv 56 59 rc=$? 57 60 if [ ${rc} -ne 0 ] ; then -
TOOLS/ConsoGENCMIP6/launch_jobs.sh
r2437 r2460 40 40 printf "\n${script}\n" 41 41 echo "--------------------" 42 bin/${script}.py - d42 bin/${script}.py -v 43 43 rc=$? 44 44 if [ ${rc} -ne 0 ] ; then
Note: See TracChangeset
for help on using the changeset viewer.