polaris.tasks.ocean.analysis.sim_files.SimFile

class polaris.tasks.ocean.analysis.sim_files.SimFile(path: str, year: int | None, month: int | None)[source]

One file of simulation output, together with the date it covers

Variables:
  • path (str) – The absolute path to the file

  • year (int or None) – The simulation year the file covers, or None if the file-name template has no $Y in it

  • month (int or None) – The month the file covers, or None if the file-name template has no $M in it

__init__()

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

month

Alias for field number 2

path

Alias for field number 0

year

Alias for field number 1