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

Home » Public Forums » archive » Re: strjoin - IDL 4 dummies
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: strjoin - IDL 4 dummies [message #46375 is a reply to message #46374] Tue, 15 November 2005 07:15 Go to previous message
Robert Moss is currently offline  Robert Moss
Messages: 74
Registered: February 1996
Member
Liberum wrote:
> Hi
>
> Having a problem with strjoin when doing the following:
>
> date = string(date)
> print, size(date,/tname)
> s = strjoin(["some_path_to_files", exp, date, '*h5'],"/",/single)
> print, s
> where date exp is already a string.
> IDL prints:
>
> STRING
> /data/proj/safworks/sheldon/MSG_PPS_COMP/data/pps/cloudmask/
> 200412/*hdf
>
> Now, it is this space that I cannot get rid of. I am certain that
> everything element in the list are strings but this space still shows
> up.
>
> Any help is greatly appreciated,
> Lib
>

I cannot see the space in your post, but I am guessing it is just before
the date. Try this

date = strtrim( date, 2 )

This will remove leading and trailing spaces, which string() does not.

--
Robert Moss, PhD
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: widget ?
Next Topic: Re: How to avoid texture-map overlapping?

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

Current Time: Sun Oct 12 17:18:33 PDT 2025

Total time taken to generate the page: 1.99850 seconds