FIREFLY-461: add VO resources to Firefly table.#946
Conversation
- allow resources and links to be injected via API
|
Nice one!! I'm happy to see this coming soon. |
|
Also, i'm not sure if the table saved is ok in terms of link resources, the header looks like: |
What did you use to validate the file? |
This is existing code. I've only added the ability to inject links from the API. The saved links in the VOTABLE looks okay. Did validation failed? If so, which validator did you use. |
|
I used 'volint' tool from astropy-utils. |
I am not familiar with this tool. I use an online XML validator and it validates okay. |
|
ok. |
|
For reference, STIL VOLINT doc is here: http://www.star.bris.ac.uk/~mbt/stilts/sun256/votlint.html |
|
From VOTable 1.4: "Reference [3] contains the recommended rules for writing string representations of the unit strings, called VOUnits." So this is SHOULD, not a SHALL, and anyway the However, if this is just a demo table that we created internally, we might as well make sure that it's more conformant to the spirit of VOUnit. |
|
No, no cleanup expected. It's fine. My point was that we could argue that Firefly 'should' export validated VOTable, within what validated table means. If warning are accepted, then fine. If we are strict, we would have to look into how to validate exported data. My. question is: do we need to make sure that the injected link from API gets added to the VOTable header accordingly? |
I answered it earlier. The links look good when saved as votable. |
There was a problem hiding this comment.
Code looks good. I think I found an issue parsing out the complete resource. I will attach the xml file that I am referencing to the ticket.
If you look at the resource snippet below, it is resouce -> groups -> param[3], it turns into
filterable: false
UCD: "obs.field"
name: "CIRCLE"
arraySize: "3"
units: "deg"
sortable: false
type: "double"I don't see an xtype but I am not sure that matters. The real issue is I don't see a values object.
I would think it would look something like.
.... edited out stuff ....
type: "double"
values: {
MAX: [10.685001466285922, 41.25363121467171, 0.7002317445980466]
} <RESOURCE type="meta" ID="soda-c3e4baa9-9b7b-491a-8129-c54e7e82cf56" utype="adhoc:service">
<PARAM name="resourceIdentifier" datatype="char" arraysize="26" value="ivo://cadc.nrc.ca/caom2ops" />
<PARAM name="standardID" datatype="char" arraysize="32" value="ivo://ivoa.net/std/SODA#sync-1.0" />
<PARAM name="accessURL" datatype="char" arraysize="58" value="https://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/caom2ops/sync" />
<GROUP name="inputParams">
<PARAM name="ID" datatype="char" arraysize="24" ucd="meta.id;meta.dataset" value="ad:CFHT/1250312o.fits.fz" />
<PARAM name="RUNID" datatype="char" arraysize="16" ucd="" value="i9it86ymxfdlhqd0" />
<PARAM name="POS" datatype="char" arraysize="*" ucd="obs.field" value="" />
<PARAM name="CIRCLE" datatype="double" arraysize="3" ucd="obs.field" unit="deg" xtype="circle" value="">
<VALUES>
<MAX value="10.685001466285922 41.25363121467171 0.7002317445980466" />
</VALUES>
</PARAM>
<PARAM name="POLYGON" datatype="double" arraysize="*" ucd="obs.field" unit="deg" xtype="polygon" value="">
<VALUES>
<MAX value="11.335862813772264 40.75492965204083 10.038755258824418 40.75155222459407 10.024294607387546 41.7494483393487 11.33998146387876 41.752588171618264" />
</VALUES>
</PARAM>
</GROUP>
</RESOURCE>
|
@robyww |
https://jira.ipac.caltech.edu/browse/FIREFLY-461
Add VO resources into Firefly table. Because we are flatten the VOTABLE hierarchy, this information will be lost when the table is exported or saved to disk.
Also:
To test: https://irsawebdev9.ipac.caltech.edu/FIREFLY-461_table_resources/firefly/
You should see it at the upload summary as well as when you load that table.
https://irsawebdev9.ipac.caltech.edu/FIREFLY-461_table_resources/firefly/test/tests-table.html