diff --git a/ExtractImage.py b/ExtractImage.py index 62d2325..6f058af 100644 --- a/ExtractImage.py +++ b/ExtractImage.py @@ -158,7 +158,7 @@ def ExtractMapImage(file,colormap,countyear,name,nc,geometry=""): Min=np.around(np.nanquantile(ncVar[int(year)-1985,:,:].values, 0.01),2) - Max=np.around(np.nanmax(ncVar[year-1985,:,:].values),2) + Max=np.around(np.nanquantile(ncVar[int(year)-1985,:,:].values, 0.99),2)#np.around(np.nanmax(ncVar[year-1985,:,:].values),2) image_to_url(data,name, colormapD=lambda x: get_color(x,colormap,Min,Max), origin="lower") @@ -194,9 +194,9 @@ def ProcessAllImage(ssp,model,Colorpalete,ExportDirectory,DataDirectory): now=time.time() print(cc,(start-now)/cc,(start-now)/cc*(Total-cc)) -ssp=("ssp245","ssp370"),#"ssp585", -model=("BCC-CSM2-MR","CESM2")#"CanESM5","EC-Earth3","IPSL-CM6A-LR","MIROC6","MRI-ESM2-0","NorESM2-MM" -Colorpalete=["RdYlBu",'Spectral','ocean',"coolwarm"] +ssp=("ssp245","ssp370","ssp585") +model=("BCC-CSM2-MR","CESM2","CanESM5","EC-Earth3","EC-Earth3-unMask","IPSL-CM6A-LR","MIROC6","MRI-ESM2-0","NorESM2-MM","ensamble") +Colorpalete=['Spectral','ocean',"coolwarm","RdYlBu"] ExportDirectory="images/" DataDirectory="maps/"