Re: idl call envi function, running with out ENVI? [message #77312] |
Tue, 23 August 2011 23:53  |
Maxwell Peck
Messages: 61 Registered: February 2010
|
Member |
|
|
On Aug 24, 1:26 pm, "wxfe...@gmail.com" <wxfe...@gmail.com> wrote:
> I just write a simple IDL program, while the major code write in IDL
> with some function of ENVI to speed up my programing.
>
> example:
> PRO test_read
> COMPILE_OPT idl2
> file_name = DIALOG_PICKFILE(/READ,FILTER='*.*')
> ENVI_OPEN_FILE, file_name, r_fid=r_dem,/NO_REALIZE
> IF (r_dem EQ -1) THEN RETURN
> END
>
> I hope to release this code running without ENVI, what should I do?
You must also have a envi_get_data in there somewhere if you're using
IDL functions.
What you probably want to do (assuming you know the details of the dem
format) is use the IDL read_binary function just to read it into an
array.
Max
|
|
|
Re: idl call envi function, running with out ENVI? [message #77398 is a reply to message #77312] |
Thu, 25 August 2011 10:24  |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On 8/24/11 6:44 PM, wxfei19@gmail.com wrote:
> On Aug 25, 8:13 am, "Jeff N."<jeffnettles4...@gmail.com> wrote:
>> On Aug 23, 11:26 pm, "wxfe...@gmail.com"<wxfe...@gmail.com> wrote:
>>
>>> I just write a simple IDL program, while the major code write in IDL
>>> with some function of ENVI to speed up my programing.
>>
>>> example:
>>> PRO test_read
>>> COMPILE_OPT idl2
>>> file_name = DIALOG_PICKFILE(/READ,FILTER='*.*')
>>> ENVI_OPEN_FILE, file_name, r_fid=r_dem,/NO_REALIZE
>>> IF (r_dem EQ -1) THEN RETURN
>>> END
>>
>>> I hope to release this code running without ENVI, what should I do?
>>
>> Are you asking how to read an envi file without envi running (ie,
>> using just idl)? If so that's easy, it's just a matter of the
>> specifics you need to achieve (ie, do you know the dimensions
>> beforehand?). Why don't you explain what you want to do a little
>> better...
>
> yes I want to read an envi file and do some image process(using some
> envi function).
> and I hope the code(released in exe or other format) could run on the
> other computer without envi installed.
It's possible to do the *equivalent* of what ENVI is doing using IDL
(ENVI is written in IDL after all), but you have to have ENVI to use
ENVI functions.
Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL, A Guide to Learning IDL: http://modernidl.idldev.com
Research Mathematician
Tech-X Corporation
|
|
|
Re: idl call envi function, running with out ENVI? [message #77403 is a reply to message #77312] |
Thu, 25 August 2011 00:01  |
Maxwell Peck
Messages: 61 Registered: February 2010
|
Member |
|
|
On Aug 25, 10:44 am, "wxfe...@gmail.com" <wxfe...@gmail.com> wrote:
> On Aug 25, 8:13 am, "Jeff N." <jeffnettles4...@gmail.com> wrote:
>
>
>
>
>
>> On Aug 23, 11:26 pm, "wxfe...@gmail.com" <wxfe...@gmail.com> wrote:
>
>>> I just write a simple IDL program, while the major code write in IDL
>>> with some function of ENVI to speed up my programing.
>
>>> example:
>>> PRO test_read
>>> COMPILE_OPT idl2
>>> file_name = DIALOG_PICKFILE(/READ,FILTER='*.*')
>>> ENVI_OPEN_FILE, file_name, r_fid=r_dem,/NO_REALIZE
>>> IF (r_dem EQ -1) THEN RETURN
>>> END
>
>>> I hope to release this code running without ENVI, what should I do?
>
>> Are you asking how to read an envi file without envi running (ie,
>> using just idl)? If so that's easy, it's just a matter of the
>> specifics you need to achieve (ie, do you know the dimensions
>> beforehand?). Why don't you explain what you want to do a little
>> better...
>
> yes I want to read an envi file and do some image process(using some
> envi function).
> and I hope the code(released in exe or other format) could run on the
> other computer without envi installed.- Hide quoted text -
>
> - Show quoted text -
Unless something is changed this is not possible. You need to use IDL
functions only (which may or may not be straightforward).
Max
|
|
|
Re: idl call envi function, running with out ENVI? [message #77405 is a reply to message #77312] |
Wed, 24 August 2011 17:44  |
wxfei19@gmail.com
Messages: 2 Registered: August 2011
|
Junior Member |
|
|
On Aug 25, 8:13 am, "Jeff N." <jeffnettles4...@gmail.com> wrote:
> On Aug 23, 11:26 pm, "wxfe...@gmail.com" <wxfe...@gmail.com> wrote:
>
>> I just write a simple IDL program, while the major code write in IDL
>> with some function of ENVI to speed up my programing.
>
>> example:
>> PRO test_read
>> COMPILE_OPT idl2
>> file_name = DIALOG_PICKFILE(/READ,FILTER='*.*')
>> ENVI_OPEN_FILE, file_name, r_fid=r_dem,/NO_REALIZE
>> IF (r_dem EQ -1) THEN RETURN
>> END
>
>> I hope to release this code running without ENVI, what should I do?
>
> Are you asking how to read an envi file without envi running (ie,
> using just idl)? If so that's easy, it's just a matter of the
> specifics you need to achieve (ie, do you know the dimensions
> beforehand?). Why don't you explain what you want to do a little
> better...
yes I want to read an envi file and do some image process(using some
envi function).
and I hope the code(released in exe or other format) could run on the
other computer without envi installed.
|
|
|