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

Home » Public Forums » archive » Re: call ENVI menu routines
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
Re: call ENVI menu routines [message #72603] Thu, 23 September 2010 05:35
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Maxwell Peck writes:

> I'm sure you've covered this before but were the shapefiles you were
> overlaying in the same projection as your image? I only mention this
> because I often overlay large shapefiles on very big images and while
> it can be a little bit slow sometimes i've never found it to be bad.

No, probably not. It was a while ago, but I think I converted
the IDL continental database to a vector file, and I believe
I tried the GSHHS shapefiles. Neither are in a particular
map projection. Everything I tried was exceedingly slow.
No doubt there is a faster way, but I never discovered it.

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: call ENVI menu routines [message #72605 is a reply to message #72603] Thu, 23 September 2010 01:23 Go to previous message
Maxwell Peck is currently offline  Maxwell Peck
Messages: 61
Registered: February 2010
Member
On Sep 23, 8:07 am, David Fanning <n...@dfanning.com> wrote:
> Maxwell Peck writes:
>> David,
>
>> Not to sound like a marketing rep for ITT but I do sometimes think
>> ENVI is often overlooked by the remote sensing IDL community in
>> general. Yes it is more expensive but how much is ones time worth? A
>> lot of the pain in the neck tasks you need to code in IDL (map
>> projections, file i/o etc) are one liners in ENVI and can be coded
>> generically for use with any dataset quickly.
>
> I suppose, although I never found it particularly intuitive
> to use. And I found it extremely difficult to learn to use
> the functionality on my own without someone to show me the
> ropes. And the one thing I needed to do DAILY (put continental
> outlines and grids on map projected images) seemed to take
> days and weeks in ENVI. Well, maybe not days and weeks, but
> putting continental outlines on an image of the sort we are
> talking about today, would take on the order of minutes in
> ENVI. Believe me, you never wanted to resize the image!
>
> (We showed this to an ENVI rep who was visiting, and he
> didn't know anything about it. Apparently, putting continental
> outlines on images is not something that is done by the remote
> sensing community. Go figure.)
>
>> Tiling and tiled
>> routines also let you use massive images efficiently without having to
>> stuff around.
>
> This is *certainly* true! Why aren't these routines available
> in IDL? As a marketing tool verses MatLab, it would be
> invaluable.
>
>> I do tend to find its quicker to code something quickly
>> that you can be reasonable confident is correct.
>
> Probably why I stick with IDL and its direct graphics. ;-)
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

David,

I'm sure you've covered this before but were the shapefiles you were
overlaying in the same projection as your image? I only mention this
because I often overlay large shapefiles on very big images and while
it can be a little bit slow sometimes i've never found it to be bad.

Max
Re: call ENVI menu routines [message #72611 is a reply to message #72605] Wed, 22 September 2010 15:07 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Maxwell Peck writes:

> David,
>
> Not to sound like a marketing rep for ITT but I do sometimes think
> ENVI is often overlooked by the remote sensing IDL community in
> general. Yes it is more expensive but how much is ones time worth? A
> lot of the pain in the neck tasks you need to code in IDL (map
> projections, file i/o etc) are one liners in ENVI and can be coded
> generically for use with any dataset quickly.

I suppose, although I never found it particularly intuitive
to use. And I found it extremely difficult to learn to use
the functionality on my own without someone to show me the
ropes. And the one thing I needed to do DAILY (put continental
outlines and grids on map projected images) seemed to take
days and weeks in ENVI. Well, maybe not days and weeks, but
putting continental outlines on an image of the sort we are
talking about today, would take on the order of minutes in
ENVI. Believe me, you never wanted to resize the image!

(We showed this to an ENVI rep who was visiting, and he
didn't know anything about it. Apparently, putting continental
outlines on images is not something that is done by the remote
sensing community. Go figure.)

> Tiling and tiled
> routines also let you use massive images efficiently without having to
> stuff around.

This is *certainly* true! Why aren't these routines available
in IDL? As a marketing tool verses MatLab, it would be
invaluable.

> I do tend to find its quicker to code something quickly
> that you can be reasonable confident is correct.

Probably why I stick with IDL and its direct graphics. ;-)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: call ENVI menu routines [message #72612 is a reply to message #72611] Wed, 22 September 2010 14:44 Go to previous message
Maxwell Peck is currently offline  Maxwell Peck
Messages: 61
Registered: February 2010
Member
On Sep 23, 4:39 am, chris <rog...@googlemail.com> wrote:
> On 22 Sep., 20:17, Mort Canty <m.ca...@fz-juelich.de> wrote:
>
>
>
>> Am 22.09.2010 18:28, schrieb chris:
>
>>> Hi,
>>> is it possible to call ENVI routines from IDL directly, e.g. Basic
>>> Tools/Stretch Data, so that the specific menu will be opened?
>
>>> Thanks in advance
>
>>> CR
>
>> Well, you can certainly access just about every ENVI menu routine from
>> IDL by calling the corresponding "DOIT", e.g.,
>
>> ENVI_DOIT, STRETCH_DOIT, FID=FID, ...
>
>> but you have to supply everything that you would have otherwise entered
>> into the menu as keywords.
>
>> Mort
>
> Dear Mort, dear David,
> i know how to use ENVI routines from IDL, but some routines have
> limitations. The same routines are not limited if you would call them
> from the ENVI menu. The stretching routine was only an example. Any
> other ideas?
>
> Best regards
>
> CR

Chris,

Which routines in particular? ENVI I have found is a lot better in
that regard than it has been in the past.

FYI sometimes you need to call a few routines to make up for the
functionality you see in the ENVI GUI, e.g. BACKGROUND_STATS_DOIT
before the MTMF_DOIT whereas in the GUI you do this together.

David,

Not to sound like a marketing rep for ITT but I do sometimes think
ENVI is often overlooked by the remote sensing IDL community in
general. Yes it is more expensive but how much is ones time worth? A
lot of the pain in the neck tasks you need to code in IDL (map
projections, file i/o etc) are one liners in ENVI and can be coded
generically for use with any dataset quickly. Tiling and tiled
routines also let you use massive images efficiently without having to
stuff around. I do tend to find its quicker to code something quickly
that you can be reasonable confident is correct.

Max
Re: call ENVI menu routines [message #72618 is a reply to message #72612] Wed, 22 September 2010 11:55 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> The real problem is, as Mort and I have reported before,
> ENVI doesn't use its own API. If they had to eat their
> own cooking, things would probably improve. :-)

Having said that, I watched an on-line seminar yesterday
on using ENVI with the new WorldView2 satellite data from
DigitalGlobe and I was *extremely* impressed with the
latest version of ENVI (which I have never used). In
the right hands (not mine, apparently), that is an
impressive piece of software. :-)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: call ENVI menu routines [message #72619 is a reply to message #72618] Wed, 22 September 2010 11:45 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
chris writes:

> i know how to use ENVI routines from IDL, but some routines have
> limitations. The same routines are not limited if you would call them
> from the ENVI menu. The stretching routine was only an example. Any
> other ideas?

The real problem is, as Mort and I have reported before,
ENVI doesn't use its own API. If they had to eat their
own cooking, things would probably improve. :-)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: call ENVI menu routines [message #72621 is a reply to message #72619] Wed, 22 September 2010 11:39 Go to previous message
rogass is currently offline  rogass
Messages: 200
Registered: April 2008
Senior Member
On 22 Sep., 20:17, Mort Canty <m.ca...@fz-juelich.de> wrote:
> Am 22.09.2010 18:28, schrieb chris:
>
>> Hi,
>> is it possible to call ENVI routines from IDL directly, e.g. Basic
>> Tools/Stretch Data, so that the specific menu will be opened?
>
>> Thanks in advance
>
>> CR
>
> Well, you can certainly access just about every ENVI menu routine from
> IDL by calling the corresponding "DOIT", e.g.,
>
> ENVI_DOIT, STRETCH_DOIT, FID=FID, ...
>
> but you have to supply everything that you would have otherwise entered
> into the menu as keywords.
>
> Mort

Dear Mort, dear David,
i know how to use ENVI routines from IDL, but some routines have
limitations. The same routines are not limited if you would call them
from the ENVI menu. The stretching routine was only an example. Any
other ideas?

Best regards

CR
Re: call ENVI menu routines [message #72622 is a reply to message #72621] Wed, 22 September 2010 11:17 Go to previous message
Mort Canty is currently offline  Mort Canty
Messages: 134
Registered: March 2003
Senior Member
Am 22.09.2010 18:28, schrieb chris:
> Hi,
> is it possible to call ENVI routines from IDL directly, e.g. Basic
> Tools/Stretch Data, so that the specific menu will be opened?
>
> Thanks in advance
>
> CR

Well, you can certainly access just about every ENVI menu routine from
IDL by calling the corresponding "DOIT", e.g.,

ENVI_DOIT, STRETCH_DOIT, FID=FID, ...

but you have to supply everything that you would have otherwise entered
into the menu as keywords.

Mort
Re: call ENVI menu routines [message #72625 is a reply to message #72622] Wed, 22 September 2010 09:38 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
chris writes:

> is it possible to call ENVI routines from IDL directly, e.g. Basic
> Tools/Stretch Data, so that the specific menu will be opened?

I don't know. I doubt it.

But if you just want to stretch data, XStretch works
pretty well. It has all of the stretches ENVI has.
(Or at least it did when I wrote it.)

http://www.dfanning.com/ip_tips/xstretch.html

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: isotropic keyword for surface?
Next Topic: Re: isotropic keyword for surface?

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

Current Time: Wed Oct 08 13:56:10 PDT 2025

Total time taken to generate the page: 0.00527 seconds