read

HIRSHIRS.read(f=None, fields='all', pseudo_fields=None, **kwargs)

Read granule in file and do some other fixes

Shall return an ndarray with at least the fields lat, lon, time.

Parameters
  • f (str) – String containing path to file to read.

  • fields (Iterable[str] or str) – What fields to return. See Dataset.read_period() for details.

  • pseudo_fields (Mapping[str, function]) –

    Additional fields to calculate on-the-fly after every read. That may be more attractive from a memory point of view. In this mapping, the keys will be names added to the dtype of the returned ndarray (at the top level). The values are functions. Each function must take four arguments:

    content [ndarray or xarray.DataArray]

    Content of file.

    D [Mapping]

    Output of earlier-executed data-fields.

    header [ndarray or xarry.DataArray]

    Header of file.

    fn [string-like]

    Name of file.

    and return an ndarray or xarray.DataArray to be merged with content. Dictionary are ordered now, make sure to pass the correct order.

  • particular (Any further keyword arguments are passed on to the) –

  • details (reading routine. For) –

  • docstring (please refer to the) –

  • class. (for the) –

Returns

Masked array containing data in file with selected fields.