% Modified FO
%APN3_PROCEEDINGS_FORM%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% UserGuide.tex -- ADASS VIII (98) ASP Conference Proceedings User Guide
% Updated by N. Manset for ADASS IX (99)
% Updated by D. Bohlender for ADASS XI (2001)
% Updated by H. Payne for ADASS XIII (2003)
%
% Use this template to create your proceedings paper in LaTeX format
% by following the instructions given below.  Much of the input will
% be enclosed by braces (i.e., { }).  The percent sign, ``%'', denotes
% the start of a comment; text after it will be ignored by LaTeX.
% You might also notice in some of the examples below the use of ``\``
% after a period; this prevents LaTeX from interpreting the period as
% the end of a sentence and putting extra space after it.
%
% You should check your paper by processing it with LaTeX.  For
% details about how to run LaTeX as well as how to print out the User
% Guide, consult the README file.  (The User Guide is also available
% on-line via http://adass2002.stsci.edu/instructions/manuscripts/UserGuide/
% You should also consult the sample LaTeX papers, sample1.tex and
% sample2.tex, for examples of including figures, html links, special
% symbols, and other advanced features.
%
% If you do not have access to the LaTeX software or a laser printer
% at your site, you can still prepare your paper following the
% instructions in the User Guide.  In such cases, the editors will
% process the file and make any necessary editorial adjustments.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%

\documentclass[11pt,twoside]{article}
\usepackage{adassconf}

% Some definitions I use in these instructions.
% these were lifted from the original aspconf.tex file
% YOU SHOULD NOT USE YOUR OWN DEFINITIONS
%%\def\emphasize#1{{\sl#1\/}}
%%\def\arg#1{{\it#1\/}}
%%\let\prog=\arg

%%\def\edcomment#1{\iffalse\marginpar{\raggedright\sl#1\/}\else\relax\fi}
%%\marginparwidth 1.25in
%%\marginparsep .125in
%%\marginparpush .25in
%%\reversemarginpar

\begin{document}

%-----------------------------------------------------------------------
%                           Paper ID Code
%-----------------------------------------------------------------------
% Enter the proper paper identification code.  The ID code for your
% paper is the session number associated with your presentation as
% published in the official conference proceedings.  You can
% find this number locating your abstract in the printed proceedings
% that you received at the meeting or on-line at the conference web
% site; the ID code is the letter/number sequence proceeding the title
% of your presentation.
%
% This will not appear in your paper; however, it allows different
% papers in the proceedings to cross-reference each other.  Note that
% you should only have one \paperID, and it should not include a
% trailing period.
%
% EXAMPLE: \paperID{O4-1}
% EXAMPLE: \paperID{P7-7}
%

\paperID{D3} % bogus id since we need one
%%%% ID=D3

%-----------------------------------------------------------------------
%                           Paper Title
%-----------------------------------------------------------------------
% Enter the title of the paper.
%
% EXAMPLE: \title{A Breakthrough in Astronomical Software Development}
%
% If your title is so long as to fill the page header when you print it,
% then please supply a short form as a \titlemark.
%
% EXAMPLE:
%  \title{Rapid Development for Distributed Computing, with Implications
%         for the Virtual Observatory}
%  \titlemark{Rapid Development for Distributed Computing}
%

\title{ESA ISO and XMM-Newton Archives Inter-Operability and VO services}
\titlemark{ISO and XMM-Newton VO Services}

%-----------------------------------------------------------------------
%                 Authors of Paper
%-----------------------------------------------------------------------
% Enter the authors followed by their affiliations.  The \author and
% \affil commands may appear multiple times as necessary (see example
% below).  List each author by giving the first name or initials first
% followed by the last name.  Authors with the same affiliations
% should grouped together.
%
% EXAMPLE: \author{Raymond Plante, Doug Roberts,
%                  R.\ M.\ Crutcher\altaffilmark{1}}
%          \affil{National Center for Supercomputing Applications,
%                 University of Illinois Urbana-Champaign, Urbana, IL
%                 61801}
%          \author{Tom Troland}
%          \affil{University of Kentucky}
%
%          \altaffiltext{1}{Astronomy Department, UIUC}
%
% In this example, the first three authors, "Plante", "Roberts", and
% "Crutcher" are affiliated with "NCSA".  "Crutcher" has an alternate
% affiliation with the "Astronomy Department".  The fourth author,
% "Troland", is affiliated with "University of Kentucky"

%\author{David Bohlender}
%\affil{Canadian Astronomy Data Centre, Herzberg Institute of Astrophysics,
%5071 West Saanich Road, Victoria, BC, Canada V9E 2E7}

\author{Christophe Arviset, Pedro Osuna, Jesus Salgado}
\affil{RSSD Archive Development Team, ESA VILSPA, PO BOX 50727,
28080 Madrid, Spain}

%-----------------------------------------------------------------------
%                        Contact Information
%-----------------------------------------------------------------------
% This information will not appear in the paper but will be used by
% the editors in case you need to be contacted concerning your
% submission.  Enter your name as the contact along with your email
% address.
%
% EXAMPLE:  \contact{Dennis Crabtree}
%       \email{Dennis.Crabtree@hia.nrc.ca}
%

\contact{Christophe Arviset}
\email{Christophe.Arviset@esa.int}

%-----------------------------------------------------------------------
%                     Author Index Specification
%-----------------------------------------------------------------------
% Specify how each author name should appear in the author index.  The
% \paindex{ } should be used to indicate the primary author, and the
% \aindex for all other co-authors.  You MUST use the following
% syntax:
%
% SYNTAX:  \aindex{LASTNAME, F. M.}
%
% where F is the first initial and M is the second initial (if
% used).  This guarantees that authors that appear in multiple papers
% will appear only once in the author index.
%
% EXAMPLE: \paindex{Crabtree, D.}
%      \aindex{Manset, N.}
%      \aindex{Veillet, C.}
%
% NOTE: this information is also used to build the author list that
% appears in the table of contents.  Authors will be listed in the order
% of the \paindex and \aindex commmands.
%

\paindex{Arviset, C.} \paindex{Osuna, P.} \paindex{Salgado, J.}

%-----------------------------------------------------------------------
%                     Author list for page header
%-----------------------------------------------------------------------
% Please supply a list of author last names for the page header. in
% one of these formats:
%
% EXAMPLES:
% \authormark{LASTNAME}
% \authormark{LASTNAME1 \& LASTNAME2}
% \authormark{LASTNAME1, LASTNAME2, ... \& LASTNAMEn}
% \authormark{LASTNAME et al.}
%
% Use the "et al." form in the case of seven or more authors, or if
% the preferred form is too long to fit in the header.

\authormark{Arviset, Osuna, Salgado}

%-----------------------------------------------------------------------
%                       Subject Index keywords
%-----------------------------------------------------------------------
% Enter up to 6 keywords describing your paper.  These will NOT be
% printed as part of your paper; however, they will be used to
% generate the subject index for the proceedings.  There is no
% standard list; however, you can consult the indices for past ADASS
% proceedings (http://adass.org/adass/proceedings/).
%
% EXAMPLE:  \keywords{visualization, astronomy: radio, parallel
%                     computing, AIPS++, Galactic Center}
%
% In this example, the author noticed that "radio astronomy" appeared
% in the ADASS VII Index as "astronomy" being the major keyword and
% "radio" as the minor keyword.

\keywords{Infrared Space Observatory (ISO), XMM: Newton, archives, Virtual Observatory, SIAP, interoperability}

%-----------------------------------------------------------------------
%                              Abstract
%-----------------------------------------------------------------------
% Type abstract in the space below.  Consult the User Guide and Latex
% Information file for a list of supported macros (e.g. for typesetting
% special symbols). Do not leave a blank line between \begin{abstract}
% and the start of your text.

\begin{abstract}
The ISO Data Archive (IDA) and XMM-Newton Science Archive (XSA)
are usually accessed through a dedicated and powerful Java user
interface available from any browser. To allow the access to
external applications and expert or normal users that need to
retrieve data directly from the archive bypassing the Java User
Interface, an integrated Archive Inter Operability system (AIO)
has been developed for XSA and IDA. This paper describes the
general inter-operability services that this system provides as
well as the specific VO standards services like SIAP that are
already supported.
\end{abstract}

%-----------------------------------------------------------------------
%                             Main Body
%-----------------------------------------------------------------------
% Place the text for the main body of the paper here.  You should use
% the \section command to label the various sections; use of
% \subsection is optional.  Significant words in section titles should
% be capitalized.  Sections and subsections will be numbered
% automatically.
%
% EXAMPLE:  \section{Introduction}
%           ...
%           \subsection{Our View of the World}
%           ...
%           \section{A New Approach}
%
% It is recommended that you look at the sample papers, sample1.tex
% and sample2.tex, for examples for formatting references, footnotes,
% figures, equations, html links, lists, and other special features.

%\setcounter{footnote}{1}

\section{Introduction}

Within the ESA's Science Operations and Data System Division, the
Archive Development Team in Villafranca, Spain is responsible of
developing and maintaining ESA Scientific Archives. For the ISO
Data Archive
(\htmladdnormallinkfoot{IDA}{http://www.iso.vilspa.esa.es/ida})
and the XMM-Newton Science Archive
(\htmladdnormallinkfoot{XSA}{http://xmm.vilspa.esa.es/xsa}), the
standard way to access to these ESA archives is through a powerful
Java User Interfaces.


To allow the access to external applications and expert or normal
users that need to retrieve data directly from the archive
bypassing the Java User Interface, an integrated Archive Inter
Operability system (AIO) has been developed for XSA and IDA.

The general AIO services are:
\begin{itemize}
\item Postcard Server (URL) \item Product Server (URL) \item
Product Server (Socket)
\end{itemize}



Later on, we have adapted our AIO inter-operability services to
comply to the new VO standards, in particular to SIAP (Simple
Image Access Prototype).

VO SIAP compatible AIO services are:
\begin{itemize}
\item Image Query \item Image Retrieval
\end{itemize}




\section{General AIO Services}
The IDA and XSA Archive Inter-Operability (AIO) systems allow
external applications or archives to access directly the ISO and
XMM-Newton data products bypassing the standard User Interfaces
which require interactions with a human being.

Full documentation about how to use these services can be found
at:
\begin{itemize}
\item ISO : http://pma.iso.vilspa.esa.es:8080/aio/doc \item
XMM-Newton : http://xsa.vilspa.esa.es:8080/aio/doc
\end{itemize}

\subsection{Postcard Server (URL)}
The Postcard Server is accessible via a URL for each observation
that returns an HTML page containing a quick-look view of the data
products for that observation together with links to relevant
documentation and links to the products themselves (via the
Product Server). Example of the Postcard Servers are given in
Figure~\ref{PostcardServers}.

The Postcard Server is already used by various archives such as
CDS, Aladin, IRSA, ADS, HEASARC.

\begin{figure}
\epsscale{0.6} \plotone{D3_1.eps} \caption{ISO and XMM-Newton
Postcard Servers.} \label{PostcardServers}
\end{figure}



\subsection{Product Server (URL)}
The Product Server is accessible via a URL that returns an HTML
page with the link to the FTP server where the requested data have
been put. After a few seconds, the data products download via FTP
is initiated. Alternatively, by setting an extra parameter, the
data products can be downloaded directly without going to the FTP
server. This is particularly interesting for applications like
Aladin who wants to request the products for future display.
Various parameters in the URL define the level of data products
that is requested by the user.

In combination with the Postcard Server which gives a quick view
of the available data, the Product Server allows the user to
download the real scientific products for his own analysis.



\subsection{Product Server (Socket)}
The Product Server can also run in the Socket mode in order from
any client or user to directly request ISO and XMM-Newton data
products without going through a URL.  This option is heavily used
by instrument experts who want to automatically retrieve data
products for automatic analysis.

Various parameters can be specified in the command line to define
the level of data products that is requested by the user. It can
return a single file or a conjunction of files in a tar format.
The Product Server also allows an XML file as input in order to
specify a more complex data products request.

An example of an AIO session in Socket Mode is given in
Figure~\ref{D3:AIOSocket}.

\begin{figure}
\epsscale{0.6} \plotone{D3_2.eps} \caption{AIO run in Socket Mode}
\label{D3:AIOSocket}
\end{figure}

\section{VO Compatible Services}
The ISO and XMM-Newton AIO systems have then been adapted to
support the VO standard SIAP (Simple Image Access Protocol) which
basically supports two modes, image query and image retrieval.

Details about the adaptation of the existing AIO system to the VO
standards can be found in Osuna et al. (2004).

\subsection{SIAP Image Query}
The SIAP defines various types of searches like cone search,
target search based on some already defined UCDs. The results of
such search can be in HTML or TEXT for human visualization but
also in VOTable (the standard VO format) for easier parsing and
later use into a VO client (e.g. Aladin). These SIAP Image Queries
re-use the existing search mechanisms already present in the ISO
Data Archive and XMM-Newton Science Archive. An example of the
SIAP cone search for XMM-Newton is given in
Figure~\ref{D3:SIAPConeSearch}.

\begin{figure}
\epsscale{0.6} \plotone{D3_3.eps} \caption{XMM-Newton SIAP Cone
Search, HTML and VOTABLE results} \label{D3:SIAPConeSearch}
\end{figure}


\subsection{SIAP Image Retrieval}
The AIO SIAP Image Retrieval is using the standard AIO product
server in a URL mode to pipe directly the standard data products
to the requesting client. The default data products to be returned
correspond to the highest level of automatically processed
products.


\section{Conclusions}
The ISO Data Archive and XMM-Newton Science Archive offer flexible
and powerful Inter-Operability services which allow to access
directly archive metadata and data products.

These services are already compliant to the recent VO standard
Simple Image Access Protocol and we have as well adapted them to
support Simple Spectra Access by using similar mechanism.

These services are already widely used by ESA instrument experts
and by external archives and applications and we foresee a more
extensive use in the coming era of the Virtual Observatory and
inter-operable archives.


\acknowledgements

The authors would like to acknowledge the rest of the ESA RSSD
VILSPA Archive Development Team who have participated in the IDA
and XSA development : John Dowson, Jose Hernandez, Inaki Ortiz,
Guillermo San Miguel and Vrata Venet as well as the ISO and
XMM-Newton Archive Scientists, Alberto Salama and Matteo
Guainazzi.

\begin{references}
\reference Arviset, C.\, 2003, \adassxii, \adassref{xii:O10-6}{47}
\reference Osuna, P.\, 2004, \adassxiii, \paperref{P2-3}
\end{references}


\end{document}
