Change por q99 and all models.
This commit is contained in:
parent
221f580315
commit
ca51ed0559
|
@ -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)
|
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")
|
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()
|
now=time.time()
|
||||||
print(cc,(start-now)/cc,(start-now)/cc*(Total-cc))
|
print(cc,(start-now)/cc,(start-now)/cc*(Total-cc))
|
||||||
|
|
||||||
ssp=("ssp245","ssp370"),#"ssp585",
|
ssp=("ssp245","ssp370","ssp585")
|
||||||
model=("BCC-CSM2-MR","CESM2")#"CanESM5","EC-Earth3","IPSL-CM6A-LR","MIROC6","MRI-ESM2-0","NorESM2-MM"
|
model=("BCC-CSM2-MR","CESM2","CanESM5","EC-Earth3","EC-Earth3-unMask","IPSL-CM6A-LR","MIROC6","MRI-ESM2-0","NorESM2-MM","ensamble")
|
||||||
Colorpalete=["RdYlBu",'Spectral','ocean',"coolwarm"]
|
Colorpalete=['Spectral','ocean',"coolwarm","RdYlBu"]
|
||||||
ExportDirectory="images/"
|
ExportDirectory="images/"
|
||||||
DataDirectory="maps/"
|
DataDirectory="maps/"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue