nansencenter / DAPPER

Data Assimilation with Python: a Package for Experimental Research
https://nansencenter.github.io/DAPPER
MIT License
341 stars 119 forks source link

Connecting an external dynamical model #85

Closed Balinus closed 2 years ago

Balinus commented 2 years ago

Hello!

Thanks for this library. I was wondering, before I go ahead, if it was possible to launch an external dynamical model (compiled in C++ or Matlab source code)? The model does not exist in Python. Is there a template somewhere in the documentation for such a use case?

Thanks!

patnr commented 2 years ago

Hi, there is an example of connecting to Fortran90 code, see dapper/mods/QG.

I have not interfaced with C or Matlab myself, but it's supposed to be one of the things Python is good at, so should definitely be possible. Otherwise just try to follow the guidelines from the docs

Balinus commented 2 years ago

Thanks! That should be possible then. I read a little bit about interfacing C and Matlab and there are definitely solutions.

Thanks again!