#!/opt/gnu/bin/perl # # roll_entry.cgi # Generate the html page for HST nominal roll calculation and display. # S.J.Hulbert 14Jul99 v1.0 BEGIN { unshift (@INC, "/data/garnet2/httpd/cgi-bin/SJH/perl5/"); unshift (@INC, "/data/garnet2/httpd/cgi-bin/SJH/perl5/5.00502/sun4-solaris"); unshift (@INC, "/data/garnet2/httpd/cgi-bin/SJH/perl5/site_perl/5.005/sun4-solaris"); unshift (@INC, "/data/garnet2/httpd/cgi-bin/SJH/perl5/site_perl/5.005"); } use CGI; $REF = '/data/pongo5/SSD/SSD_WWW/TMP/'; $HREF = 'http://garnet.stsci.edu/ssd/TMP/'; # First get the parameters passed into the script # Use the CGI module to parse the CGI form submission. # my $query = new CGI; my $frmt = &trim($query->param('frmt')); my $start = &trim($query->param('start')); my $end = &trim($query->param('end')); my $ra = &trim($query->param('ra')); my $dec = &trim($query->param('dec')); my $freeform = &trim($query->param('freeform')); # parse input and check for validity ($errmsg, *starts, *ends, *ras, *decs) = &parsecheck($frmt, $start, $end, $ra, $dec, $freeform); # Print the header and beginning html for the result page. # print $query->header(-type => 'text/html'); print $query->start_html(-title => "HST Nominal Roll"); if (!($errmsg)) { # In this case we have data passed in from the form. # so run the processing scripts (*xvalues, *rax, *decx, *nominal, *lolim, *hilim) = &proc_in(\@starts, \@ends, \@ras, \@decs); ($tablename, $giffilename) = &proc_plot(\@xvalues, \@rax, \@decx, \@nominal, \@lolim, \@hilim); $tablename =~ s/$REF/$HREF/; $giffilename =~ s/$REF/$HREF/; print "