index.html
index.html
—
HTML,
4Kb
File contents
<HTML>
<HEAD>
<TITLE>LCO Direct CCD Exposure Time Calculator</TITLE>
<SCRIPT language="Javascript" src="data.js"> </SCRIPT>
<SCRIPT language="Javascript" src="functions.js"> </SCRIPT>
</HEAD>
<BODY>
<H2>
<P align="center">Las Campanas Observatory <br>Direct CCD Exposure Time Calculator 1.0</P>
</H2>
<P align="center">Calculates the observation time needed for a given telescope, instrument, detector and filter.<br><br>
Algorithm based on the <a href="http://iraf.noao.edu/">IRAF</a> task <b><i><a href="http://iraf.noao.edu/scripts/irafhelp?ccdtime">
ccdtime</a></i></b>
<H6 align="center">
Last Update: Feb 03 2004
<HR>
</H6>
</P>
<center>
<table width="600" bgcolor="#ffffff" border="0" cellspacing="0"
cellpadding="10">
<tbody>
<tr>
<td>
<FORM name=form1>
<B>Telescope:</B>
</td>
<td>
<SELECT name=select1 onChange="function1()"> <!-- select a telescope -->
<OPTION value="0" selected>Select
<OPTION value="1">Magellan
<OPTION value="2">du Pont
<OPTION value="3">Swope
</SELECT>
</td>
</tr>
<tr>
<td>
<B>Instrument:</B>
</td>
<td>
<SELECT name=select2 onChange="function2()"> <!-- select an instrument -->
<OPTION value="0">-
</SELECT>
</td>
</tr>
<tr>
<td>
<B>Filter:</B>
</td>
<td>
<SELECT name=select3> <!-- select a filter -->
<OPTION value="0">-
</SELECT>
</td>
</tr>
<tr>
<td>
<B>Magnitude:</B>
</td>
<td>
<INPUT type=text name="magnitude" size=5 value=20> (must be between -5 and 35) <!--should read only numbers -->
</td>
</tr>
<tr>
<td>
<B>Signal/noise:</B>
</td>
<td>
<INPUT type=text name="snr" size =5 value=10> (must be between 0 and 100,000)
</td>
</tr>
<tr>
<td>
<B>CCD Binning: </B>
</td>
<td>
<SELECT name=binning>
<OPTION value="1">1 x 1
<OPTION value="2">2 x 2
<OPTION value="3">3 x 3
<OPTION value="4">4 x 4
</SELECT><BR><BR>
</td>
</tr>
<tr>
<td>
<B>Seeing (arcsecs):</B>
</td>
<td>
<INPUT type=text name="seeing" size=5 value=0.5 > (must be between 0 and 5)
</td>
</tr>
<tr>
<td>
<B>Airmass: </B>
</td>
<td>
<INPUT type=text name="airmass" size=5 value=1.1> (must be between 1 and 3)
</td>
</tr>
<tr>
<td>
<B>Lunar Phase: </B>
</td>
<td>
<SELECT name=phase>
<OPTION value="0">0 = new
<OPTION value="1">1
<OPTION value="2">2
<OPTION value="3">3
<OPTION value="4">4
<OPTION value="5">5
<OPTION value="6">6
<OPTION value="7" selected>7
<OPTION value="8">8
<OPTION value="9">9
<OPTION value="10">10
<OPTION value="11">11
<OPTION value="12">12
<OPTION value="13">13
<OPTION value="14">14 = full
</SELECT>
</td>
</tr>
<tr>
<td>
<INPUT type="button" value="Calculate" onClick="function3(magnitude.value, snr.value, seeing.value, airmass.value)">
<INPUT type="reset" value="Reset"onClick="function4()">
</td>
</tr>
</tbody>
</table>
<p>
<b><font color=blue>Your observation will require approximately <INPUT type="text" name="result" size=8 value=0 onFocus="this.blur()"> seconds to complete.</font></b>
<p>
<br>
<b>Star counts: <INPUT type="text" name="result2" size=8 value=0 onFocus="this.blur()"> Sky counts/pixel: <INPUT type="text" name="result3" size=8 value=0 onFocus="this.blur()"></b>
<p>
<b>Noise Contributions: Star <INPUT type="text" name="result4" size=8 value=0 onFocus="this.blur()"> Sky <INPUT type="text" name="result5" size=8 value=0 onFocus="this.blur()"> CCD <INPUT type="text" name="result6" size=8 value=0 onFocus="this.blur()"></b>
<!-- ^ shows final result -->
</center>
</FORM>
<!-- ------------------------------------------------------------------------------------------------------------------------ -->
<HR>
<CENTER>
<FORM>
<INPUT type="button" value="See Source Code" onclick='location = "view-source:" + location.href'>
</FORM>
<SUP>
<H5> developed by Marrana Vacilona Enterprises
</H5>
</SUP>
</CENTER>
<!-- ------------------------------------------------------------------------------------------------------------------------ -->
</BODY>
<HTML>

