NEDAS.models.qg.fortran.emulator package
- class NEDAS.models.qg.fortran.emulator.QGFortranModelEmulator(**kwargs)[source]
Bases:
QGFortranModelClass for configuring and running the qg model emulator
- weightfile: str
- model_params: dict
- run(nens=1, task_id=0, **kwargs)[source]
Run the model forward in time.
- Parameters:
*args – Arguments
**kwargs – Keyword arguments
- Keyword Arguments:
time (datetime) – current time when forecast starts
restart_dir (str) – directory where restart files are located
forecast_period (int) – forecast period in hours
If self.ens_run_strategy == ‘batch’, the method will run all ensemble members in one go, expect additional kwargs[‘nens’] to be the ensemble size. If self.ens_run_strategy == ‘scheduler’, the method runs a single member indexed by kwargs[‘member’], and kwargs[‘worker_id’] is the pid assigned by the scheduler to run this method.