Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Possible bug in Fits.exe on Mac OSX Mathematica 6.0.3

  • To: mathgroup at
  • Subject: [mg90859] Possible bug in Fits.exe on Mac OSX Mathematica 6.0.3
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at>
  • Date: Sat, 26 Jul 2008 04:23:35 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <g6c9ao$bv1$>

yves.grosdidier at wrote:

> I am trying to import a 4 dimensional data FITS file: 1024 x 1024 x
> 272 x 1.
> This file is a bona fide FITS file, created by the Canadian Astronomy
> Data Centre (more precisely it is one file extracted from the Canadian
> Galactic Plane Survey:
> After the command,
>  nebula=Import["CGPS_MB2_HI_line_image.fits.gz",{"GZIP","FITS"}];
> here is the error message I obtain:
> Import::errstruct: "Malformed data structure. \!\(\"Missing required \
> keyword BITPIX\"\)."
> Using another software, I have checked that the required keyword
> exists...
> My question: is Mathematica able to handle FITS files having more than
> 2 dimensions (data cubes, etc.)?


I downloaded a FITS file (about 445 MB) from the website you mentioned. 
Then I tried to import the compress as well as the uncompress file 
without success but with a different message/problem from yours: the 
import helper program Fits.exe quits unexpectedly. (The downloaded file 
is good since MicroObservatory Image 2.0 [1] has no problem to read and 
manipulate it.)

Configuration: 64-bit Intel Core 2 Duo 4 GB RAM Mac OSX Leopard 1.5.4 
Mathematica 6.0.3

In[1]:= Timing[
  image = Import["CGPS_MH1_HI_line_image.fits.gz", {"GZIP", "FITS"}]]

During evaluation of In[1]:= LinkObject::linkd:Unable to communicate \
with closed link \
Binaries/MacOSX-x86-64/FITS.exe,9,9]. >>

Out[1]= {3.98607, $Failed}

In[2]:= Timing[image = Import["CGPS_MH1_HI_line_image.fits"]]

During evaluation of In[2]:= LinkObject::linkd:Unable to communicate \
with closed link \
Binaries/MacOSX-x86-64/FITS.exe,10,9]. >>

Out[2]= {3.70389, $Failed}

In[3]:= $Version

Out[3]= "6.0 for Mac OS X x86 (64-bit) (May 21, 2008)"

- Jean-Marc

[1] "MicroObservatory Image 2.0",

  • Prev by Date: Re: Try it again, Mathematica! Was: Can't integrate sqrt(a+b*cos(t)+c*cos(2t))
  • Next by Date: Reading Directive Values
  • Previous by thread: Re: How do I set PlotRegion value permantly?
  • Next by thread: Cube root of -1 and 1