pset procedure script
ranisb wrote on Nov 07, 2008
Hi,
I am writing following script to combine bias frames to make master bias frame
procedure reduction1(biasimage)
string biasimage # {prompt="List of bias images"}
struct *bslist
pset zerocomb
begin
string bias, bsfile, biasmaster
if (!defpac("noao") || !defpac("imred")) {
bye()
}
bias = biasimage
if(bias != "") {
bsfile = mktemp("tmp$red")
section(bias, option = "fullname", > bsfile)
}
# else {
# print("No biasframes defined")
# bye()
# }
bslist = bsfile
biasmaster = "biasmaster.fits"
if (access(biasmaster)) {
imdelete (biasmaster)
}
unlearn zerocombine
print("Unlearn zerocombine parameters")
# Zerocombine parameters
zerocombine.input = zerocomb.input
zerocombine.output = zerocomb.output
:
:
zerocombine.mode = zerocomb.mode
zerocombine(bslist)
biasmaster = zerocombine.output
if (access(biasmaster)){
display(biasmaster,1)
}
# else {
# print ("some problem")
# }
end
But I am getting following error,
cc> reduction1
biasimage (biasimage_lis ): @biasimage_lis
Unlearn zerocombine parameters
List of zero level images to combine: @biasimage_lis
ERROR on line 46: No images to combine
zerocombine (input=bias_40.1.fits,bias_40.2.fits,bias_40.3.fits)
reduction1 ()
Input file 'biasimage_lis' and parameter file' zerocomb.par ' is in the same directory. Can you plaese help me to come out from this error
:(
Regards,
Rani
I am writing following script to combine bias frames to make master bias frame
procedure reduction1(biasimage)
string biasimage # {prompt="List of bias images"}
struct *bslist
pset zerocomb
begin
string bias, bsfile, biasmaster
if (!defpac("noao") || !defpac("imred")) {
bye()
}
bias = biasimage
if(bias != "") {
bsfile = mktemp("tmp$red")
section(bias, option = "fullname", > bsfile)
}
# else {
# print("No biasframes defined")
# bye()
# }
bslist = bsfile
biasmaster = "biasmaster.fits"
if (access(biasmaster)) {
imdelete (biasmaster)
}
unlearn zerocombine
print("Unlearn zerocombine parameters")
# Zerocombine parameters
zerocombine.input = zerocomb.input
zerocombine.output = zerocomb.output
:
:
zerocombine.mode = zerocomb.mode
zerocombine(bslist)
biasmaster = zerocombine.output
if (access(biasmaster)){
display(biasmaster,1)
}
# else {
# print ("some problem")
# }
end
But I am getting following error,
cc> reduction1
biasimage (biasimage_lis ): @biasimage_lis
Unlearn zerocombine parameters
List of zero level images to combine: @biasimage_lis
ERROR on line 46: No images to combine
zerocombine (input=bias_40.1.fits,bias_40.2.fits,bias_40.3.fits)
reduction1 ()
Input file 'biasimage_lis' and parameter file' zerocomb.par ' is in the same directory. Can you plaese help me to come out from this error
:(
Regards,
Rani
Francisco Valdes wrote on Nov 07, 2008
No images to combine when using the ccdred package tasks is usually due to the ccdtype not being matched possibly based on an instrument translation file. The simplest solution is to set ccdtype="" in zerocombine, flatcombine, etc.
Yours,
Frank Valdes
Yours,
Frank Valdes
Last post on Nov 07, 2008