create

create(model_path, *, projection_string='', srid=-1, auto_open=True, **kwargs)

Create a new MIKE+ model database.

Alias for Database.create()

Parameters

Name Type Description Default
model_path str or Path Path where the new database will be created required
projection_string str The projection string for the database ''
srid int The SRID for the database, e.g. 4326 for WGS84 -1
auto_open bool If True, immediately open the database connection True
**kwargs dict Additional keyword arguments to pass to the Database.create method {}

Returns

Name Type Description
Database A Database object for the newly created database

Raises

Name Type Description
FileExistsError If the database already exists