environmentaltools.common.write_copla_input

environmentaltools.common.write_copla_input(case_index: int, time_index, case_id: str, data, params: dict, mesh: str = 'local')[source]

Write COPLA wave propagation model input files.

Creates input files for the COPLA (Coastal Propagation of LArge waves) model, using SWAN output as boundary conditions.

Parameters:
  • case_index (int) – Sequential case number (0-based index).

  • time_index – Timestamp from the data index for this case.

  • case_id (str) – String identifier for this case (e.g., ‘0001’, ‘0002’).

  • data (pd.DataFrame) – Time series of boundary condition data.

  • params (dict) – Dictionary with model parameters including: - directory: Root directory for input/output files - Mesh configuration parameters

  • mesh (str, optional) – Mesh type identifier. Defaults to ‘local’.