comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Trying to run ENVI_FX_DOIT example
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Trying to run ENVI_FX_DOIT example [message #66282] Wed, 06 May 2009 03:05
josea.malpica is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: newbie question on array manipulation
Next Topic: Re: remove duplicate elements from a multi-dimensional array efficiently in IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:48:51 PDT 2025

Total time taken to generate the page: 0.00421 seconds