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

Home » Public Forums » archive » filename
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
filename [message #23652] Wed, 07 February 2001 04:45 Go to next message
Gernot Reishofer is currently offline  Gernot Reishofer
Messages: 5
Registered: January 2001
Junior Member
hi,

I have to save two files with the same filename but different
extensions. Using DIALOG_PICKFILE creates path+filename+extention.
Can you experts tell me the shortest way to get the filename avoiding
too many string operations?

thanks for help

Gernot
Re: filename [message #23690 is a reply to message #23652] Fri, 09 February 2001 09:43 Go to previous messageGo to next message
Patrick Broos is currently offline  Patrick Broos
Messages: 27
Registered: December 1996
Junior Member
I recommend "fdecomp" from Landsman's excellent IDL Astro library:

http://idlastro.gsfc.nasa.gov/homepage.html

Patrick Broos



Reishofer wrote:

> hi,
>
> I have to save two files with the same filename but different
> extensions. Using DIALOG_PICKFILE creates path+filename+extention.
> Can you experts tell me the shortest way to get the filename avoiding
> too many string operations?
>
> thanks for help
>
> Gernot

--
============================================================ ========
Patrick S. Broos, Software Engineer patb@astro.psu.edu

Department of Astronomy and Astrophysics My office 814-863-7947
Penn State University
525 Davey Lab FAX 814-863-8686
University Park, PA 16802-6305
http://www.astro.psu.edu Group office 863-9550
============================================================ ========
Re: filename [message #23806 is a reply to message #23652] Sun, 18 February 2001 13:24 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Gernot Reishofer wrote:
>
> hi,
>
> I have to save two files with the same filename but different
> extensions. Using DIALOG_PICKFILE creates path+filename+extention.
> Can you experts tell me the shortest way to get the filename avoiding
> too many string operations?
>
> thanks for help
>
> Gernot

Dear Gernot,

you may use file_path_name_ext from our library.

http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_source/idl_ html/dbase/download/file_path_name_ext.tar.gz

file='d:\alpha\beta\filen.ext
f=file_path_name_ext(file)
print, f.path
d:/alpha/beta/
print, f.name
filen
print, f.ext
.ext

For further routines and licensing please look first at
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml


regards

Reimar

--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg1/
=============================================
a IDL library at ForschungsZentrum J�lich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml

http://www.fz-juelich.de/zb/text/publikation/juel3786.html
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Good text for beginners?
Next Topic: Re: Help with reading structure from file

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

Current Time: Wed Oct 08 15:16:08 PDT 2025

Total time taken to generate the page: 0.00879 seconds