Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.adass.org/adass/proceedings/adass02/reprints/P3-2.pdf
Дата изменения: Wed Mar 12 01:45:32 2003
Дата индексирования: Tue Oct 2 09:48:36 2012
Кодировка:

Поисковые слова: reflection nebula
Astronomical Data Analysis Software and Systems XII ASP Conference Series, Vol. 295, 2003 H. E. Payne, R. I. Jedrzejewski, and R. N. Hook, eds.

An Interactive Java Plotting Package for Astronomy
A. Zhang, J. C. Good, G. B. Berriman Infrared Processing and Analysis Center, California Institute of Technology, Pasadena, CA 91125 Abstract. This paper describes the architecture and functionality of a general purpose two dimensional plotting package for astronomy-- QtPlot. It is a modification of an Open Source Java Plotting package, PtPlot, made available by the Ptolemy pro ject at the University of California. QtPlot supports ASCII and XML format. It is in operation at the Infrared Science Archive (IRSA) of the California Institute of Technology, and supports mission services and a key astronomical data fusion toolkit--OASIS.

1.

Introduction

The NASA/IPAC Infrared Science Archive (IRSA) has been developing a Java two dimensional plotting package for astronomy. The aim of the pro ject was to develop at modest cost a general package that could be deployed as an applet through the IRSA web page. The package is based on PtPlot, an open source interactive plotting package released by the Ptolemy pro ject at the University of California. This pro ject studies modeling, simulation, and design of concurrent, real-time, embedded systems; see the Ptolemy II Ptplot page.1 PtPlot is a Java application that supports ASCII, binary and basic eXtended Markup Language (XML) formats, and remote and local file access. IRSA has extended and adapted PtPlot to provide a rich suite of usercontrolled functions for modifying the appearance and attributes of plots, such as symbol, color, plot boundaries, data limits, plot annotations, etc. It supports interactive conversion between logarithmic and linear scales, as well as reversal of axes. This modified package, QtPlot, supports column delimited ASCII format tables (the so-called IPAC table format), but of greater importance is the fact that it supports XML structured for astronomical plot directives, underpinned by the eXtensible Data Format(XDF), a container for transporting scientific data. The XML support also supports plotting by reference to a path to a data file. QtPlot has been deployed operationally as an applet at IRSA, where it supports interactive plotting of spectra from the Submillimeter Wave Astronomical Satellite (SWAS), and light curves from the American Association of Variable Star Observers (AAVSO). It has also been integrated into the On-Line Archive
1

http://Ptolemy.eecs.berkeley.edu/java/ptplot5.2/ptolemy/plot/doc/index.htm

461 c Copyright 2003 Astronomical Society of the Pacific. All rights reserved.


462

Zhang, Good & Berriman (OASIS), IRSA's primary data fusion toolkit, for ting support (e.g., plotting two columns of a table It can access local files or remote files, through directly called by a web application.

Science Information Service general two dimensional plot retrieved from a database). HTTP protocols, and can be 2.

Overview of the Functionality in QtPlot

The QtPlot package contains classes, applets, and applications for two dimensional graphical display of data. It can be used as an independent Java package, or it can be called by another Java package which manages passing arguments, controls input parameters, and handles opening or closing plots on the screen. Furthermore, QtPlot can graphically display data on web pages when deployed as a plug-in. While the plot symbol and color can be changed by clicking on the plot legend, users generally interact with the tool largely through menu-driven control panels, which provide control over the plot appearance and attributes, such as plot labels, plotting ranges, plot symbol and so on. Two of these menu-driven features are of special interest: (1) control of the plot type: linear, logarithmic, or histogram; (2) enable overplotting of additional data, such as additional spectra or light curves. 3. Data Format

Broadly speaking, QtPlot supports two formats: column delimited ASCII tables (IPAC table format), and XML. The IPAC table format is used throughout IRSA to return ASCII data to users and to allow users to upload data files to cross-compare them with IRSA's catalogs. Consequently, QtPlot naturally supports this format. Of wider interest is XML support. QtPlot utilizes the XDF,2 which supports transport of multiple n-dimensional tables and file attributes through references in the XML specification. The following is an example of the XML file that describes the display of the brown dwarf 2MASSI J0028394+150141 from Dr. Davy Kirkpatrick's Archive of L Dwarfs.3 2MASSI J0028394+150141 (L4.5 V) linear 6300 10200
2 3

http://xml.gsfc.nasa.gov/XDF/XDF_home.html http://spider.ipac.caltech.edu/staff/davy/ARCHIVE/index_l_spec.html


An Interactive Java Plotting Package for Astronomy

463

Figure 1. Rendering of the Spectrum of 2MASSI J0028394+150141; the plot interprets the directives given in the XML.
linear -0.1 4.5
XDF 0028p1501_ascii
wave flux black none 1% black


464

Zhang, Good & Berriman
Angstroms ergs/cm^2) s A

4. Conclusions and Future Work

This paper has presented an overview of QtPlot, a general astronomical plotting package that leverages the Open Source application QtPlot. The ma jor upgrade that will be made in an upcoming release will be to support larger data files by swapping data disk rather than loading all the data into memory, as is currently done. Acknowledgments. We are grateful to the Ptolemy pro ject for distribution of the PtPlot package.