EnSpec / SpecDAL

Website landing page for SpecDAL project. https://specdal.github.io now redirects here.
MIT License
28 stars 17 forks source link

Added some functionalities at reading .sig files #19

Open sergiobellido opened 2 years ago

sergiobellido commented 2 years ago

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.