Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Header retrieval returns corrupted headers? #148

Open
mtbannister opened this issue Sep 17, 2020 · 2 comments
Open

Header retrieval returns corrupted headers? #148

mtbannister opened this issue Sep 17, 2020 · 2 comments

Comments

@mtbannister
Copy link

Using either
vcp --head vos:mtb55/MUSE-2I/Data/Reduced_SkyFrame/*.fits .
or

import vos
conn = vos.Client()
fn = 'vos:mtb55/MUSE-2I/Data/Reduced_SkyFrame/'
conn.copy(fn+conn.listdir(fn)[0], '.', head=True)

returns headers that are unable to be opened: they crash ds9 or are unreadable by astropy.io.fits. They can be opened in a plain text file, so there must be some small amount of modification occurring in the transfer process.

(The .fits files themselves are fine, as downloading the whole 2.7 GB .fits file produces a valid header.)

Is there a better way to get a valid header?

@ijiraq
Copy link
Collaborator

ijiraq commented Sep 17, 2020 via email

@mtbannister
Copy link
Author

Thanks, that resolved the immediate situation nicely.

I'll work on a pull request to vostools/vos/README.rst to improve the vcp documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants