Welcome to iraf.net Wednesday, May 01 2024 @ 10:47 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 Stop querying for hidden and defined parameters
   
eggles
 07/31/2018 06:49PM (Read 788 times)  
+----
Newbie

Status: offline


Registered: 07/31/2018
Posts: 2
Hi,

I have a problem while running the task 'phot' where I am unable to run the task without being queried/prompted for parameters. My goal is to be able to run this task (preferably through a python script using Pyraf) as part of an automated sequence that would not require the user to interact at all. While this works for me for other tasks, like txdump, simply by defining the queried parameters in the command, nothing I tried worked for phot.

I have edited all the parameter files beforehand and made sure all of them are defined. I've set interactive to no, graphics to no (I just want the text photometry output from phot, no graphics or interaction), and mode to 'h', which I thought was supposed to make all parameters hidden (and therefore not queried). I also tried defining the queried parameters in the command, but that had no effect.

In the command line, I have been running phot like this:

PHP Formatted Code
> phot img.fit coords="coords.txt" interactive=no graphics=no mode='h'


And in Pyraf, within python script, like this:

PHP Formatted Code
iraf.phot(img.fit, coords="coords.txt", interactive='no', graphics='no', mode='h')


All I need is for this to run without querying for any parameters or asking for interaction of any kind, and instead to finish the task so Pyraf can read the output and use it in an automated procedure. I would be grateful for suggestions on how to accomplish this with any method. Thanks!

 
Profile Email
 Quote
fitz
 08/01/2018 04:31PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Try explicitly turning off the 'verify' parameter, e.g.

apphot\$this->_split2($m[0]) phot img.fit coords="coords.txt" interactive=no graphics=no verify=no

 
Profile Email
 Quote
eggles
 08/02/2018 08:16AM  
+----
Newbie

Status: offline


Registered: 07/31/2018
Posts: 2
Thanks very much! This was the missing parameter, it works great now.

 
Profile Email
 Quote
   
Content generated in: 0.17 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login