Skip to content

Cannot retrieve gzipped tables from CDS using astropy.table #6549

Description

@AstroMike

At CDS (some? all?) ASCII tables are now gzipped.

This causes problems with astropy. For example

from astropy.table import Table

t = Table.read("ftp://cdsarc.u-strasbg.fr/pub/cats/J/MNRAS/445/2677/table1.dat.gz",
                readme="ftp://cdsarc.u-strasbg.fr/pub/cats/J/MNRAS/445/2677/ReadMe",
                format="ascii.cds")
print(t)

gives the error
astropy.io.ascii.core.InconsistentTableError: Can't find table table1.dat.gz in ftp://cdsarc.u-strasbg.fr/pub/cats/J/MNRAS/445/2677/ReadMe

because the ReadMe
ReadMe.txt
says
"Byte-by-byte Description of file: table1.dat"
and not
"Byte-by-byte Description of file: table1.dat.gz"

Activity

  1. added 2 commits that reference this issue on Aug 8, 2025
    c00b79e
    6f7b62a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions