[AstroPy] Opening 2MASS fits file returns all NaN data

Daniel Evans d.f.evans at keele.ac.uk
Mon Oct 19 11:32:06 EDT 2015


Thanks Leonard (and many others!) for pointing out that I didn't look hard
enough - there's just enough of a border that my initial probing found
nothing but NaNs!

Regards,
Daniel

On 19 October 2015 at 16:28, Leonard Burtscher <burtscher at mpe.mpg.de> wrote:

> Hi Daniel,
>
> Are you sure the image is just NaNs if opened with astropy? When I open
> your file, I see some nans in the first column, but the rest of the image
> seems to be OK.
>
> Can you try:
> a=fits.open("WASP-99_aH_asky_991014s1130092.fits")
> a[0].data[500,500]
>
> It returns 352.42224 on my machine.
>
> Cheers,
> Leonard
>
>
> > Am 19.10.2015 um 17:19 schrieb Daniel Evans <d.f.evans at keele.ac.uk>:
> >
> > Hello all,
> >
> > I am attempting to open a set of .fits files containing 2MASS images
> using astropy.io.fits (astropy v1.0.4). The files open without any errors,
> the headers show correctly, and the data array has the correct shape, but
> all the data values are set to NaN.
> >
> > DS9 is able to display the images without any problem, whilst pyfits
> v3.3.0 shows the same problem (perhaps unsurprising).
> >
> > An example file is available at:
> http://www.astro.keele.ac.uk/~devans/WASP-99_aH_asky_991014s1130092.fits
> >
> > Any thoughts?
> >
> > Regards,
> > Daniel
> > _______________________________________________
> > AstroPy mailing list
> > AstroPy at scipy.org
> > https://mail.scipy.org/mailman/listinfo/astropy
>
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> https://mail.scipy.org/mailman/listinfo/astropy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20151019/f1126dc3/attachment.html>


More information about the AstroPy mailing list