SCALE-Analysis
Loading...
Searching...
No Matches
Functions | Variables
HorizLineSelect_SurfaceUpper Namespace Reference

水平指定線分近傍の地表面変数・高層大気変数 More...

Functions

 ll2dist (lat1, lon1, lat2, lon2)
 

Variables

str dir1 = "./sampledata/scale-5.4.5/scale-rm/test/tutorial/real/experiment/run/"
 
str domainlabel = "_d01"
 
str timelabel = ""
 
int PRC_NUM_X = 2
 
int PRC_NUM_Y = 2
 
str dir_out = "./fig/"
 
bool savefig = True
 
str sfcvarname = "MSLP"
 
str sfcvarunit = "(hPa)"
 
int sfcvarfact = 1e-2
 
str uppvarname = "RH"
 
str uppvarunit = "(%)"
 
int uppvarfact = 1
 
 uppvarlevels = np.linspace(0,100,21)
 
str uppvarcmap = "BrBG"
 
float lon_a = 135.2207105
 
float lat_a = 34.6533937
 
float lon_b = 139.7671248
 
float lat_b = 35.6812362
 
int dist0 = 20
 
list xticks = [130,135,140]
 
list yticks = [30,35,40]
 
 xticks_f = np.array([tmp for tmp in np.arange(np.floor(lon_a)-2,np.ceil(lon_b)+3,2)])
 
 yticks_f = np.array([tmp for tmp in np.arange(np.floor(lat_a)-2,np.ceil(lat_b)+3,2)])
 
 fpathlist = get_fpathlist(dir1,"history",domainlabel,timelabel,PRC_NUM_X,PRC_NUM_Y)
 
 xrvar = get_xrvar(fpathlist)
 
 time = xrvar.coords["time"]
 
 tsize = len(time)
 
 lon = xrvar.coords["lon"]
 
 lat = xrvar.coords["lat"]
 
 z = xrvar.coords["z"]
 
 dist_ab = ll2dist(lat_a,lon_a,lat_b,lon_b)
 
 dist_a = ll2dist(lat_a,lon_a,lat,lon)
 
 dist_b = ll2dist(lat_b,lon_b,lat,lon)
 
list arg_lim_list = []
 
list dist_along_ab_list = []
 
 fig = plt.figure(figsize=(14,6))
 
list axes
 
 color
 
 levels1 = np.linspace(0,500,11)
 
 xlocs
 
 ylocs
 
 crs
 
 cax = ax.contour(lon,lat,dist_a,levels=levels1,cmap="Reds_r")
 
 cbar = plt.colorbar(cax,ax=ax,fraction=0.02)
 
 distsum = dist_a+dist_b
 
tuple arg_lim = (distsum.values<dist_ab+dist0)&(dist_a.values<dist0*(tmp+1))&(dist_a.values>dist0*tmp)
 
 c = np.mean(uppvar_limmean,axis=1)*uppvarfact
 
 s
 
 cmap
 
 vmin
 
 vmax
 
 marker
 
 sfcvar = xrvar[sfcvarname]
 
 uppvar = xrvar[uppvarname]
 
list sfcvar_limmean_list = []
 
list uppvar_limmean_list = []
 
 sfcvar_limmean = np.array(sfcvar_limmean_list)
 
 uppvar_limmean = np.array(uppvar_limmean_list)
 
 ax = fig.add_subplot(111,projection=ccrs.PlateCarree())
 
 figsize
 
int y = np.mean(sfcvar_limmean,axis=1)*sfcvarfact
 
 linestyle
 

Detailed Description

水平指定線分近傍の地表面変数・高層大気変数

指定した水平2地点を繋ぐ線分の近くのデータを抽出し, その線分上の地表面変数・高層大気変数の変化を描画

Author
Tomoro Yanase, Team SCALE

Note

Function Documentation

◆ ll2dist()

ll2dist ( lat1,
lon1,
lat2,
lon2 )

Variable Documentation

◆ arg_lim

tuple arg_lim = (distsum.values<dist_ab+dist0)&(dist_a.values<dist0*(tmp+1))&(dist_a.values>dist0*tmp)

◆ arg_lim_list

list arg_lim_list = []

◆ ax

ax = fig.add_subplot(111,projection=ccrs.PlateCarree())

◆ axes

list axes
Initial value:
1= [
2 fig.add_subplot(121,projection=ccrs.PlateCarree()),
3 fig.add_subplot(122,projection=ccrs.PlateCarree())
4]

◆ c

int c = np.mean(uppvar_limmean,axis=1)*uppvarfact

◆ cax

cax = ax.contour(lon,lat,dist_a,levels=levels1,cmap="Reds_r")

◆ cbar

cbar = plt.colorbar(cax,ax=ax,fraction=0.02)

◆ cmap

cmap

◆ color

color

◆ crs

crs

◆ dir1

str dir1 = "./sampledata/scale-5.4.5/scale-rm/test/tutorial/real/experiment/run/"

◆ dir_out

str dir_out = "./fig/"

◆ dist0

int dist0 = 20

◆ dist_a

dist_a = ll2dist(lat_a,lon_a,lat,lon)

◆ dist_ab

◆ dist_along_ab_list

dist_along_ab_list = []

◆ dist_b

dist_b = ll2dist(lat_b,lon_b,lat,lon)

◆ distsum

distsum = dist_a+dist_b

◆ domainlabel

str domainlabel = "_d01"

◆ fig

fig = plt.figure(figsize=(14,6))

◆ figsize

figsize

◆ fpathlist

fpathlist = get_fpathlist(dir1,"history",domainlabel,timelabel,PRC_NUM_X,PRC_NUM_Y)

◆ lat

lat = xrvar.coords["lat"]

◆ lat_a

lat_a = 34.6533937

◆ lat_b

lat_b = 35.6812362

◆ levels1

levels1 = np.linspace(0,500,11)

◆ linestyle

linestyle

◆ lon

lon = xrvar.coords["lon"]

◆ lon_a

lon_a = 135.2207105

◆ lon_b

lon_b = 139.7671248

◆ marker

marker

◆ PRC_NUM_X

int PRC_NUM_X = 2

◆ PRC_NUM_Y

int PRC_NUM_Y = 2

◆ s

s

◆ savefig

bool savefig = True

◆ sfcvar

sfcvar = xrvar[sfcvarname]

◆ sfcvar_limmean

sfcvar_limmean = np.array(sfcvar_limmean_list)

◆ sfcvar_limmean_list

list sfcvar_limmean_list = []

◆ sfcvarfact

int sfcvarfact = 1e-2

◆ sfcvarname

str sfcvarname = "MSLP"

◆ sfcvarunit

str sfcvarunit = "(hPa)"

◆ time

time = xrvar.coords["time"]

◆ timelabel

str timelabel = ""

◆ tsize

tsize = len(time)

◆ uppvar

uppvar = xrvar[uppvarname]

◆ uppvar_limmean

uppvar_limmean = np.array(uppvar_limmean_list)

◆ uppvar_limmean_list

list uppvar_limmean_list = []

◆ uppvarcmap

str uppvarcmap = "BrBG"

◆ uppvarfact

int uppvarfact = 1

◆ uppvarlevels

uppvarlevels = np.linspace(0,100,21)

◆ uppvarname

str uppvarname = "RH"

◆ uppvarunit

str uppvarunit = "(%)"

◆ vmax

vmax

◆ vmin

vmin

◆ xlocs

xlocs

◆ xrvar

xrvar = get_xrvar(fpathlist)

◆ xticks

xticks = [130,135,140]

◆ xticks_f

xticks_f = np.array([tmp for tmp in np.arange(np.floor(lon_a)-2,np.ceil(lon_b)+3,2)])

◆ y

y = np.mean(sfcvar_limmean,axis=1)*sfcvarfact

◆ ylocs

ylocs

◆ yticks

yticks = [30,35,40]

◆ yticks_f

yticks_f = np.array([tmp for tmp in np.arange(np.floor(lat_a)-2,np.ceil(lat_b)+3,2)])

◆ z

z = xrvar.coords["z"]