本文整理匯總了Python中vcmq.N.vstack方法的典型用法代碼示例。如果您正苦於以下問題:Python N.vstack方法的具體用法?Python N.vstack怎麽用?Python N.vstack使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類vcmq.N
的用法示例。
在下文中一共展示了N.vstack方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: import
# 需要導入模塊: from vcmq import N [as 別名]
# 或者: from vcmq.N import vstack [as 別名]
# Params
npi = 2000 # number of input points
npo = 200 # number of output points
npmax = 500 # max size of clouds
nproc = 2 # max number of procs
# Imports
from vcmq import P, savefigs, code_file_name, N
from vacumm.misc.grid.kriging import (gridded_gauss3, random_gauss3,
random_points, OrdinaryCloudKriger)
from time import time
# Random and gridded input fields
xg, yg, zzg = gridded_gauss3()
xi, yi, zi = random_gauss3(np=npi)
zi = N.vstack((zi, zi)) # simulate several time steps for multifit
# Init kriger
kriger = OrdinaryCloudKriger(xi, yi, zi, npmax=npmax, nproc=nproc)
# Output points
xo, yo = random_points(np=npo)
# Interpolate
t0 = time()
zo = kriger(xo, yo)
# Plot
P.figure(figsize=(6, 8))
axis = [xg.min(), xg.max(), yg.min(), yg.max()]
kw = dict(vmin=zi.min(), vmax=zi.max())