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

Home » Public Forums » archive » multiple filters take 2
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: multiple filters [message #23657 is a reply to message #23327] Tue, 06 February 2001 04:02 Go to previous messageGo to previous message
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
Rochelle Hatton wrote:
>
> Actually, I am using IDL on a Sun. We have a few different
> versions of IDL due to the versions of Unix we have installed
> around the place.
> I was working in 5.1(I know, I know) to ensure compatibility on
> all our systems when I first posted my query.
>
> Strangely, I was reading the online help about dialog_pickfile in 5.4
> and came across this:
> "On UNIX, the FILTER keyword does not support specifying more
> than one filter.
> If you specify more than one filter, all files in the current
> directory will be displayed.
> For example, to display only files of type .jpg, .tif, or
> .png in the file selection window, you could use the
> following code:
> file = DIALOG_PICKFILE(/READ, $
> FILTER = ['*.jpg', '*.tif', '*.png'])..."
>
> Rochelle Hatton
> Department of Nuclear Medicine and Ultrasound
> Westmead Hospital
> ph(02) 9845 7223

It's a little while since you asked this question, but maybe you are
still interested in how to do this? What is meant with "a single
filter" is a little ambiguous: do you want all these files displayed
simultaneously (as in your example, where you want all "image" files),
or do you want to select different file types exclusively (these are
ususally listed in a drop down box).

Now, the Unix filter only allows one "exclusive" selection, but
(contrary to the Windows version) can be edited by the user. I have
never tried to use the simulataneous entries which according to the
documentation should work as you suggest, but you can achieve such an
effect with something like "*." (often it is
sufficiently exact to specify something like "*.[jtp]??" instead). In
summary: take advantage of the way Unix expands wild cards.

Cheers,
Martin



--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Dr. Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 [[
[[ fax: +49 40 41173-298 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: speed comparison of IDL, numPy, Matlab
Next Topic: Correction

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

Current Time: Fri Oct 10 05:04:27 PDT 2025

Total time taken to generate the page: 0.16075 seconds