View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

qphot in a linux shell

jcadien1 wrote on Jul 02, 2008

I wish to use qphot in a linux shell. I have run it on bits of my data from within the CL, non-interactively, and it does what I want. However, after dumping the param file, and executing in a linux shell I am prompted for icommands.p_filename: I guess this is not unexpected, but I have no idea what to put for this in the param file. I believe that if I did, I would then be prompted also for gcommands.p_filename: .
Is someone able to help me with the correct values for these?

Thanks,
Jim

Mike Fitzpatrick wrote on Jul 02, 2008

A task like QPHOT uses both it's own parameters and inherits params from the APPHOT package itself, so to be complete you need to also dump the package parameters. A lot also depends on how you're running from the shell: You should normally 'dpar' the parameters to a file (and append the package parameters) and execute as e.g.

 
cl> dpar qphot >qphot.dpar
cl> dpar apphot >> qphot.dpar                # appends the params

and at the linux shell execute as

% /path/x_apphot.e qphot @qphot.par


In the long run the simplest thing may be to create a "#!cl" script that let's you run the QPHOT command as a standalone unix command but still use the CL facilities for parameter, graphics, etc. See http://iraf.noao.edu/iraf/web/new_stuff/cl_host.html for more information.

-Mike

jcadien1 wrote on Jul 02, 2008

Unfortunately, the result is the same, so having the apphot params is not helping. I tired your second idea, using examples from the link, and modifying them in one way or another, but just get errors..it always is trying to load a login.cl.
I guess I really have a total misunderstanding of this process.

Jim

jcadien1 wrote on Jul 02, 2008

Based upon an old forum thread, I put set arch in the example script and it works. Havn't tried qphot yet. So, maybe I will go the srcipt route.

Jim

Last post on Jul 02, 2008