Thermally tunable optical sensors are used in sampling tools for analysis
of samples from a wellbore. The thermally tunable optical sensors
generate a series passbands of wavelength emissions and detect
attenuation in a signal thereof. The attenuation detected is processed
and used to determine aspects of the samples. Analysis may be completed
remotely (outside of the wellbore), within the wellbore (during drilling
or otherwise), or as a part of another process such as fluid management,
transport and refinement.