首页 > 解决方案 > 使用 acre.pro 例程时出错:“程序无法从单语句模式编译”

问题描述

我正在尝试使用 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

解决方案


尝试:

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

推荐阅读