# root_path = '/Volumes/mbProD/Downloads/flex_out/run_2019-06-02_20-42-05_/*-*-*' root_path = '/homeappl/home/aliagadi/wrk/DONOTREMOVE/flexpart_management_data/runs/run_2019-06-10_11-10-03_/*-*-*' path_out = '/homeappl/home/aliagadi/wrk/DONOTREMOVE/flexpart_management_data/runs/run_2019-06-10_11-10-03_/log_pol' root_path = sys.argv[1] dom = sys.argv[2] run_name = 'run_2019-06-10_11-10-03_' paths = glob.glob(root_path) paths.sort() # %% fo_base_dic = dict( # dom = 'd01', # folder_path = '/Volumes/mbProD/Downloads/flex_out/run_2019-06-02_20-42-05_/2017-12-10', folder_path_out=path_out, run_name=run_name, ) # %% for p in paths: print('starting', dom, p) new_dic = dict(dom=dom, folder_path=p) fo_dic = {**fo_base_dic, **new_dic} try: fo = FO.FLEXOUT(**fo_dic) fo.export_log_polar_coords(keep_z=True) print('done', dom, p) except: print('failed when', dom, p)
# except AssertionError as error: log.ger.error(error) # print('failed when',d,p) # %% fo_dic = dict( folder_path = '/Volumes/mbProD/Downloads/flex_out/run_2019-06-02_20-42-05_/2017-12-10', dom = 'd02', folder_path_out = '/Volumes/mbProD/Downloads/flex_out/log_pol', run_name = 'run_2019-06-02_20-42-05_', ) # %% self = FO.FLEXOUT(**fo_dic) # %% self.export_log_polar_coords(keep_z=True) # %% # %% # %% # %% # %% fa.compressed_netcdf_save(lp_ds,'/tmp/borrar1.nc')