View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

rfits error

sistrad wrote on Mar 27, 2008

hi,
I installed iraf yesterday, everything is ok. After I used rfits and work properly. But to day not work:( I write,
epar rfits
inp bias01.fits
out bias01r.fits

ok.
Error message is;
Unable to open parameter file `uparm$daorfits.par'.
ERROR: T_RFITS: Undefined output file name

would you help me?
nur

Mike Fitzpatrick wrote on Mar 27, 2008

epar rfits
inp bias01.fits
out bias01r.fits


I'm confused because the RFITS task doesn't have an "inp" or "out" parameter, but the error is definitely coming from the RFITS task. I also don't know why you'd be running RFITS on a FITS image, can you provide more details?

-Mike

sistrad wrote on Mar 27, 2008

ok Mike, sory

PACKAGE = dataio
TASK = rfits

fits_fil= bias01.fits FITS data source
file_lis= File/extensions list
iraf_fil= bias01r.fits IRAF filename
(make_im= yes) Create an IRAF image?
(long_he= no) Print FITS header cards?
(short_h= yes) Print short header?
(datatyp= ushort) IRAF data type
(blank = 0.) Blank value
(scale = yes) Scale the data?
(oldiraf= no) Use old IRAF name in place of iraf_file?
(offset = 0) Tape file offset
(mode = ql)
:go
And return me:
Unable to open parameter file `uparm$daorfits.par'.
ERROR: T_RFITS: Undefined output file name

sistrad wrote on Mar 27, 2008

I try to rfits, because when I run any task, like imstatis, return me read error.
" Error reading image"

Mike Fitzpatrick wrote on Mar 27, 2008

I'm still confused (it's late here), why are you trying to run RFITS on the 'bias01.fits' image when you can use it as-is? You shouldn't be seeking that error unless the 'iraf_file' param is an empty string.

-Mike

Mike Fitzpatrick wrote on Mar 27, 2008

An 'Error reading image' could be a permissions problem or a corrupted FITS file. Are you sure this is a valid image?

-Mike

sistrad wrote on Mar 27, 2008

Hi Mike,

when you tell "could be a permissions problem", I controlled that I'm not login as su!:oops: So, I try to login as su and problem is solved :P
Im so sorry for taking your time for a simple situation.
Thank you very much.

James Turner wrote on Mar 27, 2008

Type "ls -al" in a terminal to see the file permissions (first column) and "man chmod" to see how to change them so you can work with the files as a normal user. Working as su routinely is a bad idea. It could be the files or the directory itself (.) that needs permissions changing.

James.

Last post on Mar 27, 2008