spectrochempy.perkinelmer.readο
- read(*paths, **kwargs)[source]ο
Open PerkinElmer
spfiles.- Parameters:
- Returns:
object (
NDDatasetorScpObjectListofNDDataset) β The returned dataset(s). When several datasets are returned, the result is a list-likeScpObjectList.- Other Parameters:
content (
bytesobject, 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 (
Pathobject or valid urls, optional) β From where to read the files.merge (
bool, optional, default:False) β IfTrueand several filenames have been provided with compatible dimensions, they are merged into a singleNDDataset.protocol (
str, optional) β Protocol used for reading.sortbydate (
bool, optional, default:True) β Sort multiple filename by acquisition date.
See also
readGeneric 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))