SP2SP

Reformat a set of spectra


EnvironmentsPYTHON :: EASI :: MODELER
Batch ModeYes
Quick linksDescription :: Parameters :: Parameter descriptions :: Details :: Acknowledgements

Back to top

Description


Reads spectra from a file and outputs them to a file of user-specified type.
Back to top

Parameters


Name Type Length Value range
SpecInputFile* String 1 -    
SpecOutputFile* String 1 -    
SpectrumRecords Integer 0 - 1024  
FileFormat String 0 - 1 SPCB | XLS | TXT
Default: SPCB

* Required parameter
Back to top

Parameter descriptions

SpecInputFile

Specifies the name of the input spectra library file.

SpecOutputFile

Specifies the name of the output spectra library file. If a file with the specified name exists, it will be overwritten.

The following rules apply to the output spectra library file extensions:

SpectrumRecords

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.

FileFormat

Specifies the type of the output file.

Supported file types are:
Note: If TXT (text file) is specified, a file with a ".gav" extension with also be generated that contains the schema for the file.
Back to top

Details

Both the input and output files must be GDB-recognized spectra library files.

Back to top

Acknowledgements

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.®, 2024. All rights reserved.