View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

gsflat error

donzelli wrote on Dec 22, 2011

Hi, I've installed IRAF 2.14.1 on a macbook with OSX 10.7.2.
I also installed Gemini 1.1.beta2 together with nmisc, gmisc and fitsutil.
After the struggle, I finally was able to run the first routine: gsflat.
But my happiness lasted short since I got the following error message:

ERROR: parameter `missing' not found
called as: `hselect (images=S0017.fits[0], fields=NEXTEND, expr=yes)'
"hselect (img//"[0]","NEXTEND",yes) | scan(nextens)"
line 600: gmos$gsflat.cl
called as: `gsflat (mode=h)'

I would really appreciate any help.
regards

Mike Fitzpatrick wrote on Dec 22, 2011

You'll need to "unlearn hselect". Better yet would be to do a new MKIRAF and reinitialize your uparm directory.

donzelli wrote on Dec 22, 2011

I have failed a number of times installing GEMINI package (bin files), so I decided to compile the sources.
I already have IRAF 2.14.1, STSDAS, TABLES v 3.10 working ok.
I've also installed GMISC, NMISC and FITSUTIL.

I've downloaded GEMINI v 1.10. I untared the files, logged in IRAF and then:

cl> cd gemini$
cl> mkpkg -p gemini <arch>

where arch is macosx.

Then I have:

Launch of "mkpkg" failed: the PowerPC architecture is no longer supported.

I get the same message if I use macintel.
I would appreciate your help.

regads

donzelli wrote on Dec 22, 2011

I'm still struggling with GEMINI installation, and of course, I'm still failing.
Since I could not compile the binaries as explained above, I tried again with the pre compiled binaries.
When I try to run gsflat I get:

Input image = S0017.fits; Output image = gsS0017.fits
Launch of "x_gemtools.e" failed: the PowerPC architecture is no longer supported.
ERROR: Attempt to access undefined local variable `obsdate'.

"if (obsdate < 841449600) { # Up to UT August 31, 2006"
line 38: gmos$ggdbhelper.cl (hidden task)
called as: `ggdbhelper (inimage=S0017.fits[0])'
"else ggdbhelper (img//"[0]")"
line 618: gmos$gsreduce.cl
called as: `gsreduce (inimages=@tmpfilelist2126g, outimages=, outpref=gs, fl_over=no, fl_trim=yes, fl_bias=yes, fl_dark=no, fl_flat=no, fl_gmosaic=yes, fl_fixpix=yes, fl_cut=no, fl_title=no, fl_vardq=no, bias=bias.fits, dark=, flatim=, gradimage=, refimage=, key_exptime=EXPTIME, key_biassec=BIASSEC, key_datasec=DATASEC, rawpath=, sci_ext=SCI, var_ext=VAR, dq_ext=DQ, key_mdf=MASKNAME, mdffile=, mdfdir=gmos$data/, bpm=, gaindb=default, gratingdb=gmos$data/GMOSgratings.dat, filterdb=gmos$data/GMOSfilters.dat, bpmfile=gmos$data/chipgaps.dat, key_ron=RDNOISE, key_gain=GAIN, ron=3.5, gain=2.2, sat=65000, ovs_flinter=no, ovs_med=no, ovs_func=chebyshev, ovs_order=1, ovs_lowr=3., ovs_highr=3., ovs_niter=2, nbiascontam=4, biasrows=default, logfile=gmos.log, verbose=yes)'
"refimage="", nbiascontam=l_nbiascontam, biasrows=l_biasrows)"
line 762: gmos$gsflat.cl
called as: `gsflat (mode=h)'

Can somebody tell me what am I doing wrong?
regards

Mike Fitzpatrick wrote on Dec 22, 2011

PPC is no longer supported under OSX Lion, for v2.14 you'll need to use the 'macintel' architecture. Be sure this is the value of the IRAFARCH variable, both one you might define on the cmdline and the value set in your .cshrc file. Since you're also getting the complaint from the pre-built binaries then either these are
distributed as universal binaries or your architecture is still set to 'macosx' somehow.

A "show arch" in the CL should return ".macintel" if your environment is set properly. Compilation is normally done outside the CL (since MKPKG is a foreign command anyway), and will read your .cshrc file definitions so check the value of IRAFARCH.

donzelli wrote on Dec 22, 2011

Thanks Fitz, mistery solved.
However, there is other point to take into account. I followed the Emma comment on other topic. She recommend to install the external packages for the IRAF version being used. In my case, http://iraf.noao.edu/iraf/ftp/iraf/extern-v214/.
So I've downloaded gmisc (for v2.15 since the macintel version is not available for v2.14), nmisc, and fitsutil. Finally GEMINI is running ok and I'm happy.

regards and thanks for your patience.

emma wrote on Dec 22, 2011

Hello charly,

I just wanted to let you know that you should not be using the beta version of the Gemini IRAF package unless you are reducing GNIRS data. However, there is now a new version of the Gemini IRAF package available (v1.11). Please see http://www.gemini.edu/sciops/data-and-results/processing-software for more information. Also, I would recommend upgrading to a newer version of stsdas and tables.

Many thanks,

Emma :)

Last post on Dec 22, 2011