--- ray/doc/ray.html 2023/12/12 20:25:22 1.37 +++ ray/doc/ray.html 2023/12/13 23:26:16 1.38 @@ -1,5 +1,5 @@ - +
+ mod specdata id + 3+n+ + func datafile + funcfile x1 x2 .. xn transform + 0 + m A1 A2 .. Am ++ +
+ The data file must have one more dimension than the coordinate + variable count, as this final dimension corresponds to the covered + spectrum. + The starting and ending wavelengths are specified in "datafile" + as well as the number of spectral samples. + The function "func" will be called with two parameters, the + interpolated spectral value for the current coordinate and the + associated wavelength. + If the spectrum is broken into 12 components, then 12 calls + will be made to "func" for the relevant ray evaluation. + +
+ mod specpict id + 5+ + func specfile + funcfile u v transform + 0 + m A1 A2 .. Am ++ +
+ The function "func" is called with the interpolated pixel value + and the wavelength sample in nanometers, the same as specdata, + with as many calls made as there are components in "specfile".