Wednesday, May 10, 2017

IDL: 关闭所有文件

代码示例:
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
;; get all files IDs
fids = envi_get_file_ids()
size = size(fids)
length = size[1]

for j = 0L, length-1, 1 do begin
      ;; to delete the specified file from the hard disk
      ENVI_FILE_MNG, id = fids[j], /DELETE
      ;; to remove the specified file from within ENVI Classic
      ;;ENVI_FILE_MNG, id = fids[j], /REMOVE
endfor

No comments:

Post a Comment