comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » cfitsio library
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
cfitsio library [message #90646] Fri, 20 March 2015 01:32 Go to next message
anand is currently offline  anand
Messages: 11
Registered: December 2008
Junior Member
Hi,
i want to install the cfitsio library to read compressed fits files in IDL 8.4 running on Ubuntu 14.04 64-bit version. Two programs need this library: READ_SDO as well as READFITS (only for *.fits.fz files for the latter program). I have followed the instructions as given at this link:
http://heasarc.gsfc.nasa.gov/fitsio/fpack/

The fun part is that while READ_SDO runs as expected, I get an error saying
<funpack: command not found>.

(Does it have something do with the shell in which the command is running? Because, while READ_SDO runs in tcsh, the READFITS error command is preceded by the name of the shell, which is either 'sh' or 'bash')

thanking in advance,
Anand.
Re: cfitsio library [message #90647 is a reply to message #90646] Fri, 20 March 2015 04:50 Go to previous messageGo to next message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
Does the funpack command run at the command line (outside of IDL)?
READFITS() simply spawns to open a pipe to the funpack command:

spawn,'funpack -S ' + filename, unit=unit,/sh


On Friday, March 20, 2015 at 4:32:32 AM UTC-4, anand wrote:
> Hi,
> i want to install the cfitsio library to read compressed fits files in IDL 8.4 running on Ubuntu 14.04 64-bit version. Two programs need this library: READ_SDO as well as READFITS (only for *.fits.fz files for the latter program). I have followed the instructions as given at this link:
> http://heasarc.gsfc.nasa.gov/fitsio/fpack/
>
> The fun part is that while READ_SDO runs as expected, I get an error saying
> <funpack: command not found>.
>
> (Does it have something do with the shell in which the command is running? Because, while READ_SDO runs in tcsh, the READFITS error command is preceded by the name of the shell, which is either 'sh' or 'bash')
>
> thanking in advance,
> Anand.
Re: cfitsio library [message #90663 is a reply to message #90647] Fri, 20 March 2015 20:33 Go to previous messageGo to next message
anand is currently offline  anand
Messages: 11
Registered: December 2008
Junior Member
No. I tried at the command prompt, but neither fpack nor funpack are recognised. After running 'make' and 'make install', I also explicitly ran 'make fpack' and 'make funpack'. The latter commands seem to run successfully too.
Re: cfitsio library [message #93419 is a reply to message #90646] Sun, 10 July 2016 01:39 Go to previous messageGo to next message
suruchi is currently offline  suruchi
Messages: 13
Registered: September 2012
Junior Member
I am trying to open HMI fits files using read_sdo.pro on a window 7 machine. following is the error:

IDL> f=file_search('*.fits')
IDL> read_sdo,f,index,data
----------------------------------------------------
| Uncompressing to> C:\Users\Home\AppData\Local\Temp |
----------------------------------------------------
| hmi.M_720s.20160108_000000_TAI.1.magnetogram.fits -> C:\Users\Home\AppData\Local\Temp\HMI20160107_235808_6173.fit s |
------------------------------------------------------------ --------------------
% FILE_SIZE: File: C:\Users\Home\AppData\Local\Temp\HMI20160107_235808_6173.fit s not found...
% Array dimensions must be greater than 0.
% Execution halted at: MREADFITS_SHM 63 E:\ssw\vobs\ontology\idl\jsoc\mreadfits_shm.pro

Please help!
Re: cfitsio library [message #93425 is a reply to message #93419] Mon, 11 July 2016 08:17 Go to previous message
dcleuclidwl is currently offline  dcleuclidwl
Messages: 6
Registered: July 2016
Junior Member
I am not familiar with the package you are using but it looks like its first step is to uncompress a file and write it to a temporary directory. The program is then failing because it can't find the uncompressed file. First, does the temporary directory exist?

C:\Users\Home\AppData\Local\Temp

Is the file HMI20160107_235808_6173.fits being written to that directory?

Sometimes the problem is due to a space in the directory/file name. --Wayne

On Sunday, July 10, 2016 at 4:39:34 AM UTC-4, suruchi wrote:
> I am trying to open HMI fits files using read_sdo.pro on a window 7 machine. following is the error:
>
> IDL> f=file_search('*.fits')
> IDL> read_sdo,f,index,data
> ----------------------------------------------------
> | Uncompressing to> C:\Users\Home\AppData\Local\Temp |
> ----------------------------------------------------
> | hmi.M_720s.20160108_000000_TAI.1.magnetogram.fits -> C:\Users\Home\AppData\Local\Temp\HMI20160107_235808_6173.fit s |
> ------------------------------------------------------------ --------------------
> % FILE_SIZE: File: C:\Users\Home\AppData\Local\Temp\HMI20160107_235808_6173.fit s not found...
> % Array dimensions must be greater than 0.
> % Execution halted at: MREADFITS_SHM 63 E:\ssw\vobs\ontology\idl\jsoc\mreadfits_shm.pro
>
> Please help!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL asynchronous execution fails at >50 child processes
Next Topic: External Development: Number of arguments

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:32:26 PDT 2025

Total time taken to generate the page: 0.00600 seconds