File:Gliese 12b locked earthlike simulation 3 r 1 1 1 1.png

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(1,600 × 800 pixels, file size: 403 KB, MIME type: image/png)

Captions

Captions

Gliese 12b temperature map - locked earthlike simulation

Summary

[edit]
Description
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

  1. sla=[]
  1. sla.append(tsa)
  1. apoints1=
  2. bpoints1=list(zip(*sla))


dem4=np.copy(dem1) dem4[dem4<0]=0

masco1=np.copy(dem1) masco1[masco1<0]=0 masco1[masco1>0]=255

  1. plt.imshow(masco1)
  1. plt.show()
  1. 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

    1. 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

  1. dstsa=bigtsa
  1. plt.imshow(dstsa)
  1. plt.imshow(tsa)
  2. plt.imshow(bigtsa)
  1. plt.imshow(bigsmalldem)
  1. plt.show()
  1. quit(-1)

avgtemp1=np.mean(tsa)

print("Tavg: ",avgtemp1)

  1. 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"

  1. savenetcdf_single_frommem(oname1, ovar1, np.flipud(dstsa),Y2, X2)
  1. 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)

  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)

  1. mask1=np.flipud(mask1)

dstsa=np.flipud(dstsa) masco1=np.flipud(masco1)

  1. plt.margins(0.0015, tight=True)
  1. var1=ncinu1.variables['tso'][6]
  1. plt.imshow(dstsa, extent=extent1,interpolation="bicubic", cmap="coolwarm")
  1. plt.show()
  2. 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]
I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero 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.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current13:24, 28 May 2024Thumbnail for version as of 13:24, 28 May 20241,600 × 800 (403 KB)Merikanto (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Metadata