Tree @de98f00a-2fd5-470a-b845-a0f1809c9a1e/main (Download .tar.gz)
- debian
- alist.scm
- alist.txi
- alistab.scm
- ANNOUNCE
- array.scm
- array.txi
- arraymap.scm
- arraymap.txi
- batch.scm
- Bev2slib.scm
- bigloo.init
- break.scm
- byte.scm
- byte.txi
- bytenumb.scm
- bytenumb.txi
- ChangeLog
- chap.scm
- chap.txi
- charplot.scm
- chez.init
- cie1931.xyz
- cie1964.xyz
- ciesia.dat
- ciesid65.dat
- clrnamdb.scm
- cltime.scm
- coerce.scm
- coerce.txi
- collect.scm
- collectx.scm
- color.scm
- color.txi
- colornam.scm
- colornam.txi
- colorspc.scm
- comlist.scm
- comparse.scm
- comparse.txi
- configure
- COPYING
- crc.scm
- cring.scm
- cvs.scm
- cvs.txi
- daylight.scm
- daylight.txi
- db2html.scm
- db2html.txi
- dbcom.scm
- dbinterp.scm
- dbrowse.scm
- dbsyn.scm
- dbutil.scm
- dbutil.txi
- debug.scm
- defmacex.scm
- determ.scm
- determ.txi
- dft.scm
- dft.txi
- differ.scm
- differ.txi
- dirs.scm
- dirs.txi
- dwindtst.scm
- dynamic.scm
- dynwind.scm
- elk.init
- eval.scm
- factor.scm
- factor.txi
- FAQ
- fdl.texi
- fluid-let.scm
- fluidlet.scm
- format.scm
- format.texi
- formatst.scm
- gambit.init
- genwrite.scm
- getopt.scm
- getparam.scm
- getparam.txi
- glob.scm
- glob.txi
- grapheps.ps
- grapheps.scm
- grapheps.txi
- guile-2.init
- guile.init
- guile.use
- hash.scm
- hashtab.scm
- hashtab.txi
- html4each.scm
- html4each.txi
- htmlform.scm
- htmlform.txi
- http-cgi.scm
- http-cgi.txi
- indexes.texi
- iso8601.scm
- iso8601.txi
- jscheme.init
- kawa.init
- limit.scm
- limit.texi
- lineio.scm
- lineio.txi
- linterp.scm
- linterp.txi
- logical.scm
- macrotst.scm
- macscheme.init
- macwork.scm
- Makefile
- manifest.scm
- manifest.txi
- matfile.scm
- matfile.txi
- math-integer.scm
- math-integer.txi
- math-real.scm
- mbe.scm
- minimize.scm
- minimize.txi
- mitscheme.init
- mkclrnam.scm
- mkclrnam.txi
- mklibcat.scm
- mkpltcat.scm
- modular.scm
- modular.txi
- mulapply.scm
- mularg.scm
- mwdenote.scm
- mwexpand.scm
- mwsynrul.scm
- mzscheme.init
- nbs-iscc.txt
- ncbi-dna.scm
- ncbi-dna.txi
- null.scm
- obj2str.scm
- obj2str.txi
- object.scm
- object.texi
- paramlst.scm
- peanosfc.scm
- peanosfc.txi
- phil-spc.scm
- phil-spc.txi
- pnm.scm
- pnm.txi
- pp.scm
- ppfile.scm
- prec.scm
- printf.scm
- priorque.scm
- priorque.txi
- process.scm
- promise.scm
- pscheme.init
- psxtime.scm
- qp.scm
- queue.scm
- queue.txi
- r4rsyn.scm
- randinex.scm
- randinex.txi
- random.scm
- random.txi
- ratize.scm
- ratize.txi
- rdms.scm
- README
- recobj.scm
- record.scm
- repl.scm
- require.scm
- resenecolours.txt
- rmdsff.scm
- rmdsff.txi
- root.scm
- RScheme.init
- s7.init
- saturate.txt
- sc2.scm
- sc4opt.scm
- sc4sc3.scm
- scaexpp.scm
- scaglob.scm
- scainit.scm
- scamacr.scm
- scanf.scm
- scaoutp.scm
- scheme2c.init
- scheme48.init
- schmooz.scm
- schmooz.texi
- scm.init
- scmacro.scm
- scsh.init
- selfset.scm
- sierpinski.scm
- simetrix.scm
- sisc.init
- slib.1
- slib.doc
- SLIB.ico
- slib.info
- slib.nsi
- slib.sh
- slib.spec
- slib.texi
- solid.scm
- solid.txi
- sort.scm
- soundex.scm
- srfi-1.scm
- srfi-1.txi
- srfi-11.scm
- srfi-2.scm
- srfi-23.scm
- srfi-39.scm
- srfi-61.scm
- srfi-8.scm
- srfi-9.scm
- srfi.scm
- srfi.txi
- stdio.scm
- STk.init
- strcase.scm
- strport.scm
- strsrch.scm
- structure.scm
- subarray.scm
- subarray.txi
- syncase.sh
- synchk.scm
- synclo.scm
- synrul.scm
- t3.init
- Template.scm
- timecore.scm
- timezone.scm
- top-refs.scm
- top-refs.txi
- trace.scm
- transact.scm
- transact.txi
- tree.scm
- tree.txi
- trnscrpt.scm
- tsort.scm
- tsort.txi
- tzfile.scm
- umbscheme.init
- uri.scm
- uri.txi
- values.scm
- version.txi
- vet.scm
- vet.txi
- vscm.init
- withfile.scm
- wttree-test.scm
- wttree.scm
- xml-parse.scm
- xml-parse.txi
- yasyn.scm
daylight.txi @de98f00a-2fd5-470a-b845-a0f1809c9a1e/main — raw · history · blame
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | @code{(require 'daylight)} @ftindex daylight @ftindex sunlight @ftindex sun @ftindex sky @noindent This package calculates the colors of sky as detailed in:@* @uref{http://www.cs.utah.edu/vissim/papers/sunsky/sunsky.pdf}@* @cite{A Practical Analytic Model for Daylight}@* A. J. Preetham, Peter Shirley, Brian Smits @defun solar-hour julian-day hour Returns the solar-time in hours given the integer @var{julian-day} in the range 1 to 366, and the local time in hours. To be meticulous, subtract 4 minutes for each degree of longitude west of the standard meridian of your time zone. @end defun @defun solar-declination julian-day @end defun @defun solar-polar declination latitude solar-hour Returns a list of @var{theta_s}, the solar angle from the zenith, and @var{phi_s}, the solar azimuth. 0 <= @var{theta_s} measured in degrees. @var{phi_s} is measured in degrees from due south; west of south being positive. @end defun @noindent In the following procedures, the number 0 <= @var{theta_s} <= 90 is the solar angle from the zenith in degrees. @cindex turbidity @noindent Turbidity is a measure of the fraction of scattering due to haze as opposed to molecules. This is a convenient quantity because it can be estimated based on visibility of distant objects. This model fails for turbidity values less than 1.3. @example @group _______________________________________________________________ 512|-: | | * pure-air | 256|-:** | | : ** exceptionally-clear | 128|-: * | | : ** | 64|-: * | | : ** very-clear | 32|-: ** | | : ** | 16|-: *** clear | | : **** | 8|-: **** | | : **** light-haze | 4|-: **** | | : ****** | 2|-: ******** haze thin-| | : *********** fog | 1|-:----------------------------------------------------*******--| |_:____.____:____.____:____.____:____.____:____.____:____.____:_| 1 2 4 8 16 32 64 Meterorological range (km) versus Turbidity @end group @end example @defun sunlight-spectrum turbidity theta_s Returns a vector of 41 values, the spectrum of sunlight from 380.nm to 790.nm for a given @var{turbidity} and @var{theta_s}. @end defun @defun sunlight-chromaticity turbidity theta_s Given @var{turbidity} and @var{theta_s}, @code{sunlight-chromaticity} returns the CIEXYZ triple for color of sunlight scaled to be just inside the RGB709 gamut. @end defun @defun zenith-xyy turbidity theta_s Returns the xyY (chromaticity and luminance) at the zenith. The Luminance has units kcd/m^2. @end defun @defun overcast-sky-color-xyy turbidity theta_s @var{turbidity} is a positive real number expressing the amount of light scattering. The real number @var{theta_s} is the solar angle from the zenith in degrees. @code{overcast-sky-color-xyy} returns a function of one angle @var{theta}, the angle from the zenith of the viewing direction (in degrees); and returning the xyY value for light coming from that elevation of the sky. @end defun @defun clear-sky-color-xyy turbidity theta_s phi_s @defunx sky-color-xyy turbidity theta_s phi_s @var{turbidity} is a positive real number expressing the amount of light scattering. The real number @var{theta_s} is the solar angle from the zenith in degrees. The real number @var{phi_s} is the solar angle from south. @code{clear-sky-color-xyy} returns a function of two angles, @var{theta} and @var{phi} which specify the angles from the zenith and south meridian of the viewing direction (in degrees); returning the xyY value for light coming from that direction of the sky. @code{sky-color-xyY} calls @code{overcast-sky-color-xyY} for @var{turbidity} <= 20; otherwise the @code{clear-sky-color-xyy} function. @end defun |