14
GLORIA is funded by the European Union 7th Framework Programme (FP7/2007-2013) under grant agreement n° 283783 Web components and documentation for programming off-line experiments CODE: DEL-034 VERSION: 01 DATE: October 22 nd , 2012

Web components and documentation for programming off …...DEL-034 01 October 22nd, 2012 Web components and documentation for programming off-line experiments 3.2. Open Table/FITS

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Web components and documentation for programming off …...DEL-034 01 October 22nd, 2012 Web components and documentation for programming off-line experiments 3.2. Open Table/FITS

GLORIA is funded by the European Union 7th Framework Programme

(FP7/2007-2013) under grant agreement n° 283783

Web components and documentation for programming off-line experiments

CODE: DEL-034

VERSION: 01

DATE: October 22nd, 2012

Page 2: Web components and documentation for programming off …...DEL-034 01 October 22nd, 2012 Web components and documentation for programming off-line experiments 3.2. Open Table/FITS

Authors: Chris LINTOTT (UOXF)Robert SIMPSON (UOXF)Aleksander Filip ZARNECKI (UNIWARSAW)

Collaborators: Lech MANKIEWICZ (UNIWARSAW)

Revised by: Fernando IBÁÑEZ (UPM)

Approved by: Robert SIMPSON (UOXF)

Distribution List:

Name Affiliation Date

Chris LINTOTT UOXF October 22nd, 2012

Robert SIMPSON UOXF October 22nd, 2012

Aleksander Filip ZARNECKI UNIWARSAW October 22nd, 2012

Lech MANKIEWICZ UNIWARSAW October 22nd, 2012

Fernando IBÁÑEZ UPM October 22nd, 2012

Page 3: Web components and documentation for programming off …...DEL-034 01 October 22nd, 2012 Web components and documentation for programming off-line experiments 3.2. Open Table/FITS

DEL-034 01 October 22nd, 2012 Web components and documentation for programming off-line experiments

Change Control

Issue Date Section Page Change Description

01 22/10/2012 All All Creation

Reference Documents

Nº Document Name Code Version

R.1 D8.1-Web components and documentation for programming on-line experiments

DEL-033 01

R.2 D8.3-Web components and documentation for preparing community-wide experiments

DEL-039 01

R.3 D7.7-Demonstrator DEL-044 01

R.4 D3.11-Report for standard methodology for offline experimentation and the choice of the off-line experiments

DEL-024 01

http://gloria-project.eu 3/14

Page 4: Web components and documentation for programming off …...DEL-034 01 October 22nd, 2012 Web components and documentation for programming off-line experiments 3.2. Open Table/FITS

DEL-034 01 October 22nd, 2012 Web components and documentation for programming off-line experiments

Index1. Introduction...............................................................................................................................................................62. Offline Experiments..................................................................................................................................................63. Example Offline Experiments..................................................................................................................................6

3.1. Open FITS File and Search Region in GLORIA database..............................................................................63.1.1. Steps taken by user:.................................................................................................................................63.1.2. Web components required:.......................................................................................................................6

3.2. Open Table/FITS File and Search Region in Astronomical Literature............................................................73.2.1. Steps taken by user:.................................................................................................................................73.2.2. Web components required:.......................................................................................................................7

3.3. Obtain Known Spectral Energy Distributions.................................................................................................73.3.1. Steps taken by user:.................................................................................................................................73.3.2. Web components required:.......................................................................................................................7

3.4. Coordinate Conversion.....................................................................................................................................73.4.1. Steps taken by user:.................................................................................................................................73.4.2. Web components required:.......................................................................................................................7

3.5. Light Curve Analysis (see also Deliverable 3.11)............................................................................................73.5.1. Steps taken by user:.................................................................................................................................83.5.2. Web components required:.......................................................................................................................8

4. Web Components Under Development....................................................................................................................84.1. Coordinate Conversion.....................................................................................................................................84.2. Flora: FITS in a Web Browser.......................................................................................................................104.3. IVO Standards in Action: Spectral Energy Distribution................................................................................104.4. SIMBAD Search and Display........................................................................................................................124.5. Live All-Sky Data...........................................................................................................................................12

5. Current Status..........................................................................................................................................................13

Figures IndexFigure 1: Coordinate Conversion Component Screenshot...........................................................................................8Figure 2: Coordinate Conversion Component Screenshot...........................................................................................9Figure 3: Coordinate Conversion Component Screenshot...........................................................................................9Figure 4: SED Tool Screenshot..................................................................................................................................10Figure 5: SED Tool Screenshot...................................................................................................................................11Figure 6: SED Tool Screenshot...................................................................................................................................11Figure 7: SIMBAD Search in Javascript on the Milky Way Project..........................................................................12Figure 8: Screenshot of the Experimental ‘Zooniverse Live’....................................................................................13

http://gloria-project.eu 4/14

Page 5: Web components and documentation for programming off …...DEL-034 01 October 22nd, 2012 Web components and documentation for programming off-line experiments 3.2. Open Table/FITS

DEL-034 01 October 22nd, 2012 Web components and documentation for programming off-line experiments

http://gloria-project.eu 5/14

Page 6: Web components and documentation for programming off …...DEL-034 01 October 22nd, 2012 Web components and documentation for programming off-line experiments 3.2. Open Table/FITS

DEL-034 01 October 22nd, 2012 Web components and documentation for programming off-line experiments

1. Introduction

This deliverable aims to describe our development of a suite of open-source tools, written in common web languages (HTML, CSS, Javascript) will provide the GLORIA community with a base from which to develop their own data collection and analysis tools. These tools will be deployed in ‘offline experiments’ - that is, projects for either scientific or educational purposes which do not involve the live control of a telescope through the GLORIA network. They might therefore involve archive data from GLORIA, data from other astronomical sources, or some combination of the two.

The tools outlined in section 2 of this document provide the necessary web components for offline experiments.These can be embedded as iFrame modules in GLORIA’s Liferay CMS or in many cases could be repurposed in Liferay’s native language: Java. Many of these components will be useful in several contexts, and details of online experiments and community experiments can be found in deliverables 8.1(R.1) and 8.3 (R.2) respectively.

In the following section we outline a list of possible offline experiments and the web components required to create them. We have explicitly taken a modular approach to development, producing tools which can be used in combination to make up experiment workflows.

2. Offline Experiments

Discussion within the collaboration has lead to the idea that there are two kinds of offline experiment. There are experiments conducted by users that simply do not require live telescope access (standard offline experiments) and there are ‘community experiments’ that use GLORIA data but in a crowdsourced, structured fashion, which are covered in Deliverable 8.3 (R.2).

Deliverables 7.7 (R.3) and 3.11 (R.4) discuss offline experiments and outline possible uses and methodology. Here we outline example offline experiments for education and research in astronomy.

3. Example Offline Experiments

An initial assessment of common workflows was carried out in order to identify those tools which should be high priority for the collaboration. In each case, steps normally carried out by a researcher (or, in principle, other user of the network) were recorded and a list of required web components extracted. Some simple examples are given below.

3.1. Open FITS File and Search Region in GLORIA database

FITS (Flexible Image Transport System) is a standard astronomical data format, used by the vast majority of professional observatories. The standard, explicitly designed for handling scientific data, incorporates substantial metadata as a human-readable ASCII header, and has the additional advantage of being explicitly backwards compatible. This means that tools built on the current FITS standard (3.0) will continue to be useful. Telescopes that are incorporated in the GLORIA network are expected to provide FITS files for processing (see deliverable 8.1). It is therefore essential that our browser-based tools can handle the widest possible variety of FITS files.

3.1.1. Steps taken by user:

• Upload/open table of coordinates or FITS image/table data.

• Search GLORIA network for observations of this region.

• Save index file of the results.

3.1.2. Web components required:

• Read in FITS image/table

• Search GLORIA database

• Save results file

http://gloria-project.eu 6/14

Page 7: Web components and documentation for programming off …...DEL-034 01 October 22nd, 2012 Web components and documentation for programming off-line experiments 3.2. Open Table/FITS

DEL-034 01 October 22nd, 2012 Web components and documentation for programming off-line experiments

3.2. Open Table/FITS File and Search Region in Astronomical Literature

3.2.1. Steps taken by user:

• Upload/open table of coordinates or FITS image/table data.

• View file and search region on SIMBAD to find objects highlighted in prior studies of this region.

• Save index file of the results

3.2.2. Web components required:

• Read in FITS image/table

• Search SIMBAD

• Save results file

3.3. Obtain Known Spectral Energy Distributions

As well as viewing images and data, users will want to investigate unusual objects by constructing SEDs (typically plotted as luminosity vs wavelength). This will require a search of astronomical databases external to the GLORIA system. It should also be noted that this use case is particularly suitable for combining with online experiments where GLORIA data is used to provide data points for the SED.

3.3.1. Steps taken by user:

• Create SEDs for all known objects near given coordinates

• Save selected SEDs as data file.

3.3.2. Web components required:

• Search International Virtual Observatory (IVO) database by coordinates

• Construct SEDs

• Save results file

3.4. Coordinate Conversion

Conversion between sky (right ascension and declination) and galactic (latitude and longitude) coordinates will be essential in comparing GLORIA data with other catalogues.

3.4.1. Steps taken by user:

• Upload list of coordinates or input coordinates.

• Convert from one coordinate system to another.

3.4.2. Web components required:

• Coordinate converter

3.5. Light Curve Analysis (see also R.4)

A common use for robotic telescopes such as those in the GLORIA network is the rapid response to transient events. A key advantage of GLORIA is its global nature allowing a consistent set of measurements (a ‘lightcurve’) of brightness with time to be made. Thus lightcurve analysis is a key goal for GLORIA.

http://gloria-project.eu 7/14

Page 8: Web components and documentation for programming off …...DEL-034 01 October 22nd, 2012 Web components and documentation for programming off-line experiments 3.2. Open Table/FITS

DEL-034 01 October 22nd, 2012 Web components and documentation for programming off-line experiments

3.5.1. Steps taken by user:

• Read in lightcurve data

• Save statistical properties of lightcurve for future reference.

3.5.2. Web components required:

• File upload for light curve (FITS, CSV, text format)

• Light curve display

• Function/curve fitting and statistical analysis.

4. Web Components Under Development

The Liferay CMS allows the creation of iFrame modules. These iFrame modules can be hosted either on the same GLORIA servers by the collaboration - or on cheaper solutions such as Amazon S3 by users. They can be user-hosted and developed by members of the GLORIA network, as well as embedded within other sites. This gives them a clear advantage and a good compatibility with the GLORIA project’s ethos.

Much of this content is shared with Deliverable 8.1, as the web components for online and offline experiments are very similar.

4.1. Coordinate Conversion

As an example we have built a simple coordinate conversion tool as an iFrame module. This tool converts from Equatorial Coordinates (FK5) to Galactic Latitude and Longitude. Below you can see a set of screenshots showing this web component in action in the Liferay framework.

Figure 1: Coordinate Conversion Component Screenshot

http://gloria-project.eu 8/14

Page 9: Web components and documentation for programming off …...DEL-034 01 October 22nd, 2012 Web components and documentation for programming off-line experiments 3.2. Open Table/FITS

DEL-034 01 October 22nd, 2012 Web components and documentation for programming off-line experiments

Figure 2: Coordinate Conversion Component Screenshot

Figure 3: Coordinate Conversion Component Screenshot

It converts in either direction and all the code is open to the user. Using Javascript means using the users own CPU, and so the only burden of hosting in on delivering the content to the browser. This does not require a server and the code can be run locally or offline, once download is complete.

http://gloria-project.eu 9/14

Page 10: Web components and documentation for programming off …...DEL-034 01 October 22nd, 2012 Web components and documentation for programming off-line experiments 3.2. Open Table/FITS

DEL-034 01 October 22nd, 2012 Web components and documentation for programming off-line experiments

4.2. Flora: FITS in a Web Browser

Astronomers often use Flexible Image Transport System (FITS) files to store and share data. For GLORIA to truly be useful in astronomical research we need to be able to to read and manipulated FITS files, and these are the desired outputs from the GLORIA telescopes.

FITS can now be handled very well by the open source javascript library AstroJS (https://github.com/astrojs), within which we represent the leading the development group. Here (http://ubret.s3.amazonaws.com/dotastro4/index.html) you will find Flora, a project developed at .Astronomy 4 (http://dotastronomy.com), which uses AstroJS. The same techniques can be applied to any iFrame and as such we can support the use of FITS files in the browser within GLORIA.

Opening and viewing FITS files is possible, and in the future more advanced tasks such as aperture photometry.

4.3. IVO Standards in Action: Spectral Energy Distribution

The International Virtual Observatory (IVO) has developed a set of useful standards for the exploration of their data archives. Their Table Access Protocol (TAP) can be used to explore the databases defined in various centralised XML catalogues.

To explore how easily TAP can be utilised by GLORIA we developed a tool for creating Spectral Energy Distributions (SEDs) from just coordinates. The process involves querying several online catalogues for data at all available wavebands and returning the results as a collection of single SED charts, showing the energy profiles of objects within a predefined radius of those coordinates.

SED profiles are another essential tool for many astronomers. The prototype tool is available at http://ubret.s3.amazonaws.com/sed/index.html and screenshots of an example search are provided below.

Figure 4: SED Tool Screenshot

http://gloria-project.eu 10/14

Page 11: Web components and documentation for programming off …...DEL-034 01 October 22nd, 2012 Web components and documentation for programming off-line experiments 3.2. Open Table/FITS

DEL-034 01 October 22nd, 2012 Web components and documentation for programming off-line experiments

Figure 5: SED Tool Screenshot

Figure 6: SED Tool Screenshot

This example shows how IVO protocols can now be implemented in a web browser and hence within GLORIA. Such tools would normally require large amounts of processing power - which do not scale well when the network is experiencing heavy traffic. By offloading the processing to the user and to the cloud - in this case the various IVO data servers - the user experience is vastly improved and thus such utilities are possible.

http://gloria-project.eu 11/14

Page 12: Web components and documentation for programming off …...DEL-034 01 October 22nd, 2012 Web components and documentation for programming off-line experiments 3.2. Open Table/FITS

DEL-034 01 October 22nd, 2012 Web components and documentation for programming off-line experiments

4.4. SIMBAD Search and Display

We have created web browser tools for searching and displaying data from CDS’s SIMBAD service, an excellent repository of astronomical objects from the literature. For this web component, we decided to test the robustness of the implementation, which depends heavily on external APIs with the Zooniverse’s Milky Way Project (http://milkywayproject.org) as a testbed. The Milky Way Project has already been successful in attracting a large audience of citizen scientists engaged in research; this audience is a good match to that we would like to attract to GLORIA and this therefore represnets a chance for user interface testing as well as API evaluation.

Figure 7: SIMBAD Search in Javascript on the Milky Way Project

For this prototype we created a tool that displays any Milky Way Project data set (images from the Spitzer Galactic plane survey, GLIMPSE) for a given pair of coordinates. Users can explore the images and perform a SIMBAD search to see what objects have already been identified by the astronomical literature. In the example screenshots provided below, we show how a user who spots a possible galaxy in the field, can do a quick check that the object has not already been reported.

You can replicate this experience by visiting http://www.milkywayproject.org/tools/coordinates/307.9133750/-0.1662500/

The source code from this project can be easily deployed in GLORIA online and offline experiments, either as a standalone iFrame tool, or within a more complex component. SIMBAD (and eventually Vizier) search should become an important tool for GLORIA users interested in making discoveries and doing independent research.

4.5. Live All-Sky Data

A protoype tool has been built displaying live Zooniverse data on an exploreable all-sky image. It can be seen at http://live.zooniverse.org. The has been developed using the open source Chromoscope package (available at https://github.com/slowe/Chromoscope) and currently shows live positions of Galaxy Zoo and Planet Hunter’s classifications.

http://gloria-project.eu 12/14

Page 13: Web components and documentation for programming off …...DEL-034 01 October 22nd, 2012 Web components and documentation for programming off-line experiments 3.2. Open Table/FITS

DEL-034 01 October 22nd, 2012 Web components and documentation for programming off-line experiments

5. Current Status

The components described in the previous section all have functioning prototype versions either in use publicly or in beta (where URLs have been given). These need now to be converted into iFrame web components for use with GLORIA once the network is ready for them to be useful. As described earlier, these components don’t represent just one possible experiment each, but rather they been developed with flexibility in mind. Ultimately we plan to store and share their code in public repositories for the use of GLORIA users and the worldwide astronomical community.

The lightcurve experiment described in 2.2.5 represents our first deployable offline experiment. It is described further in R.4 and requires data from the Pi of the Sky observatory. At the GLORIA collaboration meeting in Málaga (October 2012) we secured access to this data and are now working on a working version of the procedures outlined.

http://gloria-project.eu 13/14

Page 14: Web components and documentation for programming off …...DEL-034 01 October 22nd, 2012 Web components and documentation for programming off-line experiments 3.2. Open Table/FITS

DEL-034 01 October 22nd, 2012 Web components and documentation for programming off-line experiments

GLORIA Partners

UPMUniversidad Politécnica de MadridSPAIN

AUAVAstronomical Institute, Academy of Sciences of the Czech RepublicCZECH REPUBLIC

CSICConsejo Superior de Investigaciones CientíficasSPAIN

INAT & CVUTCzech Technical University in PragueCZECH REPUBLIC

IP-ASCRInstitute of Physics of the Academy of Sciences of the Czech RepublicCZECH REPUBLIC

IACInstituto de Astrofísica de CanariasSPAIN

INAFIstituto Nazionale di AstrofisicaITALY

SAOSpecial Astrophysical Observatory of Russian Academy of SciencesRUSSIA

UCDNUIDUniversity College DublinIRELAND

UCUniversity of ChileCHILE

UMAUniversity of MálagaSPAIN

UOXFUniversity of OxfordUNITED KINGDOM

UNIWARSAWUniwersytet Warszawski POLAND

http://gloria-project.eu 14/14