我在Ubuntu16.04有libXpm.so.4。它显示安装在突触中。但是,当我安装IDL时,这是我得到的错误:
/home/angel/IDL/idl70/bin/bin.linux.x86/idl: error while loading shared libraries: libXpm.so.4: cannot open shared object file: No such file or directory
在做sudo apt-get install libXpm.so.4时,我得到了这样的信息:
[sudo] password for angel:
Reading packa
我试图在linux上运行IDL,但结果是
Exception in thread "IDL" java.lang.UnsatisfiedLinkError: no idl_ips in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at
我最近安装了GDL,因为我没有IDL的许可证。
我试图运行和IDL (.pro)脚本来模拟系外行星凌日(使用exomoon),我得到了一些问题:
GDL> .reset_session
(gdl:16530): Gtk-WARNING **: gtk_disable_setlocale() must be called before gtk_init()
GDL>
GDL> restore, 'paramk63.save', /v
% Procedure no
我尝试打开一个大的IDL生成的fits数据立方体(159,2,4096,4096):
In [37]: hdulist = fits.open('/randpath/randname1.fits')
In [38]: hdulist.info()
Filename: /randpath/randname1.fits
No. Name Type Cards Dimensions Format
0 PRIMARY PrimaryHDU 11 (159, 2, 4096, 4096) float32
I
我想在python代码中运行IDL脚本,因为稍后我需要在python脚本中分析IDL代码的结果,但我不知道它是如何工作的。例如,我想在python代码中调用此IDL脚本:
pro plotgaussian, center, sigma, X=x, Y=y
x = findgen(1000) / 999; numbers running 0 to 1 in steps of 0.001
x = x * 6 * sigma - 3 * sigma; widen x to range over 6 sigma
x = x + center; center the x range on the bel
我的目标是在python中使用用IDL编写的脚本:
IDL代码:
PRO PS_GS
; Start the application
e = ENVI()
;Generate the roi from a vector file
; Open a vector file
file_vec = Filepath('Sic_Trapani.shp', ROOT_DIR = 'E:\mydirectory\')
vettore = e.OpenVector(file_vec)
; Get the task from the catalog of ENVITasks
T