spectrochempy.perkinelmer.read

read(*paths, **kwargs)[source]

Open PerkinElmer sp files.

Parameters:
  • *paths (str, Path object or valid urls, optional) – The data source(s) can be specified by the name or a list of name for the file(s) to be loaded.

  • **kwargs (keyword parameters, optional) – See Other Parameters.

Returns:

object (NDDataset or ScpObjectList of NDDataset) – The returned dataset(s). When several datasets are returned, the result is a list-like ScpObjectList.

Other Parameters:
  • content (bytes object, optional) – Instead of passing a filename for further reading, a bytes content can be directly provided as bytes objects.

  • description (str, optional) – A custom description.

  • directory (Path object or valid urls, optional) – From where to read the files.

  • merge (bool, optional, default: False) – If True and several filenames have been provided with compatible dimensions, they are merged into a single NDDataset.

  • protocol (str, optional) – Protocol used for reading.

  • sortbydate (bool, optional, default: True) – Sort multiple filename by acquisition date.

See also

read

Generic reader inferring protocol from the filename extension.

Examples

>>> ds = scp.perkinelmer.read("irdata/perkinelmer/spectra.sp")
NDDataset: [float64] a.u. (shape: (y:1, x:3301))

Examples using spectrochempy.perkinelmer.read

Reading a PerkinElmer SP file (plugin)

Reading a PerkinElmer SP file (plugin)