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

Home » Public Forums » archive » Re: array convol optimizationv slow now
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: array convol optimizationv slow now [message #67282] Mon, 13 July 2009 16:53 Go to previous message
Chris[6] is currently offline  Chris[6]
Messages: 84
Registered: July 2008
Member
On Jul 13, 1:26 pm, David Fanning <n...@dfanning.com> wrote:
> newerjazz writes:
>> each particle is a single molecule of protein; we need to visualize
>> all the proteins to get meaningful interpretation.
>
> How does that work? If I put 100 million dots on my screen, things
> get a little blurry. (Of course, my eyes aren't what they used to
> be, admittedly.)
>
>> do you have any suggestions of getting the x,y locations on the image
>> w/ an array operation instead of a for loop?
>
> No, I can't think of any way to do this an an array. :-(
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Coyote's Guide to IDL Programming (www.dfanning.com)
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

I've written a routine called densitymap which makes smoothed surface
density maps based on the position of 2d sources. You might want to
check it out (it has been moderately debugged)

http://www.ifa.hawaii.edu/users/beaumont/code/

It uses a different smoothing scheme (it uses the distance to each
pixel's n-th nearest neighbor to estimate the surface density).

If you use it, you should probably download the IDL astronomy user's
library, as well as
http://www.ifa.hawaii.edu/~beaumont/code/beaumont_library.ta r
to avoid dependency issues.

Otherwise, you could use hist_2d to pixellate the locations of each
point, and then convolve the histogram with a gaussian

Chris
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Contour lines are disappearing
Next Topic: file_info not detecting write-protected files under windows (bug?)

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

Current Time: Sat Oct 11 04:56:52 PDT 2025

Total time taken to generate the page: 0.00534 seconds