Verif all image
This commit is contained in:
parent
82a95f2064
commit
66889809fc
|
@ -1,5 +1,7 @@
|
|||
import os
|
||||
import glob
|
||||
from PIL import Image
|
||||
|
||||
ssp=["ssp245","ssp370","ssp585"]
|
||||
model=("BCC-CSM2-MR","CESM2","CanESM5","EC-Earth3","IPSL-CM6A-LR","MIROC6","MRI-ESM2-0","NorESM2-MM","ensemble5","ensemble8")
|
||||
Colorpalete=["RdYlBu",'Spectral','ocean',"coolwarm","noaa"]
|
||||
|
@ -18,4 +20,10 @@ for i in ssp:
|
|||
A1=set(listEval)
|
||||
for name in glob.glob(ExportDirectory+"*.png"):
|
||||
if name not in A1:
|
||||
try:
|
||||
im = Image.open(name)
|
||||
except:
|
||||
if os.path.exists(name):
|
||||
os.remove(name)
|
||||
|
||||
print(name)
|
||||
|
|
Loading…
Reference in New Issue