next up previous
Next: 3 THE OBSERVING PROCESS Up: Service observing management at the APEX telescope Previous: 1 INTRODUCTION

Subsections


2 PROJECT SUBMISSION

Observing time with APEX is granted by the time allocation committee (TAC) of the corresponding partner institute, which is either the Max-Planck-Institut für Radioastronomy, Onsala Space Observatory, the European Southern Observatory, or the Chilean astronomical community. When a PI is informed about the allocation of observing time for his/her project, he/she is asked to submit all relevant information concerning the project through our project submission facility, which is accessible on the APEX web pages after entering a valid user/password combination.


1 The PHP/HTML web form

The project submission form is a standard web page written in HTML and PHP, and is accessible by any web browser (see Fig. 1). Its usage therefore does not require any additional software to be installed on the PI's computer.

The submission form contains three sections which have to be filled out by the PI. The first section contains general project information: Proposal number, APEX partner organization, PI name and email, etc. Besides these, also the information about target sources should be submitted in this section, either by filling out the provided fields, or by uploading an already prepared source catalog. In addition, the selection of the receivers to be used for this project is part of this first section.

The second section should provide receiver-dependant information, and can be filled out for each receiver independently. The information which is to be provided here contains observing modes, switch modes, pointing sources, or mosaic setup, and also backend setup and spectral lines for heterodyne receivers. While the provided input fields are sufficient for the majority of projects, there are always more complicated observing programs that require different setups or observing modes depending on the source or spectral line. Several comment fields are provided to enable the submission of these projects as well.

A third section is provided to submit additional observing instructions, or for general project information.

Figure: Two sections of the project submission web form used at APEX. In the upper section of the form (left) the PI has to enter general information, while in one of the central section (right) the form asks for receiver specific information.
\includegraphics[angle=0, width=16cm]{form1+3.eps}

2 Interactive JavaScript elements

For design reasons, and also in order to keep all input options easily accessible, the project submission form uses JavaScript and Dynamic HTML in combination together with CSS style sheets. This allows to display only the necessary form elements. Only one receiver is displayed at a time, but the user can switch easily between the receivers. As visualized in Fig. 2, the form changes dynamically depending on the user input, hereby hiding the input fields which are not necessary for the current submission.

JavaScript is also used for an immediate verification of the values entered by the PI in some input fields. Thus unreasonable input is detected before the form content is submitted to the server, hereby saving network capacities and server computing power.

Figure: Dynamic HTML in the project submission form. The upper part shows the target source section for the online submission of 3 sources, while the lower part shows exactly the same part of the form for the upload of an already prepared source catalog.
\includegraphics[angle=270, width=15cm]{javascript.ps}


3 Form readout and translation with Perl

The core of the submission process builds a Perl script submit_setup.pl, which by now has grown to more than 6.000 lines of code. Still, under normal conditions, a submission is processed within a few seconds. The script reads the form, using standard Perl commands and modules, and performs a series of tasks, which are described below.


4 Associated programs

The Perl script submit_setup.pl calls additional programs for special tasks. These tasks are not embedded in the Perl code. One reason is that these task can be easily activated or de-activated for tests during phases of development or improvement.

The first of these tasks is the creation of a project page on the APEX TWiki. This is a collaboration platform for APEX staff and partners, using the TWiki software1. This task is performed by a TCL script named createProjectPage. TCL was chosen for this task because it allowed the re-use of already existing software components working within the APEX TWiki.

The second task is the creation of a project account in the APEX Observing database, and to fill the database fields with information about the project. For this purpose the Perl program submit_setup.pl writes a PHP script, which naturally interfaces with the observing database.



Michael Dumke, 19 May 2009. Article © SPIE