Skip to content

Won't read gzipped FITS files #27

Open

Description

@DrPhilEvans

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.

Activity

  1. DrPhilEvans commented on Mar 10, 2017

    @DrPhilEvans
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions