fullseye

glass_nearest — OPTICS lensglobal op

使い方

(n_d, V_d) に最も近いカタログ硝材 k 個を、距離つきで返す(table)。

The catalogue (default: the 46 optical glasses of materials.glass_map; or a list of {"name", "nd", "vd"[, "PgF"]} dicts) is ranked by the distance in the Abbe plane: nd_vd is sqrt(dn_d^2 + (dV_d/100)^2); partial_dispersion adds (dP_gF/0.1)^2 and needs p_gf (glasses without a PgF are skipped). Ties are broken by name, so the order is reproducible. Returns {"query", "metric", "neighbours"} where each neighbour is {"rank", "name", "nd", "vd", "PgF", "distance"}; k larger than the catalogue is a ValueError.

Example::

glass_nearest(1.5168, 64.17, k=3)["neighbours"][0]["name"]

ファミリ共通の入力契約(fail-closed)

optics の全 op は入力を検証してから計算する(黙って通さない):

詳しい使い方ガイド

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

型が繋がる次の op(table を入力に取れる)

abcd_matrix · wavefront_stats · sfr_from_edge · paraxial_trace · seidel_coefficients · spot_stats · tolerance_analysis · wavefront_from_opd

同カテゴリ(lensglobal)

lens_substitute_glasses · lens_global_search


Provenance: lensglobal.py — OPTICS operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.