Top Banner
Manipulating VOTables with TOPCAT and STILTS Tom McGlynn
24

Manipulating VOTables with TOPCAT and STILTS Tom McGlynn.

Mar 27, 2015

Download

Documents

Emily Simpson
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Manipulating VOTables with TOPCAT and STILTS Tom McGlynn.

Manipulating VOTables with TOPCAT and STILTS

Tom McGlynn

Page 2: Manipulating VOTables with TOPCAT and STILTS Tom McGlynn.

What are TOPCAT and STILTS?

• STILTS is a powerful library that enables users to filter and convert tables in VOTable and other popular formats.

• TOPCAT is a user interface built on top of STILTS with extensive GUI and graphics capabilities.

• All written by Mark Taylor (Bristol University/UK) originally as part of the Starlink project.

• This demo uses TOPCAT but the underlying functionality is available through the STILTS library (in Java).

• There are some other standalone commands built on STILTS (e.g., votcopy).

• There is a TOPCAT chapter in the NVO book.

Page 3: Manipulating VOTables with TOPCAT and STILTS Tom McGlynn.

Starting TOPCAT

• In the standard distribution as command ‘topcat’

• Note capabilities to download data from various VO and other data sources.

• Remember to run setup first!• Files used in this presentation:

Download these (Twiki doesn’t let TOPCAT read them directly)– http://nvo-twiki.stsci.edu/twiki/pub/Main/NVOSS2008Sched/spocs.csv– http://nvo-twiki.stsci.edu/twiki/pub/Main/NVOSS2008Sched/spocs.xml– http://nvo-twiki.stsci.edu/twiki/pub/Main/NVOSS2008Sched/exostars.xmlThis URL can be used directly– http://heasarc.gsfc.nasa.gov/cgi-bin/W3Browse/getvotable.pl?name=messier

Page 4: Manipulating VOTables with TOPCAT and STILTS Tom McGlynn.

Starting and loading a URL

Page 5: Manipulating VOTables with TOPCAT and STILTS Tom McGlynn.

Table loaded successfully

Page 6: Manipulating VOTables with TOPCAT and STILTS Tom McGlynn.

Getting to and from VOTables

• Converting to VOTables from CSVLoad spocs.csv (available on Twiki)Save as spocs.xml (VOTable)

Can covert into many formats.• Converting VOTables to CSV

Load http://heasarc.gsfc.nasa.gov/cgi-bin/W3Browse/getvotable.pl?name=messier

Save as CSV

Portal tools may work better in handling data in non-standard formats.

Page 7: Manipulating VOTables with TOPCAT and STILTS Tom McGlynn.

Convert to a CSV file

Page 8: Manipulating VOTables with TOPCAT and STILTS Tom McGlynn.

After loading CSV convert to VOTable

Page 9: Manipulating VOTables with TOPCAT and STILTS Tom McGlynn.

The table browser

Page 10: Manipulating VOTables with TOPCAT and STILTS Tom McGlynn.

Filtering data using TOPCAT

• Show SPOCS table (view/tabledata)• Create a subset (view/row subsets/+)

– Enter name=Sunlike– Enter criterion Teff>5720 && Teff<5820 &&

log_g>4.34 && log_g<4.54 && M_H>-0.1 && M_H <0.1

– Should create subset with ~30 rows.– Show with Views/Table data/Apply Subset/Sunlike

• We can use column names or $number.• A sample can be saved in any of the supported

formats.

Page 11: Manipulating VOTables with TOPCAT and STILTS Tom McGlynn.

Creating a subset

Page 12: Manipulating VOTables with TOPCAT and STILTS Tom McGlynn.

Histograms

• Click on histogram– Note which subsets are showing and click

on all– Change column to VMAG– Note both all and sunlike data.

Page 13: Manipulating VOTables with TOPCAT and STILTS Tom McGlynn.

Histograms

Page 14: Manipulating VOTables with TOPCAT and STILTS Tom McGlynn.

Plots

• X/Y display– Ensure that full sample is shown.– Change parameters to Teff/Age– Zoom around sun location– Create new sample from plot (third box

from right)– Note region selection tool (fourth from right)

Page 15: Manipulating VOTables with TOPCAT and STILTS Tom McGlynn.

X-Y plots

Page 16: Manipulating VOTables with TOPCAT and STILTS Tom McGlynn.

Creating a subset graphically

Page 17: Manipulating VOTables with TOPCAT and STILTS Tom McGlynn.

3-D Graphics/Synthetic columns

• 3-d displays (change third axis to something interesting in box)

• Creating new columns: column metadata/+– Name = AppMag– Expr = Vmag – 5*log10(Dist/10) [note striping

error]– Note function browser– New columns can be used anywhere and

show up on output

Page 18: Manipulating VOTables with TOPCAT and STILTS Tom McGlynn.

3-D plots

Page 19: Manipulating VOTables with TOPCAT and STILTS Tom McGlynn.

Creating a new column

Page 20: Manipulating VOTables with TOPCAT and STILTS Tom McGlynn.

Correlations using TOPCAT

• Load– SPOCS table– EXOStars table

• Click on double match• Cross-correlate by position:

– Find all the SPOCS stars that have exoplanets

Page 21: Manipulating VOTables with TOPCAT and STILTS Tom McGlynn.

Cross-correlations

Page 22: Manipulating VOTables with TOPCAT and STILTS Tom McGlynn.

Viewing the correlation

Page 23: Manipulating VOTables with TOPCAT and STILTS Tom McGlynn.

Saving the correlated data.

Page 24: Manipulating VOTables with TOPCAT and STILTS Tom McGlynn.

Many more capabilities

• Direct access to VO enabled services• Density plots• Column data conversions• Hundreds of functions usable in creating

columns• PLASTIC/SAMP communication with other tasks• Joining tables• Stacked plots or spherical plots• Table statistics• …