You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
--
-------------------------
Phil Evans,
Swift Development Scientist
X-ray and Observational Astronomy Group,
University of Leicester
Tel: +44 (0)116 252 5059
Mobile: +44 (0)7780 980240 (work)
Mobile: +44 (0)7974 977723 (personal)
pae9@leicester.ac.uk
http://www.star.le.ac.uk/~pae9http://www.swift.ac.uk
Follow me as a Swift scientist on Twitter: @swift_phil
http://www.star.le.ac.uk/~pae9/twitter
Activity
DrPhilEvans commentedon Mar 10, 2017