Stianpr20 / MaXrd

Symmetry data and utilities related to crystallography and X-ray scattering
MIT License
24 stars 3 forks source link

What are the units for wavelength? #3

Closed sgbaird closed 3 years ago

sgbaird commented 3 years ago

E.g. in BraggAngle. Angstroms? nm?

Stianpr20 commented 3 years ago

All wavelength entries assume values in angstroms. Other units should either be converted first, or go in a Quantity, e.g.

BraggAngle["Silicon", Quantity[150, "Picometers"], {1, 1, 1}]

I will clarify this in the documentation pages of the relevant functions. Thank you!