Ignore:
Timestamp:
05/20/15 17:47:20 (9 years ago)
Author:
labetoulle
Message:

plot_store.py : plot initial volume in addition to current volume.

File:
1 edited

Legend:

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

    r2462 r2524  
    259259                  if conso > 0.) 
    260260 
    261   title_str  = "{:10s} {:10s} {:>7s} {:s}\n".format( 
    262                  "date", 
    263                  "login", 
    264                  "dirsize", 
    265                  "dirname", 
    266                ) 
     261  title_str = "{:10s} {:10s} {:>7s} {:s}\n".format( 
     262                "date", 
     263                "login", 
     264                "dirsize", 
     265                "dirname", 
     266              ) 
    267267 
    268268  with open(filename, "w") as fileout: 
     
    277277      storedir = get_storedir(login) 
    278278      if not storedir: 
     279        print("storedir not found for {}".format(storedir)) 
    279280        break 
    280281      igcm_out = os.path.join(storedir, "IGCM_OUT") 
    281282 
    282283      if not os.path.isdir(igcm_out): 
    283         break 
     284        print("no {}".format(igcm_out))  
     285        continue 
    284286 
    285287      dirlist = [] 
     
    405407      exit(1) 
    406408 
    407     if len(data) == 24: 
    408       run_mean = np.nanmean( 
    409           np.array([run for _, run, _ in data]) 
    410       ) 
    411       pen_mean = np.nanmean( 
    412           np.array([pen for _, _, pen in data]) 
    413       ) 
    414  
    415       run_std = np.nanstd( 
    416           np.array([run for _, run, _ in data]) 
    417       ) 
    418       pen_std = np.nanstd( 
    419           np.array([pen for _, _, pen in data]) 
    420       ) 
     409    run_mean = np.nanmean( 
     410        np.array([run for _, run, _ in data]) 
     411    ) 
     412    pen_mean = np.nanmean( 
     413        np.array([pen for _, _, pen in data]) 
     414    ) 
     415 
     416    run_std = np.nanstd( 
     417        np.array([run for _, run, _ in data]) 
     418    ) 
     419    pen_std = np.nanstd( 
     420        np.array([pen for _, _, pen in data]) 
     421    ) 
    421422 
    422423  if args.verbose: 
Note: See TracChangeset for help on using the changeset viewer.