Welcome to iraf.net Friday, May 17 2024 @ 10:11 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 ccdproc and flat correction within script
   
smp
 11/11/2008 10:07AM (Read 3699 times)  
++++-
Regular Member

Status: offline


Registered: 07/27/2008
Posts: 70
Hi,
(1)
Following is a segment of my procedure script.I want to do flat correction using ccdproc:I have list of images : [b:bd1ce651a4]joinlist_sci[/b:bd1ce651a4]
Output should be flat corrected images which form a list: [b:bd1ce651a4]reducedlist[/b:bd1ce651a4]i.e. [b:bd1ce651a4]joinlist_sci[/b:bd1ce651a4] contains
j_sci_bs_os_1.fits
j_sci_bs_os_2.fits
j_sci_bs_os_3.fits
j_sci_bs_os_4.fits
j_sci_bs_os_5.fitsand [b:bd1ce651a4]reducedlist[/b:bd1ce651a4] contains
reduced_sci_1.fits
reduced_sci_2.fits
reduced_sci_3.fits
reduced_sci_4.fits
reduced_sci_5.fits[code:1:bd1ce651a4]
ccdproc(images = "@"//joinlist_sci, output = "@"//reducedlist, ccdtype = "", fixpix = no,
overscan = no, trim = no, zerocor = no, darkcor = no, flatcor = yes, flat = "mb_os_mflat.fits")[/code:1:bd1ce651a4]I run the script, I get the error:
[quote:bd1ce651a4]
ERROR on line 354: ambiguous parameter `flat' within `<searchpath>'
[/quote:bd1ce651a4]So how to correct this?
-------------------------------------------------------------------------------------------------
(2)So, I try following in the command mode (for checking purpose):[code:1:bd1ce651a4]PACKAGE = ccdred
TASK = ccdprocimages = @joinlist_sci List of CCD images to correct
(output = @reducedlist) List of output CCD images
(ccdtype= ) CCD image type to correct
:
:
(fixpix = no) Fix bad CCD lines and columns?
(oversca= no) Apply overscan strip correction?
(trim = no) Trim the image?
(zerocor= no) Apply zero level correction?
(darkcor= no) Apply dark count correction?
(flatcor= yes) Apply flat field correction?
(illumco= no) Apply illumination correction?
(fringec= no) Apply fringe correction?
(readcor= no) Convert zero level image to readout correction?
(scancor= no) Convert flat field image to scan correction?
(readaxi= line) Read out axis (column|line)
(flat = mb_os_mflat.fits) Flat field images
:
:
[/code:1:bd1ce651a4]After executing ccdproc, I get error:[quote:bd1ce651a4]
cc> ccdproc
Bad param assignment, line 1: `j_sci_bs_os_1.fits'
Bad param assignment, line 2: `j_sci_bs_os_2.fits'
Bad param assignment, line 3: `j_sci_bs_os_3.fits'
Bad param assignment, line 4: `j_sci_bs_os_4.fits'
Bad param assignment, line 5: `j_sci_bs_os_5.fits'
ERROR: Iraf Main: Unknown task name ()
[/quote:bd1ce651a4]Then I unlearned ccdproc, and repeated (2) above. Then I get following error:[quote:bd1ce651a4]
cc> ccdproc
List of CCD images to correct (@joinlist_sci):
ERROR: Input and output lists do not match
[/quote:bd1ce651a4]I get two different errors for two runs of ccdproc in command mode!
Why does this happen?
--------------------------------------------------------------------------------------------------------
Please help to sort out this problem.
regards

 
Profile Email
 Quote
valdes
 11/11/2008 10:07AM  
+++++
Active Member

Status: offline


Registered: 11/11/2005
Posts: 728
1) This error occurs in scripts when there is a parameter which matches a variable with a minimum match. One solution is typically to declare a dummy parameter in your script "string flat" even if you don't use it. I can't tell more without the whole script.2) It is hard to spot the problem. Send the result of listing all the parameters right before you execute the task:[code:1:ff34fb8264]
cl> lpar ccdproc
cl> ccdproc
[/code:1:ff34fb8264]Yours,
Frank Valdes

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