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

Won't read gzipped FITS files #27

Open
DrPhilEvans opened this issue Mar 10, 2017 · 1 comment
Open

Won't read gzipped FITS files #27

DrPhilEvans opened this issue Mar 10, 2017 · 1 comment

Comments

@DrPhilEvans
Copy link

HI,
I was just testing trying this out for the first time, as I could use some FITS interface for javascript, and it fails to open a gzipped event list.

Code (using jquery):

$(document).ready(reset);
function reset()
{
  var url="/some/url/test.fits.gz";
  var FITS=astro.FITS;
  var fits=new FITS(url, loadedFits);
}

function loadedFits()
{
  console.log("This file has "+this.hdus.length+" HDUs");
}

If I unzip test.fits.gz and update the URL it works, otherwise the page hangs until my browser times out. It's not a very large fits file.

@DrPhilEvans
Copy link
Author

DrPhilEvans commented Mar 10, 2017 via email

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

1 participant