spectrochempy.read_remote¶
- read_remote(file_or_dir, **kwargs)[source]¶
Download and read files or an entire directory on github spectrochempy_data repository.
This is done only if the data are not yet downloaded and present in the DATADIR directory.
- Parameters
file_or_dir (str or pathlib) – Folder where are located the files to read (it should be written as if it was locally downloaded already).
**kwargs (optional keywords parameters) – See Other Parameters.
- Other Parameters
merge (bool, optional, default: False) – By default files read are noot merged
replace_existing (bool, optional, default: False) – By default, existing files are not replaced so not downloaded.
download_only (bool, optional, default: False) – If True, only downloading and saving of the files is performed, with no attempt to read their content.
- Returns
See also
read_topspin
Read TopSpin Bruker NMR spectra.
read_omnic
Read Omnic spectra.
read_opus
Read OPUS spectra.
read_spg
Read Omnic *.spg grouped spectra.
read_spa
Read Omnic *.spa single spectra.
read_srs
Read Omnic series.
read_csv
Read CSV files.
read_zip
Read Zip files.
read_matlab
Read Matlab files.
Examples
>>> A = scp.read_remote('irdata/subdir')