cfitsio library [message #90646] |
Fri, 20 March 2015 01:32  |
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   |
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 #93425 is a reply to message #93419] |
Mon, 11 July 2016 08:17  |
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!
|
|
|