3.3.3. pypago.pyio.read_time

pypago.pyio.read_time(filename, time_varname)

Reads the time variable of a NetCDF time. If the time variable contains a ‘units’ attribute, then a list of py:class:datetime.datetime is returned. Else, a list of floats is returned.

Parameters
  • filenaeme (str) – NetCDF file name

  • time_varname (str) – Name of the time variable