environmentaltools.processes.create_db

environmentaltools.processes.create_db(params, data, mesh='global', time_=None, vars_=None, method='nearest')[source]

Create the project folder with the initialized files for SWAN and Copla models.

Parameters:
  • params (dict) – Dictionary with the model parameters

  • data (pd.DataFrame) – DataFrame with the time series of the boundary data

  • mesh (str, optional) – Mesh type identifier. Default is ‘global’.

  • time (array-like, optional) – Time coordinates. Default is None.

  • vars (str or list, optional) – Variable names to include. Default is None.

  • method (str, optional) – Interpolation method (‘nearest’, ‘linear’, ‘cubic’). Default is ‘nearest’.

Returns:

Dataset of the project with initialized grids

Return type:

xr.Dataset