Changeset 13835 for NEMO/branches/2020/dev_r13648_ASINTER-04_laurent_bulk_ice/tests/STATION_ASF/EXPREF/plot_station_asf_ICE.py
- Timestamp:
- 2020-11-19T19:48:58+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2020/dev_r13648_ASINTER-04_laurent_bulk_ice/tests/STATION_ASF/EXPREF/plot_station_asf_ICE.py
r13781 r13835 84 84 85 85 86 # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 86 # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 87 87 # Populating and checking existence of files to be read 88 # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 88 # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 89 89 90 90 dir_out = cdir_data+'/output' 91 91 ldir = listdir(dir_out) 92 93 92 cf_in = [] 94 93 list_exp = [] … … 96 95 for fn in ldir: 97 96 fpn = dir_out+'/'+fn 98 if path.isfile( dir_out+'/'+fn):97 if path.isfile(fpn): 99 98 if fn[:np]==cpref and fn[-ns:]==csuff and cforcing in fn: 100 99 print('\n file: '+fn) … … 106 105 cf_in.append(fpn) 107 106 nbf = len( set(list_frc) ) 107 108 if nbf == 0: 109 print('PROBLEM: we found no files corresponding to a forcing!') 110 sys.exit(0) 111 print("list_frc =>",list_frc) 108 112 if not nbf == 1: 109 113 print('PROBLEM: we found files for more that one forcing: ', set(list_frc)) … … 120 124 sys.exit(0) 121 125 122 123 124 #----------------------------------------------------------------- 126 # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 127 # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 125 128 126 129
Note: See TracChangeset
for help on using the changeset viewer.