A method of performing energy-dispersive x-ray spectroscopy, comprising: creating, using a first instrument, library spectra by: directing, using an electron source and focusing options of the first instrument, an electron beam toward one or more elemental standards; obtaining, using an x-ray detector of the first instrument, energy-dispersive x-ray spectra of the one or more elemental standards; creating a spectra library from the spectra of the one or more elemental standards; creating, using a second instrument, calibration spectra, by: directing, using an electron source and focusing options of the second instrument, an electron beam toward an elemental standard sample; obtaining, using an x-ray detector of the second instrument, an energy-dispersive x-ray spectrum of the elemental standard sample; comparing the spectrum of the elemental standard sample to an elemental standard of the spectra library; determining a transformation based on the comparison of the spectrum of the elemental standard sample to the elemental standard of the spectra library; applying the transformation to the spectra library to generate a calibrated spectra library; determining, using the second instrument, the elements in an unknown mineral sample, the unknown mineral sample comprising a sample of unknown mineral composition, by: directing, using an electron source and focusing options of the second instrument, an electron beam toward the unknown mineral sample; obtaining, using the x-ray detector of the second instrument, an energy-dispersive x-ray spectrum of the unknown mineral sample; and comparing the obtained spectrum of the unknown mineral sample to the calibrated spectra library, characterized in that: - The first instrument is a source instrument; - The second instrument is a field instrument; - The calibration spectra have a lower resolution than the library spectra. creating, using a first instrument, library spectra by: directing, using an electron source and focusing options of the first instrument, an electron beam toward one or more elemental standards; obtaining, using an x-ray detector of the first instrument, energy-dispersive x-ray spectra of the one or more elemental standards; creating a spectra library from the spectra of the one or more elemental standards; directing, using an electron source and focusing options of the first instrument, an electron beam toward one or more elemental standards; obtaining, using an x-ray detector of the first instrument, energy-dispersive x-ray spectra of the one or more elemental standards; creating a spectra library from the spectra of the one or more elemental standards; creating, using a second instrument, calibration spectra, by: directing, using an electron source and focusing options of the second instrument, an electron beam toward an elemental standard sample; obtaining, using an x-ray detector of the second instrument, an energy-dispersive x-ray spectrum of the elemental standard sample; comparing the spectrum of the elemental standard sample to an elemental standard of the spectra library; determining a transformation based on the comparison of the spectrum of the elemental standard sample to the elemental standard of the spectra library; applying the transformation to the spectra library to generate a calibrated spectra library; directing, using an electron source and focusing options of the second instrument, an electron beam toward an elemental standard sample; obtaining, using an x-ray detector of the second instrument, an energy-dispersive x-ray spectrum of the elemental standard sample; comparing the spectrum of the elemental standard sample to an elemental standard of the spectra library; determining a transformation based on the comparison of the spectrum of the elemental standard sample to the elemental standard of the spectra library; applying the transformation to the spectra library to generate a calibrated spectra library; determining, using the second instrument, the elements in an unknown mineral sample, the unknown mineral sample comprising a sample of unknown mineral composition, by: directing, using an electron source and focusing options of the second instrument, an electron beam toward the unknown mineral sample; obtaining, using the x-ray detector of the second instrument, an energy-dispersive x-ray spectrum of the unknown mineral sample; and comparing the obtained spectrum of the unknown mineral sample to the directing, using an electron source and focusing options of the second instrument, an electron beam toward the unknown mineral sample; obtaining, using the x-ray detector of the second instrument, an energy-dispersive x-ray spectrum of the unknown mineral sample; and comparing the obtained spectrum of the unknown mineral sample to the calibrated spectra library, - The first instrument is a source instrument; - The second instrument is a field instrument; - The calibration spectra have a lower resolution than the library spectra.