question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reading (a particular type of) votables gives error

See original GitHub issue

Here is an example votable I can’t read with astropy: http://vospace.esac.esa.int/vospace/sh/265c9a2292e138d1a5e11aaa742bb78a4c9ed6?dl=1 , but there are a lot of them of such kind. So, you can download the table, unpack (to get a *.vot file) and try to read:

astropy.table.Table.read('1475831383991O.vot', format='votable')
# gives OSError: Not a gzipped file (b'\r\n')

and trying another way:

astropy.io.votable.parse_single_table('1475831383991O.vot')
# same error

So, anyway to deal with this and open the table?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
astrofrogcommented, Oct 7, 2016

It looks like 1475831383991O.vot is actually a gzipped file?

$ mv 1475831383991O.vot 1475831383991O.vot.gz
$ gunzip 1475831383991O.vot.gz
$ $ head 1475831383991O.vot 
<VOTABLE version="1.3" xmlns="http://www.ivoa.net/xml/VOTable/v1.3">
<RESOURCE type="results">
<INFO name="QUERY_STATUS" value="OK"/>
<INFO name="ADQL_QUERY" value="select * from gaiadr1.variable_summary" />
<INFO name="CAPTION" value="If you use public Gaia DR1 data in your paper, please take note of our guide on how to acknowledge and cite Gaia DR1: http://gaia.esac.esa.int/documentation/GDR1/Miscellaneous/sec_credit_and_citation_instructions.html" />
<TABLE>
<FIELD datatype="long" name="solution_id" ucd="meta.id;meta.version">
<DESCRIPTION>solution_id</DESCRIPTION>
</FIELD>
<FIELD datatype="long" name="source_id" ucd="meta.id;meta.main">
...

If so, the extension is incorrect - I think? Or does the standard allow a VO table to be compressed like this?

0reactions
astrofrogcommented, Oct 31, 2016

I’m going to close this since this is not an Astropy issue, but @aplavin, it would be great if you could report this to the GAIA helpdesk. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

VOTable XML Handling (astropy.io.votable) — Astropy v5.2
If you want to read or write a single table in VOTable format, the recommended method is via the high-level Unified File Read/Write...
Read more >
Acts As Votable Get Upvotes Error - ruby on rails
Reading the docs, it looks like get_upvotes is a method on the acts_as_votable , not the acts_as_voter . I don't know much about...
Read more >
VO tables — ATpy 0.9.7 documentation - Read the Docs
When pedantic is True, raise an error when the file violates the VO Table specification, otherwise issue a warning. atpy.votable.write(self, filename, votype=' ...
Read more >
VOTable: Why, What and How? - IVOA
can store scalar/array numeric/character types in columns ... can use existing XML technology for VOTable manipulation ... How to Read VOTables. Write your ......
Read more >
5 common word reading errors and how to help
being read so you can give support in correcting reading mistakes. ... Each type of error will be labeled, and an example of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found