prysm.wavelengths

Various laser wavelengths.

prysm.wavelengths.mkwvl(quantity, base=Unit("um"))

Generate a new Wavelength unit.

Parameters
  • quantity (float or astropy.units.unit) – number of (base) for the wavelength, e.g. quantity=632.8 with base=u.nm for HeNe. if an astropy unit, simply returned by this function

  • base (astropy.units.Unit) – base unit, e.g. um or nm

Returns

new Unit for appropriate wavelength

Return type

astropy.units.Unit