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

Home » Public Forums » archive » Re: Loading Sorted Images into a 3D array
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: Loading Sorted Images into a 3D array [message #77041] Mon, 25 July 2011 01:20 Go to previous message
Carsten Lechte is currently offline  Carsten Lechte
Messages: 124
Registered: August 2006
Senior Member
On 21/07/11 18:21, Kenneth P. Bowman wrote:
> I am sure this can be done in IDL, but it seems to me that
> the simple solution is to rename your files ...001.png, ...002.png,
> etc. That will probably make things easier in other ways also.

Or, if the filenames are not under one's control, one could try to
parse them like this:


files = string( indgen(100), format='("asdf",i0)')
print, files
fileswrong = files[ sort( files)] ; sort lexically
print, fileswrong
nums = long( strmid( fileswrong, 4))
print, nums
filesrightagain = fileswrong[ sort( nums)]
print, filesrightagain



chl
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: summation of bands
Next Topic: Confidence Bands

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

Current Time: Wed Oct 08 13:31:19 PDT 2025

Total time taken to generate the page: 0.00404 seconds