Welcome to iraf.net Thursday, April 25 2024 @ 08:53 AM GMT
debrunlm |
09/16/2015 02:28PM (Read 740 times)
|
|
|
Status: offline
Registered: 10/17/2014
Posts: 2
|
Hi,
I have been having an issue trying to set daopars.maxnstar to a higher value than the default of 50000 in PyRAF. In the script I have iraf.daopars.maxnstar.p_max = 200000 this results in the following error.
Traceback (innermost last):
File "", line 1, in
File "/Library/Python/2.7/site-packages/stsci/tools/basicpar.py", line 387, in set
self.value = self.checkValue(value)
File "/Library/Python/2.7/site-packages/stsci/tools/basicpar.py", line 400, in checkValue
return self.checkOneValue(v,strict)
File "/Library/Python/2.7/site-packages/stsci/tools/basicpar.py", line 428, in checkOneValue
(self.name, str(v), str(self.max)))
ValueError: Parameter maxnstar: value `200000' is greater than maximum `50000'
Any help would be greatly appreciated.
Thanks in advance.
|
|
|
|
fitz |
09/16/2015 07:53PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
It would appear from the error message that pyraf doesn't support resetting the p_max attribute of a parameter using this syntax, however there does appear to be a setParam() method you could use as in
iraf.daopars.setParam ("maxnstar.p_maximum", 200000, check=0, exact=1)
See Sec. 6.3 of the PyRAF Guide (http://stsdas.stsci.edu/pyraf/doc.old/pyraf_guide/node6.html). If that still doesn't work you should contact the STScI Help Desk (help@stsci.edu) to see if they can help.
As a last resort you can always just raise the max value in the iraf$noao.digiphot/daophot/daopars.par file directly.
|
|
|
|
| |
|
Content generated in: 0.11 seconds |
|