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

Home » Public Forums » archive » stacking the images according to julian date
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: stacking the images according to julian date [message #85597 is a reply to message #85596] Tue, 20 August 2013 14:17 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Wayne Landsman writes:

> And to be an annoying kibbutzer-- I believe this can also be done without loops:
>
> filenames = File_Search("lndsr.*", COUNT=count)
> year = Fix(StrMid(filenames,15,4))
> doy = Fix(StrMid(filenames,19,3))
> juldates = JulDay(1,doy, year)
>
> ; Sort the Julian dates.
> sorted = Sort(juldates)
>
> ; Sort the filenames in the right order for stacking.
>
> filenames = filenames[sorted]

Even better, if harder for a newby to understand! ;-)

Cheers,

David

P.S. It's even hard for old guys to understand. I almost always have to
read your article on STRMID to understand how it works on arrays.

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Maximum number of keywords?
Next Topic: Non-intuitive result with !Null in Where()

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

Current Time: Fri Oct 10 16:49:52 PDT 2025

Total time taken to generate the page: 1.01953 seconds