<?php // Initialize the form with the default values. $_SESSION['lambda']="1.0"; $_SESSION['a']="1.0"; $_SESSION['e']="0.0"; $_SESSION['i']="75.0"; $_SESSION['lomega']="90.0"; $_SESSION['n']="1000"; if (isset($_POST['submit'])) { // The form has been submitted, so refresh it with the previous values. session_start(); $_SESSION['lambda']=$_POST['lambda']; $_SESSION['a']=$_POST['a']; $_SESSION['e']=$_POST['e']; $_SESSION['i']=$_POST['i']; $_SESSION['lomega']=$_POST['lomega']; $_SESSION['n']=$_POST['n']; } ?> <html> <head> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional/EN" "http://www.w3.org/TR/html4/DTD/loose.dtd"> <title>Extrasolar Planet Lightcurves</title> <style type="text/css"> a:link, a:visited, a:active {text-decoration: none; color: black;} a:hover {color: red;} </style> </head> <body bgcolor="#FFFFC0"> <?php if ($_SESSION['reset']) echo 'Reset<br />'; ?> <h1><a href="http://xxx.lanl.gov/abs/astro-ph?0501109" target="_blank">Phase Functions and Light Curves of Wide Separation Extrasolar Giant Planets</a></h1> <br>Authors: David Sudarsky, Adam Burrows, Ivan Hubeny, Aigen Li. <br>Submitted to Astrophysical Journal on January 4, 2005. <br>The Abstract is also available on Astro-ph by clicking <a href="http://xxx.lanl.gov/abs/astro-ph?0501109" target="_blank"><font color="blue"><u>here</u></font></a> or on the title. <br /><br /> <table width="625"> <tr><td><h4> We calculate self-consistent extrasolar giant planet (EGP) phase functions and light curves for orbital distances ranging from 0.2 AU to 15 AU. We explore the dependence on wavelength, cloud condensation, and Keplerian orbital elements. We find that the light curves of EGPs depend strongly on wavelength, the presence of clouds, and cloud particle sizes. Furthermore, the optical and infrared colors of most EGPs are phase-dependent, tending to be reddest at crescent phases in <i>V-R</i> and <i>R-I</i>. Assuming circular orbits, we find that at optical wavelengths most EGPs are 3 to 4 times brighter near full phase than near greatest elongation for highly-inclined (i.e., close to edge-on) orbits. Furthermore, we show that the planet/star flux ratios depend strongly on the Keplerian elements of the orbit, particularly inclination and eccentricity. Given a sufficiently eccentric orbit, an EGP&#39;s atmosphere may make periodic transitions from cloudy to cloud-free, an effect that may be reflected in the shape and magnitude of the planet&#39;s light curve. Such elliptical orbits also introduce an offset between the time of the planet&#39;s light curve maximum and the time of full planetary phase, and for some sets of orbital parameters, this light curve maximum can be a steeply increasing function of eccentricity. We investigate the detectability of EGPs by proposed space-based direct-imaging instruments. </h4> </td></tr> </table> <h1><font color="blue">This calculates and plots the lightcurve of an<br /> extrasolar giant planet orbiting a G2V star</font></h1><br /> <!-- Form to read in data --> <form method="post" action="lightcurve.php"> <font color="red"><h2><b>Type in the following parameters:</b></h2></font> <table> <tr><td><b>Wavelength in microns (0.43 &#60; &lambda; &#60; 2.5):</b><td> <input type="text" name="lambda" value=<?php echo $_SESSION['lambda'] ?> size="6"><td rowspan=7> <img src="planete.transit.animation.gif"><td rowspan=7> <img src="Moon_movie_small.gif" height="256"> <tr><td><b>Semi-major axis in AU (0.2 &#60; a &#60; 15.0):</b><td> <input type="text" name="a" value=<?php echo $_SESSION['a'] ?> size="6"> <tr><td><b>Orbital eccentricity (e):<td></b> <input type="text" name="e" value=<?php echo $_SESSION['e'] ?> size="6"> <tr><td><b>Orbital inclination in degrees (i):</b><td> <input type="text" name="i" value=<?php echo $_SESSION['i'] ?> size="6"> <tr><td><b>Argument of periastron in degrees (&omega;):</b><td> <input type="text" name="lomega" value=<?php echo $_SESSION['lomega'] ?> size="6"> <tr><td><b>Number of points (&#60; 1000)</b><td> <input type="text" name="n" value=<?php echo $_SESSION['n'] ?> size="6"> </table> &nbsp; &nbsp; &nbsp; &nbsp; <input type="submit" name="submit" value="Submit these parameters"> &nbsp; &nbsp; &nbsp; &nbsp; <input type="submit" name="reset" value="Reset to default values "> </form> <?php // Start of PHP code - Extract values from form stripping non-numeric characters $lambda=(float)$_POST['lambda']; $a=(float)$_POST['a']; $e=(float)$_POST['e']; $i=(float)$_POST['i']; $lomega=(float)$_POST['lomega']; $bomega=90; $n=(int)$_POST['n']; // Pass the data from the form to the FORTRAN program then read its output $command="./lightcurve_csharp $a $i $e $lomega $bomega $lambda $n"; $result=`$command`; ($fp=fopen("output","r")) or die("Unable to open the file output"); fscanf($fp,"%d",$n); // Store the input values in $_SESSION[] for showing on the graph. $_SESSION['lambda']=$lambda; $_SESSION['a']=$a; $_SESSION['e']=$e; $_SESSION['i']=$i; $_SESSION['lomega']=$lomega; $_SESSION['bomega']=$bomega; // Get the output values from the file and store them in $_SESSION[] for // plotting, but only if the form has been submitted, otherwise skip to the // end of this file, and display nothing more. if (isset($_POST['submit'])) { $ymin=1.0E30; $ymax=-$ymin; for ($i=0; $i<$n; $i++) { fscanf($fp,"%f %f %f",$time,$dist,$logratio); if ($logratio < $ymin) $ymin = $logratio; if ($logratio > $ymax) $ymax = $logratio; $_SESSION['time'][$i]=$time; $_SESSION['dist'][$i]=$dist; $_SESSION['logratio'][$i]=$logratio; } $_SESSION['n']=$n; $_SESSION['ymin']=$ymin; $_SESSION['ymax']=$ymax; echo '<big><b>' . $_SESSION['n'] . ' points have been calculated with:</b></big> &nbsp;'; echo '&lambda; = ' . $_SESSION['lambda']; echo ', a = ' . $_SESSION['a']; echo ', e = ' . $_SESSION['e']; echo ', i = ' . $_SESSION['i']; echo ' and &omega; = ' . $_SESSION['lomega']; ?> <!-- Links to display data in graphic and numeric form --> <p> <big><b> Click <a href="plotlightcurveb.php" target="_blank"><font color="blue"> <u>here</u></font></a> to plot the lightcurve.<br /> Click <a href="showdata.php" target="_blank"><font color="blue"> <u>here</u></font></a> to view the calculated output data.<br /> </b></big></p> <?php // Close the if isset test. } ?> </body> </html>