Center paramters, hidden? NO! Inheritance? Super confused.
Stin. Kerr wrote on Mar 21, 2009
Hi IRAFers,
I am writing a script that does a lot of centering; takes a lot of images and approximate coordinates and finds more accurate centers.
Using noao.digiphot.apphot.center
The problem is that I have to do this for *VERY MANY* different sets of images and lists and I can't for the life of get rid of the darn prompt for 5 parameters.
I.e., these ones:
Now, I think I understand the difference between modes, "ql", "h". All these parameters are pre-set (as you can probably see). I have also tried writing them all explicitly on the call line. I have tried explicitly setting mode="h" in center. And in the centerpars and datapars. And also in apphot itself. And I've checked the p_mode for the parameters themselves (and it's 'h'). So why does it insist on making me press <return> five times on every loop.
Right now the only solution I can think of is to get me one of those nodding birds that Homer Simpson got when he started working from home (yeah, you know what I'm talking about) but we all know how that ended!
Maybe you have a better solution? Thanks in advance, and one beer from me if you do.
I am writing a script that does a lot of centering; takes a lot of images and approximate coordinates and finds more accurate centers.
Using noao.digiphot.apphot.center
The problem is that I have to do this for *VERY MANY* different sets of images and lists and I can't for the life of get rid of the darn prompt for 5 parameters.
I.e., these ones:
Centering algorithm (centroid) (CR or value):
New centering algorithm: centroid
Centering box width in scale units (50.) (CR or value):
New centering box width: 50. scale units 469.7924 pixels
Standard deviation of background in counts (4.) (CR or value):
New standard deviation of background: 4. counts
Minimum good data value (-100000.) (CR or value):
New minimum good data value: -100000. counts
Maximum good data value (1000000.) (CR or value):
New maximum good data value: 1000000. counts
Now, I think I understand the difference between modes, "ql", "h". All these parameters are pre-set (as you can probably see). I have also tried writing them all explicitly on the call line. I have tried explicitly setting mode="h" in center. And in the centerpars and datapars. And also in apphot itself. And I've checked the p_mode for the parameters themselves (and it's 'h'). So why does it insist on making me press <return> five times on every loop.
Right now the only solution I can think of is to get me one of those nodding birds that Homer Simpson got when he started working from home (yeah, you know what I'm talking about) but we all know how that ended!
Maybe you have a better solution? Thanks in advance, and one beer from me if you do.
Mike Fitzpatrick wrote on Mar 21, 2009
The APPHOT package has a 'verify' parameter that is causing the queries, just turn it off with e.g.
-Mike
cl> apphot.verify=no-Mike
Stin. Kerr wrote on Mar 21, 2009
Genius! Thanks Mike!
Verify... It's so... obvious (read: embarrassing) now that I look at it again... Cheers!
Verify... It's so... obvious (read: embarrassing) now that I look at it again... Cheers!
Last post on Mar 21, 2009