Status: offline
Registered: 01/18/2007
Posts: 27
|
But everything else run! and in particular Hedit, infact that is the first part of the script. the script is the following:
procedure rebin_spec(input,inini,outre,op,wini,wfin,dw)file input = "" {prompt = "List of images to combine"}
file inini = "" {prompt = "Name of the first image to combine"}
file outre = "" {prompt = "Name of the combined image"}
int op = "" {prompt = "Number of lines in the spectra"}
real wini = "" {prompt = "Starting wavelength of output spectra (#/INDEF)"}
real wfin = "" {prompt = "Ending wavelength of output spectra (#/INDEF)"}
real dw = "" {prompt = "Wavelength increment of output spectra (#/INDEF)"}
beginint ndim
imcopy (inini,outre, verbose=yes)hedit (image=outre, field="CRVAL1", value=wini, add=yes, addonly=no,
delete=no, verify=no, update=yes)
hedit (image=outre, field="CDELT1", value=dw, add=yes, addonly=no,
delete=no, verify=no, update=yes)
hedit (image=outre, field="CD1_1", value=dw, add=yes, addonly=no,
delete=no, verify=no, update=yes)noao
onedspecfor (ndim = 1; ndim <=op; ndim+=1) { scombine ("@"//input,
"borrar.fits", noutput="", logfile="STDOUT", apertures=ndim, group="apertures",
combine="median", reject="none", first=no, w1=wini, w2=wfin, dw=dw,
nw=INDEF, scale="mode", zero="none", weight="none", sample="",
lthreshold=INDEF, hthreshold=INDEF, nlow=1, nhigh=0, nkeep=1, mclip=yes,
lsigma=3., hsigma=3., rdnoise="0.", gain="1.", snoise="0.", sigscale=0.1,
pclip=-0.5, grow=0, blank=0.) imcopy ("borrar.fits",outre // "[*,"// ndim//"]", verbose=yes)
if (access("borrar.fits")) imdel("borrar.fits",verify=no) }
endI tryed to type "limit stacksize unlimited" in the terminal before typing CL (is this correct?) but nothing happened.
The errore come again, but not always, sometimes only.
And I also checked the hardware, and there is no problem.
What to do?
|