| Environments | PYTHON :: EASI :: MODELER |
| Quick links | Description :: Parameters :: Parameter descriptions :: Details :: Example :: Acknowledgements |
| Back to top |
| Back to top |
sp2sp(specfili, specfilo, sprecs, filotype)
| Name | Type | Caption | Length | Value range |
|---|---|---|---|---|
| SPECFILI * | str | Input spectrum library file name | 1 - | |
| SPECFILO * | str | Output spectrum library file name | 1 - | |
| SPRECS | List[int] | Spectrum records | 0 - | |
| FILOTYPE | str | Type of File to be Created | 0 - 16 | SPCB | XLS | TXT Default: SPCB |
| Back to top |
SPECFILI
Specifies the name of the input spectra library file.
SPECFILO
Specifies the name of the output spectra library file. If a file with the specified name exists, it will be overwritten.
SPRECS
Specifies the record numbers (1 to N) of the spectra in the input file to be copied to the output file. If this parameter is not specified, all spectra in the input file is copied to the output.
FILOTYPE
Specifies the type of the output file.
| Back to top |
Both the input and output files must be GDB-recognized spectra library files.
| Back to top |
Read all spectra from a SPCB-format file and write them to an XLS-format file.
from pci.sp2sp import sp2sp specfili = "splib04a-part.spl" specfilo = "splib04a-part-spl2.xls" sprecs = [] filotype = "xls" sp2sp( specfili, specfilo, sprecs, filotype )
| Back to top |
PCI Geomatics received financial support from the Canadian Space Agency/L'Agence Spatiale Canadienne through the Earth Observation Application Development Program (EOADP) for the development of this software, under contract 9F028-0-4902/12.
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.