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 #57980 is a reply to message #57979] Thu, 10 January 2008 10:23 Go to previous messageGo to previous message
placebo is currently offline  placebo
Messages: 3
Registered: January 2008
Junior Member
> What are the minimum and maximum values of your coordinate data?

The range for the data is small, nanometer sizes. My data files
represent the coordinates for atom positions in a crystal lattice.
The precision in the coordinates goes out to 15 or so decimal places,
for ex: 4.271762465783982 nm.

> The idea is to merge your array of coordinates in a single vector that
> can be sorted.

> 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

I see how the example works with Integers, but I need to find what
"color" would be for each row of data (floating point). I think the
"MOD" function may pose a problem here, although I've not played
around with it yet.
[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: Fri Oct 10 17:50:46 PDT 2025

Total time taken to generate the page: 0.55599 seconds