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

Home » Public Forums » archive » raster to vector conversion
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Raster to Vector [message #43364 is a reply to message #36454] Thu, 07 April 2005 12:49 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Julio writes:

> A have a TIF image and I want to make a raster to vector conversion of
> some DN values.
>
> I'm using rtf_doit:
>
> values = [4096] ; the DN I want to convert
> l_name = [values]
> out_names = dir+'testimg_' + $
> strcompress(string(values),/remove_all) + '.evf'
> in_memory = lonarr(n_elements(values))
>
> envi_toggle_catch
> envi_doit, 'rtv_doit', $
> fid=fid, pos=pos, dims=dims, $
> values=values, l_name=l_name, $
> in_memory=in_memory, $
> out_names=out_names
>
> But I have no success... I have the message:
>
> % Subscript range values of the form low:high must be >= 0, < size,
> with low <= high: <BYTE ( 179)>.
> % Execution halted at: EVF_INIT_FILE
>
> What could be the problem???

I would guess that this line:

in_memory = lonarr(n_elements(values))

is not doing what you think it is doing. :-)

Why don't you print out N_ELEMENTS(values) and see what you think.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: DLM error
Next Topic: IDL Demo Use

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

Current Time: Sun Oct 12 04:11:41 PDT 2025

Total time taken to generate the page: 0.79976 seconds