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

Home » Public Forums » archive » help needed to make the program run faster
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: help needed to make the program run faster [message #93624 is a reply to message #93622] Fri, 09 September 2016 07:39 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Friday, September 9, 2016 at 5:12:00 AM UTC-4, Markus Schmassmann wrote:

> for i=1,nn-1 do begin
> img[*,*,i]=readfits(file(i),hi)
> h[*,i]=hi
> endfor
>

One speed tip is to not use the asterisk above and write it as

for i=1,nn-1 do begin
img[0,0,i]=readfits(file[i],hi)
h[0,i]=hi
endfor


http://www.idlcoyote.com/code_tips/asterisk.html

Wayne
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TS_HANTS function question
Next Topic: Need e-book of Image Analysis, Classification and Change Detection in Remote Sensing: With Algorithms for ENVI/IDL and Python by Mort Canty

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

Current Time: Wed Oct 08 15:50:19 PDT 2025

Total time taken to generate the page: 0.15446 seconds