view the rest of the comments
Ask Science
Ask a science question, get a science answer.
Community Rules
Rule 1: Be respectful and inclusive.
Treat others with respect, and maintain a positive atmosphere.
Rule 2: No harassment, hate speech, bigotry, or trolling.
Avoid any form of harassment, hate speech, bigotry, or offensive behavior.
Rule 3: Engage in constructive discussions.
Contribute to meaningful and constructive discussions that enhance scientific understanding.
Rule 4: No AI-generated answers.
Strictly prohibit the use of AI-generated answers. Providing answers generated by AI systems is not allowed and may result in a ban.
Rule 5: Follow guidelines and moderators' instructions.
Adhere to community guidelines and comply with instructions given by moderators.
Rule 6: Use appropriate language and tone.
Communicate using suitable language and maintain a professional and respectful tone.
Rule 7: Report violations.
Report any violations of the community rules to the moderators for appropriate action.
Rule 8: Foster a continuous learning environment.
Encourage a continuous learning environment where members can share knowledge and engage in scientific discussions.
Rule 9: Source required for answers.
Provide credible sources for answers. Failure to include a source may result in the removal of the answer to ensure information reliability.
By adhering to these rules, we create a welcoming and informative environment where science-related questions receive accurate and credible answers. Thank you for your cooperation in making the Ask Science community a valuable resource for scientific knowledge.
We retain the discretion to modify the rules as we deem necessary.
Waiting for an actual spectrographer to weigh in, but I think there are databases of molecular emission spectra that can be used to match a sample for complex molecules.
Each element has a known set of emission lines. Mixing elements together in molecules can shift these lines some and add them together. https://en.wikipedia.org/wiki/Emission_spectrum has some examples across the visible spectrum.
Afaik emission spectra are measured for astronomy and passive remote sensing (since generally you're just capturing what's already being emitted). Most spectrometers or spectroradiometers can be used to measure emission or reflection, so then it's just a question of if you want to measure a sample's reflectivity by shining a known source of light at it or it's emission by exciting it with heat or electricity or lasers.
I think Raman spectroscopy is used to excite a crystal lattice with a laser to identify its structure based on the wavelengths emitted outside the laser band, so it has a specific application on crystallography, just like X-ray diffraction.
Also don't forget mass spectrometers literally rip apart molecules and sort the atoms by mass, so the relative composition of elements can be measured directly.