Skip to content

Instantly share code, notes, and snippets.

@Stoft1
Stoft1 / swbcfl.m
Created May 18, 2015 17:23
Matlab example of CFL Calibration for PLab's SWB
% File: swbcfl.m
% Org: 20150218 Dave Stoft
% Revid: 20150323
% Descr: Example code to calculate pixel:wavelength mapping when pixel#
% for 436nm and 546nm peaks are known
%
% Concept:
% With an incidence angle to the grating of 45-deg, and the camera image
% plane thus parallel to the grating, the 524nm diffraction angle will be
% 0-deg; relative to the camera normal (perpendicular to the image plane