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

Home » Public Forums » archive » Re: How to programmatically access the Available Band List
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: How to programmatically access the Available Band List [message #65924] Thu, 02 April 2009 04:16
Leonardo R. Sbaraini is currently offline  Leonardo R. Sbaraini
Messages: 26
Registered: October 2007
Junior Member
Hello Master!
Yeah, this line works but the file displaygroup.grp loads
automatically the 3 images. (when loaded by the user obviously).

See below its creation:

openw, fu, 'displaygroup.grp', /GET_LUN

printf, fu, '<ENVI Display Group Information>'
printf, fu, 'display data file = {'
printf, fu, '"' + strEnviFileRed + '",'
printf, fu, '"' + strEnviFileGreen + '",'
printf, fu, '"' + strEnviFileBlue + '"}'

printf, fu, 'display data bands = {1,1,1}'
printf, fu, 'display window style = 0'
printf, fu, ';'
printf, fu, 'image window location = {5,25,0}'
printf, fu, 'image window border = {0,0,0,0}'
printf, fu, 'image window border color = 0'
printf, fu, 'image window size = {400,400}'
printf, fu, 'image window upper left location = {0,0}'
printf, fu, 'image window current pixel = {10,10}'
printf, fu, 'image window menubar = 1'
printf, fu, 'image window scroll bars = 0'
printf, fu, ';'
printf, fu, 'zoom window location = {300,500,0}'
printf, fu, 'zoom window size = {200,200}'
printf, fu, 'zoom window factor = 4'
printf, fu, 'zoom window menubar = 0'
printf, fu, 'zoom window scroll bars = 0'
printf, fu, 'zoom window interpolation = 0'
printf, fu, ';'
printf, fu, 'scroll window location = {10,500,0}'
printf, fu, 'scroll window size = {256,124}'
printf, fu, 'scroll window menubar = 0'
printf, fu, 'scroll window factor = 112.97265625'
printf, fu, 'scroll image subset = {1,7101,1,3451}'
close, fu
free_lun, fu

The file must be loaded by menu ENVI/File/Restore Display Group :)

Thanks for answering, cya around !
[ ]'s
Re: How to programmatically access the Available Band List [message #65931 is a reply to message #65924] Wed, 01 April 2009 03:46 Go to previous message
Andre Abrantes is currently offline  Andre Abrantes
Messages: 3
Registered: February 2007
Junior Member
Hi Leo !

Try the follow coomand line:

envi_band_select;, BASE = availableBandList;, /NO_LIST

You can go deeper using fake events to debug internal events in
Envi_Band_Select.

See you...
Andre.

On Mar 31, 8:27 am, Leonardo Sbaraini <leonardo.computa...@gmail.com>
wrote:
> I'm more a ENVI programmer than IDL and we need here to follow the
> software client specification.
> So this is why I need to try do the exatcly thing.
>
> I solve this creating the file "displaygroup.grp" and envi headers
> automatically and allowing the user to open it.
> But in this case the image must be the envi type.
>
> Thanks for your time.
Re: How to programmatically access the Available Band List [message #65950 is a reply to message #65931] Tue, 31 March 2009 04:27 Go to previous message
Leonardo R. Sbaraini is currently offline  Leonardo R. Sbaraini
Messages: 26
Registered: October 2007
Junior Member
I'm more a ENVI programmer than IDL and we need here to follow the
software client specification.
So this is why I need to try do the exatcly thing.

I solve this creating the file "displaygroup.grp" and envi headers
automatically and allowing the user to open it.
But in this case the image must be the envi type.

Thanks for your time.
Re: How to programmatically access the Available Band List [message #65957 is a reply to message #65950] Mon, 30 March 2009 11:13 Go to previous message
jeffnettles4870 is currently offline  jeffnettles4870
Messages: 111
Registered: October 2006
Senior Member
On Mar 30, 12:24 pm, Leonardo Sbaraini <leonardo.computa...@gmail.com>
wrote:
> I need to bring up the band list automatically to chose 3 single-band
> images (already loaded) to create a RGB image.
> I tried to use:
>
> - RGB_GET_BANDS  (shows and allow selection but dont have button like
> "Load in a new display")
> - WIDGET_BAND_LIST
>
> The documentation about the WIDGET_BAND_LIST  is very poor, only have
> the parameters:
>
> WIDGET_BAND_LIST base ABL AUTO_MANAGE CONTEXT_EVENTS CONTEXT_ID FID
> FRAME MATCH_FID MAX_YSIZE MULTIPLE NO_SELECT POS PROMPT SCR_XSIZE
> SCR_YSIZE UVALUE XSIZE YSIZE
>
> I was clear about the question?  Someone can help ? Thanks...

I doubt ITTVIS intends for you to mess with the available bands list,
but you should be able to give the user the ability to pick three
images without too much trouble using other widgets. Have you tried
ENVI_SELECT? If nothing else, you could build a list of open images
yourself, make a list widget and let the user select the three from
that list, then display them with ENVI_DISPLAY_BANDS.

Jeff
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Non-negative matrix factorization
Next Topic: Indexing arrays with arrays

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

Current Time: Wed Oct 08 18:38:32 PDT 2025

Total time taken to generate the page: 0.00653 seconds