使用acre.pro例程时出错:“无法从单个语句模式编译程序”

问题描述 投票:1回答:1

我正在尝试使用acre.pro例程。它是一种宇宙射线提取程序,用于识别和消除图像中的宇宙射线撞击。以下是例程文档的摘录(https://www.boulder.swri.edu/~buie/idl/pro/acre.html

CALLING SEQUENCE:
;  pro acre,dirty_im,clean_im,thresh,width
INPUTS:
;  dirty_im - Original input image to be cleaned.
;  thresh   - Deviation threshold, in sigma, from background to cause
;                pixel to be fixed.
;  width    - Median smoothing width to get local background reference.
OUTPUTS:
;  clean_im - Final cleaned up image.

我按照上面的程序使用这个程序,但是,IDL给了我两个错误:

"Syntax Error" and "Programs can't be compiled from single statement mode."

以下是我尝试过的很多事情中的两件以及我得到的错误:

IDL> pro acre ,'N1487262225_2cal.IMG','cosmic_clean.IMG',3,7

pro acre ,'N1487262225_2cal.IMG','cosmic_clean.IMG',3,7
           ^
% Syntax error.


IDL> pro acre ,N1487262225_2.IMG,cosmic_clean.IMG,3,7

pro acre ,N1487262225_2.IMG,cosmic_clean.IMG,3,7
                            ^
% Programs can't be compiled from single statement mode.

pro acre ,N1487262225_2.IMG,cosmic_clean.IMG,3,7
                            ^
% Programs can't be compiled from single statement mode.

pro acre ,N1487262225_2.IMG,cosmic_clean.IMG,3,7
                            ^
% Syntax error.
idl-programming-language
1个回答
0
投票

尝试:

IDL> acre, 'N1487262225_2cal.IMG', 'cosmic_clean.IMG', 3, 7
© www.soinside.com 2019 - 2024. All rights reserved.