當前位置:首頁 » 操作系統 » idl源碼

idl源碼

發布時間: 2022-08-25 10:20:46

Ⅰ ENVI 和IDL

,寫的確實太亂,很多錯誤。建議:按照規范程序入門,比如ENVI標准程序格式來操作,入門會容易一點兒。
按照別人的博客寫法,有的時候為了某種效果而不規范,建議學習基礎後再參考博客。
比如ENVI在math_doit(波段運算調用介面函數)的幫助中,有example,稍微修改下就可以了。
附修改結果,因無數據文件夾,故未詳細調試,編譯無錯誤,運行應該沒問題。

1. pro vgt_ndvi_extract
2.

3. ;
4. ; First restore all the base save files.
5. ;
6. envi, /restore_base_save_files
7. ;
8. ; Initialize ENVI and send all errors
9. ; and warnings to the file batch.txt
10. ;
11. envi_batch_init, log_file='batch.txt'
12. ;
13. ; Open the input file
14. ;
15. ndvi_dir='G:\Data\xinjiang'
16. filenames=file_search(ndvi_dir,'*.img',count=numfiles)
17. ;
18. ; Set the keywords. We will perform the
19. ; band math on all samples in the file.
20. ;
21. for i=0,numfiles-1 do begin
22. nfilename=filenames
23. envi_open_file,nfilename,r_fid=fid
24. envi_file_query, fid, dims=dims
25. t_fid = [fid]
26. pos = [0]
27. exp = 'b1*0.004-0.1'
28. out_name = ndvi_dir +'\' +file_baseName(nfilename)+'_bandmath.img'
29. ; newfile=ndvi_dir +'\' +strmid(nfilename)
30. ; Perform the band math processing
31. ;
32. envi_doit, 'math_doit', $
33. fid=t_fid, pos=pos, dims=dims, $
34. exp=exp, out_name=out_name
35. envi_file_mng, id=fid, /remove
36. endfor
37.
38.
39. ; Exit ENVI
40. ;
41. envi_batch_exit
42.

43. end

復制代碼
參考http://bbs.esrichina-bj.cn ENVI/IDL技術版

Ⅱ idl 讀取hdf 欄位,比如我要讀取他的波段信息,如波段數、波段名字等

看看這個源碼,/idldir/examples/doc/sdf/hdf_info.pro,可以讀取hdf所有欄位的。

Ⅲ idl打開sav文件出現錯誤怎麼辦

SAV文件是IDL特有的文件類型,自IDL6.0版本起,可以將IDL的程序、函數、對象或數據保存在SAV文件中,通過SAV文件可以方便的分享程序功能或者數據。
跟通常我們看到的exe或dll文件類似,sav只能用,無法打開看到源碼。

Ⅳ 用IDL語言寫出hist_equal函數的運算原理,拜託了!!!!

你在idl命令行輸入 .compile hist_equal IDL提供了源碼

Ⅳ 有前輩對比過IDL和Python的速度嗎,哪個會快點

您好,很高興為您解答:
IDL的語法類似fortran,數據處理上相對較弱,許多演算法就是用IDL源碼現編譯的(IDL目錄下就有這些源碼),沒經過優化,速度上趕不上其他語言,計算精度上跟大名鼎鼎的MATLAB都不知道差了多少截
不過NB就在畫圖上,很容易生成高質量的PostScript矢量圖,畢竟人是拿圖像吃飯的……它的衍生產品ENVI是用來做GIS(地理信息系統)的。
如果我的回答沒能幫助您,請繼續追問。

熱點內容
輕量伺服器怎麼看ip 發布:2025-09-06 04:12:01 瀏覽:222
linuxtomcat項目 發布:2025-09-06 04:07:06 瀏覽:822
vivox7怎麼清除緩存 發布:2025-09-06 04:05:44 瀏覽:228
linqtosql多表 發布:2025-09-06 04:01:35 瀏覽:109
給內網伺服器增加ip 發布:2025-09-06 03:35:20 瀏覽:710
pc訪問跳轉代碼 發布:2025-09-06 03:24:07 瀏覽:990
停電的應急預案腳本 發布:2025-09-06 02:36:18 瀏覽:523
安卓怎麼讀音 發布:2025-09-06 02:33:59 瀏覽:376
pe我的世界跑酷伺服器推薦 發布:2025-09-06 02:33:15 瀏覽:630
圖書借閱管理系統資料庫 發布:2025-09-06 01:20:17 瀏覽:39