[Dachs-support] Linking TAP table to SSAP datalink

Markus Demleitner msdemlei at ari.uni-heidelberg.de
Thu Oct 15 09:10:11 CEST 2020


Dear Yannick,

On Wed, Oct 14, 2020 at 06:44:55PM +0200, Yannick Roehlly wrote:
> Now, I have another similar dataset, except that the spectra have
> an image format.  Thus, Topcat can't directly display them.
> 
> Is it possible to create a link to the SODA VO-table version of the
> spectra for each row in the same way I used `makeProductLink` with
> the product accref?

Umm -- are you asking if you can use the SODA-generated VOTable as
accref (i.e., as product URL)?  If so, there's a section in the
reference on exactly this:
http://docs.g-vo.org/DaCHS/ref.html#datalinks-as-product-urls

The main hitch is that you can't use path in the datalink descriptor
to get to the source file (because path holds the datalink URL).
There are a few examples in the ref doc on how to do that.  I ought
to update that a bit; lately, I've usually done that as in 
http://svn.ari.uni-heidelberg.de/svn/gavo/hdinputs/lamost5/q.rd,
around line 300: in your initial data function, just take the accref
(which I've mangled a bit in the lamost case, so I need to unmangle
it), slap the inputs dir in front and arrive at the source file path
in that way.

If you wonder why the built-in soda functions aren't doing things
this way already: It breaks when the data doesn't reside in the file
system but in database arrays (as for the Gaia light curves or the
DFBS spectra).

As usual, I'm grateful for any feedback as to how the text can be
made more understandable.

If you've asked for something else: could you give an example for
what you'd like things to look like in the end?

Thanks,

        Markus


More information about the Dachs-support mailing list