| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
| 3 |
"http://www.w3.org/TR/html4/loose.dtd"> |
| 4 |
<html xmlns:n='http://nevow.com/ns/nevow/0.1' |
| 5 |
xmlns="http://www.w3.org/1999/xhtml"> |
| 6 |
<head n:render="commonhead"> |
| 7 |
<link rel="author" href="http://www.g-vo.org"/> |
| 8 |
<link rel="license" href="http://creativecommons.org/publicdomain/zero/1.0/"/> |
| 9 |
<title n:render="prependsite"> Site Help</title> |
| 10 |
</head> |
| 11 |
<body n:render="withsidebar"> |
| 12 |
<h1 n:render="prependsite"> Site Help</h1> |
| 13 |
<p>This document is intended to help you discover the web interface |
| 14 |
features on the <span n:render="prependsite"/>. Note that the site also |
| 15 |
offers <a href="http://www.ivoa.net/">VO</a>-enabled services. See, |
| 16 |
for example <a href="http://www.g-vo.org/pmwiki/About/GettingStarted">Getting |
| 17 |
Started on GAVO's web page</a> for more information on how to use them.</p> |
| 18 |
|
| 19 |
<p>Though most of the services should work even in text-based browsers, we |
| 20 |
recommend a web browser with CSS and Javascript enabled to access the |
| 21 |
web-based services.</p> |
| 22 |
|
| 23 |
<h2>Service discovery</h2> |
| 24 |
|
| 25 |
<p>The <a href="/" n:render="rootlink">index page</a> lists published |
| 26 |
services available through web browsers. A "[P]" in the service |
| 27 |
listing means that the service is password protected, either because it is |
| 28 |
too rough for public consumption or because the data providers want |
| 29 |
exclusive access. In either case, you can contact |
| 30 |
<a> |
| 31 |
<n:attr name="href">mailto:<n:invisible n:render="meta">contact.email</n:invisible></n:attr>the site operators</a> to inquire |
| 32 |
about access.</p> |
| 33 |
|
| 34 |
<p>In addition to web-based services, the data center also |
| 35 |
provides services accessible through IVOA standard protocols like SIAP (for |
| 36 |
images), SCS (allowing simple queries against catalogs of astronomical |
| 37 |
objects), SSAP (for spectra), and TAP (allowing complex queries against |
| 38 |
database tables of all sorts). |
| 39 |
These can be located through Virtual Observatory registry interface |
| 40 |
(e.g., <a href="http://dc.g-vo.org/WIRR">WIRR</a>) or |
| 41 |
<a href="http://www.g-vo.org/www/External/Tools">common VO tools</a>.</p> |
| 42 |
|
| 43 |
<h2>Search forms</h2> |
| 44 |
|
| 45 |
<h3>Query Fields</h3> |
| 46 |
|
| 47 |
<p>Services not using customised interfaces have standard query forms. These |
| 48 |
consist of a series of input fields that either take</p> |
| 49 |
<ul> |
| 50 |
<li>numeric expressions – you can recognize those from the little "[?num. expr.]" tag |
| 51 |
behind them. In addition to raw numbers, you can enter <a href="/static/help_vizier.shtml#floats" n:render="rootlink">Vizier-like numeric expressions</a> here.</li> |
| 52 |
<li>string expressions – these have a little "[?char expr.]" tag and |
| 53 |
by default match using patterns, evaluating metacharacters like * or ? |
| 54 |
much like you may know from file name patterns. To force literal matching, |
| 55 |
prepend your strings with ==. <a href="/static/help_vizier.shtml#strings" n:render="rootlink">Other operators available for string expressions</a> include |
| 56 |
caseless matching, string comparisons, or negation.</li> |
| 57 |
<li>date expressions – these are marked with "[?date expr.]" tags. Dates must |
| 58 |
be given in one of the VO's preferred ISO formats (YYYY-MM-DD or |
| 59 |
YYYY-MM-DDTHH:MM:SS). Among the more useful of the |
| 60 |
<a href="/static/help_vizier.shtml#dates" n:render="rootlink">supported operators</a> |
| 61 |
is the range – you can say 2004-01-02 .. 2005-05-01 to specify a range of |
| 62 |
dates between Jan 2nd, 2004 and May 1st, 2005; also note that dates without |
| 63 |
times (or datetimes with hour, minute, and second all 0) are sometimes treated |
| 64 |
specially (e.g., a simple comparison is expanded into a between) to match the |
| 65 |
behaviour of the backend database with the presumed user intention.</li> |
| 66 |
<li>Selection boxes – these are either drop down, in which case you can only |
| 67 |
select one entry, or open boxes you can select more than one entry in, |
| 68 |
usually (depending on your user interface) using control-click.</li> |
| 69 |
<li>Others – application-specific input fields (like, e.g., cone searches) |
| 70 |
should come with a short explanation.</li> |
| 71 |
</ul> |
| 72 |
|
| 73 |
<h3>Query Modifiers</h3> |
| 74 |
|
| 75 |
<p>In most forms, you will have a "Table" query field near the bottom of the |
| 76 |
form. You can set sorting and limit options there. Note that depending on the |
| 77 |
query, selecting a column to sort on may slow down the answer dramatically. |
| 78 |
This is because your query may match large amounts of data, and even if only |
| 79 |
100 items are returned, potentially millions of them may have to be sorted.</p> |
| 80 |
|
| 81 |
<p>On the other hand, results overflowing the match limit are not reproducible |
| 82 |
without a sort option, i.e., you may get a different set of, say, 100 items for |
| 83 |
identical query parameters at two different times. The services |
| 84 |
warn you about this fact when they return truncated results.</p> |
| 85 |
|
| 86 |
<p>You can usually select an output format. |
| 87 |
<a name="outformats">Options here include</a></p> |
| 88 |
<ul> |
| 89 |
<li>HTML – data is returned in your web browser. You can select additional |
| 90 |
columns in your output from an input field that pops down when you mouse over |
| 91 |
it.</li> |
| 92 |
<li>VOTable – data is returned in IVOA's standard data format, the VOTable. |
| 93 |
This is XML that can be human-readable but is really intended to be consumed |
| 94 |
by tools like <a href="http://www.star.bris.ac.uk/~mbt/topcat/">TOPCAT</a>. |
| 95 |
You can select a "verbosity" specifying the fields present in the output, with |
| 96 |
1 standing for a minimal set of information, 2 for what the service author |
| 97 |
deemed useful for the average astronomer, 3 for (almost) all fields |
| 98 |
available, and finally H for (essentially) what the default HTML table gives. |
| 99 |
Furthermore, you can choose between a "human-readable" VOTable |
| 100 |
(select this to process your data with standard XML or text-based |
| 101 |
tools or peruse it with the naked eye) and a binary version that you |
| 102 |
should use for larger data sets since it is much more efficient.</li> |
| 103 |
<li>FITS – this returns FITS tables. The data is in the first |
| 104 |
extension. This contains a good deal less meta information than a VOTable of the |
| 105 |
same data and thus should only be used if your backend tools do not understand |
| 106 |
VOTables or if the ability to memory-map the data contents matters in |
| 107 |
your application.</li> |
| 108 |
<li>TSV – tab separated files. If in a desperate pinch, you can get the |
| 109 |
table contents as an ASCII file. The fields a separated by tabs. All metadata |
| 110 |
is lost. Nullvalues are (almost) always rendered as the string "None". |
| 111 |
Strings containing non-ascii |
| 112 |
or control characters are rendered with C escapes (\n, \t, etc) or sedecimal |
| 113 |
unicode codepoints (\xe4, e.g., is an ä). As I said: Don't use this |
| 114 |
unless you absolutely have to.</li> |
| 115 |
<li>CSV – comma separated values. This format carries almost no |
| 116 |
metadata as well, but it is understood by may database programs, spreadsheets, |
| 117 |
etc (note: don't use Excel to process astronomical data. |
| 118 |
<a href="http://www.star.bris.ac.uk/~mbt/topcat/">TOPCAT</a> is so |
| 119 |
much nicer, and it has built-in VO support). Null values are mostly |
| 120 |
rendered as empty fields, but float NULLs are NaNs.</li> |
| 121 |
<li>JSON – the JSON returned by DaCHS mimics the VOTable in structure |
| 122 |
and contains relatively rich metadata. Use this if you want to process |
| 123 |
query results with Javascript or in environments that do not understand |
| 124 |
VOTable.</li> |
| 125 |
<li>tar – if the service contains "products" (usually FITS files of some |
| 126 |
kind), you can download all matching items in a tar file.</li> |
| 127 |
</ul> |
| 128 |
|
| 129 |
<p>Next to the output format selection, there are two links. The one labeled |
| 130 |
"[Result link]" reflects your current query as a copyable URL. You could use |
| 131 |
this to send a query result to colleagues, but it is particularly useful with |
| 132 |
the VOTable output format – you can drag and drop that link into TOPCAT's |
| 133 |
"Open" dialogue, for example.</p> |
| 134 |
|
| 135 |
<p>The star (<img src="/static/img/bookmark.png"/>) lets you |
| 136 |
bookmark the current form – it is basically like the result link but |
| 137 |
doesn't actually perform the query. This should come in handy to store |
| 138 |
and communicate preset queries. Note that for split-up fields (e.g., date |
| 139 |
inputs with year, month and day) you need to enter all pieces of information |
| 140 |
for this to work.</p> |
| 141 |
|
| 142 |
<p>Both the result and the bookmark links require Javascript to work.</p> |
| 143 |
|
| 144 |
<h3>The Sidebar</h3> |
| 145 |
|
| 146 |
<p>The sidebar on form and result pages contains ancillary information for the |
| 147 |
resource the data comes from. To save space, the individual items are |
| 148 |
"folded in" by default. Mouse over them to see the full entries.</p> |
| 149 |
|
| 150 |
<p>The "Created" metadata item shown refers to the creation of the resource |
| 151 |
descriptor, i.e., is related to the service rather than the data. The "Data |
| 152 |
updated" item gives the date of the last "import" of a piece of the data. |
| 153 |
Unless a service supports online modification, it can be used as an indicator |
| 154 |
of the version of the underlying data.</p> |
| 155 |
|
| 156 |
|
| 157 |
<h2>Timeouts</h2> |
| 158 |
|
| 159 |
<p>With ADQL, it is not hard to construct queries that will run for days or |
| 160 |
weeks, and even normal web-based queries can select so much data that excessive |
| 161 |
runtimes and possibly huge data volumes result. Usually, this is not intended |
| 162 |
by the users, and thus by default relatively short timeouts are imposed on the |
| 163 |
run time of the queries on the server (of the order 10 seconds).</p> |
| 164 |
|
| 165 |
<p>You can usually increase the timeout by generating a link to your query |
| 166 |
(see "Result link" above) and appending <tt>"&_TIMEOUT=100</tt> (or whatever |
| 167 |
number of seconds suits you) to the URL. The ADQL form has an input field |
| 168 |
that does just this.</p> |
| 169 |
|
| 170 |
<p>However, usually long-running queries indicate that we should be adding |
| 171 |
some index to our tables. Thus, please contact us with your queries and |
| 172 |
we will try to speed them up.</p> |
| 173 |
|
| 174 |
|
| 175 |
<h2>Login and Logout</h2> |
| 176 |
|
| 177 |
<p>In the sidebar, you will usually see a login item. You should normally |
| 178 |
not need to be concerned with this, since protected services will query your |
| 179 |
credentials as needed. You may want to log out, though; if you click on |
| 180 |
the "log out <user>" link, a login mask will pop up. Leave the |
| 181 |
username blank and click OK to log out. If you click Cancel (or equivalent), |
| 182 |
<em>you will remain logged in</em>. This slight weirdness is inevitable when |
| 183 |
using HTTP authentication with current browsers.</p> |
| 184 |
|
| 185 |
<p>There is one situation in which you will want to log in: Access to protected |
| 186 |
products from open services. You will note that in such cases, the system |
| 187 |
will deny access to the protected products without asking your credentials. |
| 188 |
If you can provide those, log in and try again.</p> |
| 189 |
|
| 190 |
<p>To obtain usernames and passwords, contact |
| 191 |
<n:invisible n:render="meta">contact.email</n:invisible>.</p> |
| 192 |
|
| 193 |
|
| 194 |
<h2>Software availability</h2> |
| 195 |
|
| 196 |
<p>The software driving this site is available for download and |
| 197 |
inspection. For details see the |
| 198 |
<a href="http://soft.g-vo.org/dachs">DaCHS info page</a>. All our |
| 199 |
code is released under the GPL.</p> |
| 200 |
|
| 201 |
<h2>Acknowledgements</h2> |
| 202 |
|
| 203 |
<p>This software uses services provided by the Centre de Données astronomiques de Strasbourg, France.</p> |
| 204 |
|
| 205 |
<p>Some of the services use q3c indexing by Sergey Koposov and Oleg Bartunov, |
| 206 |
see <a href="http://lnfm1.sai.msu.ru/~math/docs/adass_proceedings2005.pdf">2006ASPC..351..735K</a>.</p> |
| 207 |
|
| 208 |
</body> |
| 209 |
</html> |