[AstroPy] Help with WindowsError: [Error 8]

Dominik Klaes dklaes at astro.uni-bonn.de
Wed Mar 12 12:28:06 EDT 2014


He sent me one file for testing, and I get a somehow similar error on
Linux, so it doesn't seem to be a Windows related problem. When checking
the tables with fv (it's part of ftools), I saw that there are at the end
of the table many empty lines (so no 0 or NaN or similar, just empty).
Could that be a problem?

Cheers,

Dominik


2014-03-11 19:49 GMT+01:00 Zachary Robinson <zdr0001 at uah.edu>:

> Perry,
>
> The FITS file is 3.66MB. The dimensions of the table are 892800Rx4C
>
> Zach
>
> Sent from my iPhone
>
> > On Mar 11, 2014, at 1:09 PM, Perry Greenfield <stsci.perry at gmail.com>
> wrote:
> >
> > How big is the table?
> >
> > It's quite possible you are running into a 32-bit limitation,
> particularly if the table is 2GB or bigger.
> >
> > Perry
> >
> >
> >> On Mar 11, 2014, at 2:06 PM, Zachary Robinson wrote:
> >>
> >> Hello,
> >>
> >> I'm currently a graduate student working on a project for my adviser.
> The data we are using has always been in CSV format and we have a bunch of
> python programs using these CSV formatted files.  However, a small portion
> of the oldest data we have is in FITS formatted files.  I've been put in
> charge of extracting the data from these FITS files and putting them into
> CSV files so we can use our programs we wrote. I read online that astropy
> has the ability to do this so I've downloaded it and have started to learn
> it using the documentation center.
> >>
> >> However, I have experienced an issue while trying to learn the basics
> commands of the table data portion of FITS file handling.  My code so far
> is (infil is the location of the FITS files on my computer):
> >>
> >> HDUlist = fits.open(infil)
> >> HDUlist.info()
> >> tbdata = HDUlist[1].data
> >> print(tbdata[1])
> >>
> >> When I try to run the program, I get this error message:
> >>
> >> Traceback (most recent call last):
> >>  File "C:\Documents and Settings\zach\Desktop\Dropbox\Probabilistic SPE
> Model\GOES\Python Programs\Astropy and FIT Files Tutorial\Reading FITS
> Files.py", line 52, in <module>
> >>    tbdata = HDUlist[1].data
> >>  File "C:\Program
> Files\Python27\lib\site-packages\astropy\utils\misc.py", line 279, in
> __get__
> >>    val = self._fget(obj)
> >>  File "C:\Program
> Files\Python27\lib\site-packages\astropy\io\fits\hdu\table.py", line 285,
> in data
> >>    data = self._get_tbdata()
> >>  File "C:\Program
> Files\Python27\lib\site-packages\astropy\io\fits\hdu\table.py", line 93, in
> _get_tbdata
> >>    self._data_offset)
> >>  File "C:\Program
> Files\Python27\lib\site-packages\astropy\io\fits\hdu\base.py", line 509, in
> _get_raw_data
> >>    return self._file.readarray(offset=offset, dtype=code, shape=shape)
> >>  File "C:\Program
> Files\Python27\lib\site-packages\astropy\io\fits\file.py", line 257, in
> readarray
> >>    shape=shape).view(np.ndarray)
> >>  File "C:\Program
> Files\Python27\lib\site-packages\numpy\core\memmap.py", line 237, in __new__
> >>    mm = mmap.mmap(fid.fileno(), bytes, access=acc, offset=start)
> >> WindowsError: [Error 8] Not enough storage is available to process this
> command
> >>
> >> Can anyone explain to me what this error is and how I can go about
> fixing it? From what I've read online so far, I'm thinking it has something
> to do with the mmap but I don't know what that is.
> >>
> >> I'm running this code in Python 2.7 on a 32-bit WinXP machine.
> >>
> >> Thanks a lot for the help,
> >> Zach
> >> _______________________________________________
> >> AstroPy mailing list
> >> AstroPy at scipy.org
> >> http://mail.scipy.org/mailman/listinfo/astropy
> >
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy
>



-- 
Dominik Klaes
Deputy student representative of the AIfA
Argelander-Institut für Astronomie
Room 2.027a
Auf dem Hügel 71
53121 Bonn

Telefon: 0228/73-5773
E-Mail: dklaes at astro.uni-bonn.de <dklaes at astro.uni-bonn.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20140312/95cf67ac/attachment.html>


More information about the AstroPy mailing list