Implementation and validation of a multi-purpose virtual spectrometer for large systems in complex environments