%%
%% This is the file `vospwks2007..tex'
%%
%%
%% ====================================================
%% It describes use of the LaTeX class file vospwks2007.cls
%% ====================================================
%% -------------------------------------------------

\documentclass{vospwks2007}
\usepackage{graphicx}
\title{Web-based Observation Supporting Archive of 2m Ond\v{r}ejov Telescope}
\author{Lenka Kotkov\'{a}, Petr \v{S}koda}
\affil{Astronomical Institute of the Academy of Sciences of the Czech
Republic, v.v.i. \\ Fri\v{c}ova 298, Ond\v{r}ejov, CZ-251\,65}

\newcommand{\btx}{\textsc{Bib}\TeX}
\newcommand{\filename}{vospwks2007}

\begin{document}

\keywords{Spectra, Data Archives, Virtual Observatory}

\maketitle

\begin{abstract} 
We present a PHP-based database of stellar spectra obtained
with coud\'e spectrographs of Ond\v{r}ejov observatory 2m telescope. It is an
integrated system serving as a observation preparation tool, quick-look
pipeline, pre-reduction quality checker and the interactive archive for finally
reduced and calibrated spectra. 
\end{abstract}

\section{Introduction}

Ond\v{r}ejov 2m telescope is the Czech main astronomical facility used mainly
for high resolution spectroscopy in coud\'e spectrograph (see
\citet{skohosle:2001} and \citet{slesko:2002}). Its scientific team consists of
astronomers with various professional aims, collaborating on long-term
observations of a wide range of targets (mostly Be and B[e] stars) mostly
accomplished in service mode on behalf of other team members and worldwide
collaborators. In 2003 simple web-based database of this targets has been
developed to provide observers with an overview of objects suitable for current
observation. Later reduced spectra from this telescope have been linked with
the stars to show what was actually observed. Finally, also raw data viewer and
scanned pages of observation logbook have been included into this system. Web
database links relations among all coherent information, offers variety of
searches and tests. Web-based archives with similar features have been
developed at the Astronomical Institute also for observations of variable star
light curves and fireball observations. All systems are running on Linux
servers, use Mysql database controlled by PHP scripts, PNG images are generated
by GD libraries.


\section{Stellar position on the sky}

Coordinates of an object enable to draw the field of view of camera finder (GSC
stars) and altitude diagram. Individual stars of interest can be gathered to
groups by observers to create observational schedule. Altitude overview is
provided for all the stars together. This tool helps observers to decide in
real time about the most suitable target at the current time or at any given
time during night.

\section{Raw data}

Newly saved raw images can be displayed by the web interface in a few tens of
seconds, after files were automatically copied to directory controlled by the
web system. List of all images shows brief file description. Simple viewer
(Figure~\ref{fig:raw}) shows spatial profile of the spectrum (the number of
lines selected depends on their average intensity above given threshold),
average spectrum computed from automatically selected lines, spectrum image and
short description. Data supervisor sorts raw images into observational night
directories, adds observer names (those names in file headers are not always
correct) and after thorough check of each image (including calibration ones)
object files are linked with stars in database. For the cases of doubts,
scanned pages of observation logbook are available later to judge the
situation.

\begin{figure*}
\centering
\includegraphics[width=0.8\linewidth]{raw.png}
\caption{Raw data viewer.\label{fig:raw}}
\end{figure*}

\section{Reduced data}

Spectra reduced externally in IRAF  (see \citet{skosle:2002}) are uploaded to
the given directory of the web server and after the quick update of header
database the  links establishing the relation to raw object image, calibration
images, observer names, logbook pages and to the  database of objects are
created. Telescope coordinates from the image header can be compared with those
in  target database. List of observed spectra is supplied with the phase
diagram, if periodicity is given. Review table (in ASCII) of observed spectra
and their parameters can be used also as an input file for further processing
by external programs.

\section{Searches}

Various searches by object name or spectrograph configuration are possible for
both raw images (including calibration images) and reduced spectra. Also
results of error checks, like telescope versus database coordinates or
spectrograph configuration problems, can be displayed.

\section*{Conclusions}

This complex tool helps observers at 2m telescope in Ond\v{r}ejov to decide
effectively on targets most suitable for the current exposure, taking into
account both observing conditions (seeing, elevation, extinction) and physical
parameters (e.g. interesting orbital phase, strength of emission, period
coverage). It allows the pre-reduction checks of quality of raw frames of both
calibrations and target (e.g. SNR, contamination by cosmics or strength of
skylines) and after final reduction of data it serves as a full-fledged archive
of spectra. Besides its primary goal the system is also foreseen as the
test-base for the future development of VO compliant spectra archive.

\section*{Acknowledgments}

This work has been supported by grant GACR 205/06/0584. The Astronomical
Institute Ond\v{r}ejov is supported by project AV0Z10030501


\begin{thebibliography}{}

\bibitem[\v{S}koda et al.(2001)]{skohosle:2001} \v Skoda P., Honsa J., \v
Slechta M., 2001, in Astronomical Data Analysis Software and Systems X, eds.
Harnden Jr. F. R., Primini F., and Payne H. E., ASP Conf. Series, 238, 423


\bibitem[\v{S}lechta \& \v{S}koda(2002)]{slesko:2002} \v Slechta M.,  \& \v
Skoda P., 2002, Publ. Astron.Inst.~ASCR, 90, 1


\bibitem[\v{S}koda \& \v{S}lechta(2002)]{skosle:2002} \v Skoda P., \& \v
Slechta M., 2002, Publ.  Astron. Inst.~ASCR, 90, 22

\end{thebibliography}

\end{document}
%%
%% End of file `vospwks2007'.
