rameau.core.states.StatesCollection.to_file

StatesCollection.to_file(path, index=None)[source]

Dump StatesCollection to text file.

Parameters:
  • path (str) – Path to the text file.

  • index (list or ndarray) – Integer indexes to associate with each States watershed stored in the StatesCollection. If None, default is a range of integers from 1 to the number of stored States.