Пример #1
0
	def __init__ (self, nnupar='',nnvpar='',nnhdyn='',
			f0=3.5e-5, beta=2.11e-11, gamma=2e-7, gstar=0.02,rho0=1000, H=500, taux0=0.15, tauy0=0, nu=0.72, dt=1800,
			dx=20e3, dy=20e3, alpha=0.025, nx=80, ny=80 ):
		SWmodel.__init__(self,f0, beta, gamma, gstar,rho0, H, taux0, tauy0, nu, dt,
			dx, dy, alpha, nx, ny )

		if isinstance(nnupar, str):
			self._nnupar = loadmymodel(nnupar)
			self._nnuparname = nnupar
		else:
			self._nnupar = nnupar
			self._nnuparname = ''

		if isinstance(nnvpar, str):
			self._nnvpar = loadmymodel(nnvpar)
			self._nnvparname = nnvpar
		else:
			self._nnvpar = nnvpar
			self._nnvparname = ''

		if isinstance(nnhdyn, str):
			self._nnhdyn = loadmymodel(nnhdyn)
			self._nnhdynname = nnhdyn
		else:
			self._nnhdyn = nnhdyn
			self._nnhdynname = ''
Пример #2
0
 def __init__(self,
              f0=3.5e-5,
              beta=2.11e-11,
              gamma=2e-7,
              gstar=0.02,
              rho0=1000,
              H=500,
              taux0=0.15,
              tauy0=0,
              nu=0.72,
              dt=1800,
              dx=20e3,
              dy=20e3,
              alpha=0.025,
              nx=80,
              ny=80):
     SWmodel.__init__(self, f0, beta, gamma, gstar, rho0, H, taux0, tauy0,
                      nu, dt, dx, dy, alpha, nx, ny)
Пример #3
0
	def __init__ (self, nnupar,nnvpar,nout=(1,1),delta=(1,1),
			f0=3.5e-5, beta=2.11e-11, gamma=2e-7, gstar=0.02,rho0=1000, H=500, taux0=0.15, tauy0=0, nu=0.72, dt=1800,
			dx=20e3, dy=20e3, alpha=0.025, nx=80, ny=80 ):
		SWmodel.__init__(self,f0, beta, gamma, gstar,rho0, H, taux0, tauy0, nu, dt,
			dx, dy, alpha, nx, ny )

		if isinstance(nnupar, str):
			self._nnupar = loadmymodel(nnupar)
		else:
			self._nnupar = nnupar
		if isinstance(nnvpar, str):
			self._nnvpar = loadmymodel(nnvpar)
		else:
			self._nnvpar = nnvpar
		self._nout = nout
		self._delta = delta
		self._nin = tuple(n+2*d for (n,d) in zip(self._nout,self._delta))
		#Calculate index of the ouptput image
		self._indout = MakeSmallImages_ind((self.ny,self.nx),
			n=self._nout)