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

Home » Public Forums » archive » Re: how to sort data based on other sorted data
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: how to sort data based on other sorted data [message #57994 is a reply to message #57980] Thu, 10 January 2008 05:52 Go to previous messageGo to previous message
JMB is currently offline  JMB
Messages: 13
Registered: January 2008
Junior Member
> I have an input file containing coordinate data (three columns) with a
> couple thousand rows.

Hi Placebo!

What are the minimum and maximum values of your coordinate data?

The idea is to merge your array of coordinates in a single vector that
can be sorted. The merging has to be done in a way that x,y,z info
doesn't mix and can still be extracted after sorting. Like for the
16777216 colors that can be specified by their R,G,B components.

Example:
color=4700000
Blue=fix(color/2.^16)
Green=fix((color mod 2.^16)/2.^8)
Red=fix((color mod 2.^16) mod 2.^8)
Print,Blue,Green,Red

Jerome
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How to Auto Insert IDL 7 Template
Next Topic: IDL Workbench Nits

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

Current Time: Sat Oct 11 10:24:15 PDT 2025

Total time taken to generate the page: 0.64048 seconds