The spectrometer I use is from SVC, model XHR-1024i. The .sig file generated by the device for each measurement includes metadata that are not interpreted by the library. Specifically, those related to the GPS position (latitude/longitude), the saturation errors of the reference and target of the measurement, and the field 'type of the instrument' is the serial number plus model of the intrument (before it was just a constant string '.SIG'). Also I modified wavelength max/min ranges for extract into different keys instead of a tuple inside one key of the dictionary, which is better for data analysing with libraries like pandas.
Note: Errors in the case of the manufacturer are interpreted as follows:
0 = No Error
1 = VIS saturation occurred
2 = SWIR1 saturation occurred
4 = SWIR2 saturation occurred
Other values indicate multiple saturation errors occurred:
3 = both VIS and SWIR1 saturation occurred
5 = both VIS and SWIR2 saturation occurred
6 = both SWIR1 and SWIR2 saturation occurred
7 = VIS, SWIR1, and SWIR2 saturation occurred
In short, this pull request is for the purpose of implementing the reading of more meta parameters that can be incorporated in the .sig files.
The spectrometer I use is from SVC, model XHR-1024i. The .sig file generated by the device for each measurement includes metadata that are not interpreted by the library. Specifically, those related to the GPS position (latitude/longitude), the saturation errors of the reference and target of the measurement, and the field 'type of the instrument' is the serial number plus model of the intrument (before it was just a constant string '.SIG'). Also I modified wavelength max/min ranges for extract into different keys instead of a tuple inside one key of the dictionary, which is better for data analysing with libraries like pandas.
Note: Errors in the case of the manufacturer are interpreted as follows:
Other values indicate multiple saturation errors occurred:
In short, this pull request is for the purpose of implementing the reading of more meta parameters that can be incorporated in the .sig files.