File:Gliese 12b locked earthlike simulation 3 r 1 1 1 1.png
Original file (1,600 × 800 pixels, file size: 403 KB, MIME type: image/png)
Captions
Summary
[edit]DescriptionGliese 12b locked earthlike simulation 3 r 1 1 1 1.png |
English: Gliese 12b temperature map - locked earthlike simulation |
Date | |
Source | Own work |
Author | Merikanto |
Script to prerocess map and run simulation are there
File:Gliese_12b_example_simulation_sea_land_2_r_1_1_1_1.png
Python image draw script: simple naive temperature downscaling by heightfiled.
-1]=1
dem2[dem2<0]=0
- sla=[]
- sla.append(tsa)
- apoints1=
- bpoints1=list(zip(*sla))
dem4=np.copy(dem1)
dem4[dem4<0]=0
masco1=np.copy(dem1)
masco1[masco1<0]=0
masco1[masco1>0]=255
- plt.imshow(masco1)
- plt.show()
- quit(-1)
smalldem = skimage.transform.resize(dem4,(dimy1, dimx1))
bigsmalldem=skimage.transform.resize(smalldem,(dimy3, dimx3))
demdifference=bigsmalldem-dem4
tempdifference=demdifference*10/1000 ## simple assumption lapse rate 10 or 6.5 / 1000 m
- add some random noise
mu, sigma = 0, 0.3 # mean and standard deviation
random0 = np.random.normal(mu, sigma, (int(dimy3/10), int(dimx3/10)))
random1=skimage.transform.resize(random0, (dimy3, dimx3) )
mu1, sigma1 = 0, 0.1
random0 = np.random.normal(mu1, sigma1, (int(dimy3/3), int(dimx3/3)))
random2=skimage.transform.resize(random0, (dimy3, dimx3) )
tempdifference=tempdifference+random1+random2
bigtsa=skimage.transform.resize(tsa, (dimy3, dimx3) )
dstsa=bigtsa+tempdifference
- dstsa=bigtsa
- plt.imshow(dstsa)
- plt.imshow(tsa)
- plt.imshow(bigtsa)
- plt.imshow(bigsmalldem)
- plt.show()
- quit(-1)
avgtemp1=np.mean(tsa)
print("Tavg: ",avgtemp1)
- quit(-1)
newx=64
newy=32
X = np.arange(-180, 180, 360/newx)
Y = np.arange(-90, 90, 180/newy)
oname1="temp.nc"
ovar1="Band1"
savenetcdf_single_frommem(oname1, ovar1, np.flipud(tsa),Y, X)
X2 = np.arange(-180, 180, 360/dimx3)
Y2 = np.arange(-90, 90, 180/dimy3)
oname1="tempds.nc"
ovar1="Band1"
- savenetcdf_single_frommem(oname1, ovar1, np.flipud(dstsa),Y2, X2)
- contourrange1=[-50,-30,-20,-10,0,10,20,30,40,50]
contourrange1=[-50,-45,-40,-35,-30,-25,-20,-15,-10,-5,0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,80]
contourrange2=[-50,0,50]
contourrange3=np.arange(-10,40,1)
- range3=np.arange(-50,50,0.1)
range3=np.arange(-10,40,0.1)
koloro1=['#0000FF', '#A0A0A0', '#FF0000']
imsiz1=(16,8)
fig,ax = plt.subplots(figsize=imsiz1)
size1=20
plt.suptitle(kaption1, fontsize=size1)
ax.set_title(kaption2, fontsize=size1-3)
size2=17
ax.set_xlabel("Longitude",fontsize=size2 )
ax.set_ylabel("Latitude", fontsize=size2 )
ax.tick_params(axis='x', labelsize= size2)
ax.tick_params(axis='y', labelsize= size2)
tsa=np.flipud(tsa)
dem1=np.flipud(dem1)
- mask1=np.flipud(mask1)
dstsa=np.flipud(dstsa)
masco1=np.flipud(masco1)
- plt.margins(0.0015, tight=True)
- var1=ncinu1.variables['tso'][6]
- plt.imshow(dstsa, extent=extent1,interpolation="bicubic", cmap="coolwarm")
- plt.show()
- quit()
selectvar=dstsa
ax.imshow( np.flipud(selectvar), extent=extent1, cmap=kmap2, vmin=0, vmax=100 ,interpolation="bicubic")
cs = ax.contour(selectvar, extent=extent1, inline=True,linewidths=[3], colors='#7f0000', alpha=0.5, levels=contourrange1)
ax.clabel(cs, fontsize=25,fmt = '%3.0f', colors='#7f0000')
csdem2 = ax.contour(dem1, extent=extent1, linestyles='-',alpha=0.5, linewidths=[2], inline=True, colors=["#003f00"], levels=[-15000,0,15000])
fig.savefig(outname1)
print("plot")
plt.show()
print(".")
>
Licensing
[edit]This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication. | |
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 13:24, 28 May 2024 | 1,600 × 800 (403 KB) | Merikanto (talk | contribs) | Uploaded own work with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Software used | |
---|---|
Horizontal resolution | 39.37 dpc |
Vertical resolution | 39.37 dpc |