Trying to run ENVI_FX_DOIT example [message #66282] |
Wed, 06 May 2009 03:05 |
josea.malpica
Messages: 12 Registered: March 2008
|
Junior Member |
|
|
Hi all,
Has anyone used the procedure ENVI_FX_DOIT?
I have copy the example from the ENVI Reference Guide pag 240 and it
keeps telling me:
Unknown Routine Name 'envi_fx_doit'
Since the data in my ENVI resources DVD are not the same as the
Reference Guide talk about I have used my own data.
Bellow I copy the procedure.
Does anyone know why the routine it is not recognise by ENVI.
Regards,
Jose
pro extveg, event
compile_opt strictarr, hidden
envi
; Specify the input image file, rule set,
; and output directory for vector shapefiles
;imgFile = 'pequeña'
rulesetfilename = 'ruleset1.xml'
vectorfilename = 'vector_out'
; Open the image file
;envi_open_file, imgFile, r_fid=fid
;if (fid eq -1) then begin
;envi_batch_exit
;return
;endif
; Select the image file
envi_select, fid=fid
; Set the necessary variables
envi_file_query, fid, dims=dims, nb=nb
pos = lindgen(nb)
; Call the doit
envi_doit, 'envi_fx_doit', fid=fid, dims=dims, $
pos=pos, $
scale_level=60.0, $
merge_level=67.0, $
; conf_threshold=0.20, $
ruleset_filename=rulesetfilename, $
vector_filename=vectorfilename, rfid=r_fid
if (r_fid eq -1) then begin
str = 'Processing failed for ' + imgFile
envi_error, str
endif
ENVI_ENTER_DATA, vector_filename, r_fid=r_fid
end
|
|
|