import os from Conectado import Conectado # Create a coupled model instance modelo = Conectado() # Establish SDM and Biofisical model paths. The Biofisical model path must point to the Python wrapper for the model. modelo.estab_mds("C:\\SahysMod\\julien\\LCEM.vpm") modelo.estab_bf(os.path.join(os.path.split(__file__)[0], 'SAHYSMOD_wrapper.py')) # Couple models(Change variable names as needed) modelo.conectar(var_mds='"EC (From Sahysmod)"', mds_fuente=False, var_bf="Root zone salinity crop A") # Simulate the coupled model modelo.simular(paso=1, tiempo_final=120)
import os from Conectado import Conectado modelo = Conectado() directorio = os.path.dirname(__file__) modelo.estab_mds(os.path.join(directorio, "Prueba dll.vpm")) modelo.estab_bf(os.path.join(directorio, 'Prueba bf.py')) modelo.conectar(var_mds='Lluvia', var_bf='var1', mds_fuente=False) print('Simulando...') modelo.simular(paso=1, tiempo_final=100)