Welcome to iraf.net Thursday, April 18 2024 @ 10:56 AM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 mscred ccdproc readaxis parameter
   
paulsell
 08/07/2015 04:59PM (Read 1394 times)  
+----
Newbie

Status: offline


Registered: 08/07/2015
Posts: 2
I am using ccdproc to overscan-correct and trim my images. I am using the mscred package instead of imred package because I am dealing with multi-extension fits files.

Is there a way to set the "readaxis" parameter to "column" instead of "line"? ccdproc in the imred package allows this, but ccdproc in the mscred package does not seem to.

If there are reasons not to change this or that this will take time to change, can someone provide a workaround for the time being? Simply changing the ccdproc.cl script in the installation directory myself causes a bus error.

 
Profile Email
 Quote
fitz
 08/11/2015 07:30PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
CCDPROC in MSCRED is a script that calls "_ccdtool" to do the actual processing, and that task does have a 'readaxis' parameter to allow either line or column (e.g. do "cl\$this->_split2($m[0]) epar _ccdtool"). However, it appears the value is hardcoded to be "line" in the ccdproc script itself and would need to be changed there.

If you have write permission on the IRAF files then you can simply edit the mscred$src/ccdproc.cl script to make the change, otherwise you can copy that file, edit it, then declare it yourself using e.g.

cl\$this->_split2($m[0]) task ccdproc = /

 
Profile Email
 Quote
paulsell
 08/11/2015 10:57PM  
+----
Newbie

Status: offline


Registered: 08/07/2015
Posts: 2
Simply changing the two instances of readaxis="line" to readaxis="column" in the ccdproc.cl file throws the bus error or segmentation fault I mentioned in my first post. I have included the detailed errors below.

I actually tried this first on Ureka pyraf, where I could modify the basic files myself on my own system. Then after getting the error, I contacted their help desk, but they recommended I post here: "Since neither of the two ccdproc tasks are produced (nor maintained) here at STScI, this is not a problem we can fix for you. Also, I believe, this has nothing to do with PyRAF (the same behavior occurs in the CL). I believe the right thing to do is to post your question to the good people at iraf.net."

Indeed I copied the ccdproc.cl file and declared it myself and I also got an error in IRAF, so this does seem to be a more fundamental error to the script itself when I make this simple change in this way.



Here is the IRAF error:

ERROR: segmentation violation
"low_reject=low_reject, high_reject=high_reject, grow=grow)"
line 304: ccdproc.cl
called as: `ccdproc ()'



Here is the pyraf error:

Task ccdproc is running...

Fit overscan vector for legendre interactively (yes):
Killing IRAF task `_ccdtool'
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/local/Ureka/ssbx/python/lib/python2.7/lib-tk/Tkinter.py", line 1470, in __call__
return self.func(*args)
File "/usr/local/Ureka/ssbx/python/lib/python2.7/site-packages/stsci.tools-3.3.0.dev42072-py2.7.egg/stsci/tools/editpar.py", line 1257, in execute
self.runTask()
File "/usr/local/Ureka/ssbx/python/lib/python2.7/site-packages/stsci.tools-3.3.0.dev42072-py2.7.egg/stsci/tools/editpar.py", line 1766, in runTask
self._taskParsObj.run(mode='h', _save=1)
File "/usr/local/Ureka/ssbx/python/lib/python2.7/site-packages/pyraf-2.2.dev-py2.7-macosx-10.6-x86_64.egg/pyraf/iraftask.py", line 359, in run
self._run(redirKW, specialKW)
File "/usr/local/Ureka/ssbx/python/lib/python2.7/site-packages/pyraf-2.2.dev-py2.7-macosx-10.6-x86_64.egg/pyraf/iraftask.py", line 1455, in _run
self._runCode()
File "/usr/local/Ureka/ssbx/python/lib/python2.7/site-packages/pyraf-2.2.dev-py2.7-macosx-10.6-x86_64.egg/pyraf/iraftask.py", line 1470, in _runCode
self._clFunction(*parList, **kw)
File "", line 251, in ccdproc
iraf._ccdtool('@' + Vars.extlist, Vars.out, '', Vars.bpmname,calproc = Vars.cal1,nointerp = '',ccdtype = Vars.ccdtype,proctype = '',max_cache = 0,noproc = Vars.noproc,onerror = 'original',overscan = Vars.overscan,trim = Vars.trim,fixpix = Vars.fixpix,zerocor = Vars.zerocor,darkcor = Vars.darkcor,flatcor = Vars.flatcor,sflatcor = Vars.sflatcor,illumcor = no,fringecor = no,readcor = no,scancor = no,readaxis = 'column',saturation = Vars.saturation,sgrow = Vars.sgrow,bleed = Vars.bleed,btrail = Vars.btrail,bgrow = Vars.bgrow,biassec = Vars.biassec,trimsec = Vars.trimsec,fixfile = Vars.fixf,zero = '@' + Vars.zerolist,dark = '@' + Vars.darklist,flat = '@' + Vars.flatlist,sflat = '@' + Vars.sflatlist,minreplace = Vars.minreplace,interactive = Vars.interactive,function = Vars.function,order = Vars.order,sample = Vars.sample,naverage = Vars.naverage,niterate = Vars.niterate,low_reject = Vars.low_reject,high_reject = Vars.high_reject,grow = Vars.grow)
File "/usr/local/Ureka/ssbx/python/lib/python2.7/site-packages/pyraf-2.2.dev-py2.7-macosx-10.6-x86_64.egg/pyraf/iraftask.py", line 767, in __call__
return self.run(*args, **kw)
File "/usr/local/Ureka/ssbx/python/lib/python2.7/site-packages/pyraf-2.2.dev-py2.7-macosx-10.6-x86_64.egg/pyraf/iraftask.py", line 359, in run
self._run(redirKW, specialKW)
File "/usr/local/Ureka/ssbx/python/lib/python2.7/site-packages/pyraf-2.2.dev-py2.7-macosx-10.6-x86_64.egg/pyraf/iraftask.py", line 811, in _run
"\n"+str(value))
IrafError: Error running IRAF task _ccdtool
IRAF task terminated abnormally
ERROR (501, "bus error")

 
Profile Email
 Quote
   
Content generated in: 0.11 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