Pressure must also be held constant in measuring the refractive index of gases.
Refractive index can be used to identify a substance, to measure its purity, and to determine the concentration of one substance dissolved in another. Typically, a refractometer is used to determine refractive index.