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))