Documentation
¶
Overview ¶
Package refractiveindex fetches and reads the refractiveindex.info database: optical constants of thousands of materials, their refractive index n and extinction coefficient k by wavelength.
The measurements span the ultraviolet into the infrared. Mikhail Polyanskiy keeps the database; each material is a book on a shelf, and each page is one measurement by the researchers who made it.
The database is in the public domain: copyright and related rights were waived through the CC0 1.0 Universal Public Domain Dedication.
Work using it cites Polyanskiy, M. N. Refractiveindex.info database of optical constants. Scientific Data 11, 94 (2024), doi 10.1038/s41597-023-02898-2, and the original publications behind the specific datasets it uses; those are each data file's references.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Row ¶
Row is one wavelength's optical constants. K is zero for a page that tabulates only n: such a page gives no k at all, and none is drawn from it, so zero stands for none.
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Table is one page's optical constants: what the page's data file says of itself, and its rows.
func Read ¶
Read is a page of a book on a shelf, read from the database's archive by the names the catalog takes: shelf, book and page, as "main", "Au" and "Johnson".
It refuses a shelf, book or page the catalog does not hold, by name, and a page whose constants are a formula or anything but tabulated n and k, by name.
func (Table) Comments ¶
Comments is the page's comments section: what else its file says of its numbers, or the empty string when it says none.
func (Table) References ¶
References is the page's references section: the publications the page asks to be cited for its numbers.