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

Home » Public Forums » archive » Locating desired values in an array.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Locating desired values in an array. [message #89093] Wed, 23 July 2014 18:50 Go to previous message
gpeterso is currently offline  gpeterso
Messages: 22
Registered: February 2013
Junior Member
So i have an array that is [2,58]. I need the number that is closet to -42 for each time the track number increases by one. So for example for track number 28742 I should get the third bin number of -42.6996. I am very confused on how to do approach this.



lat track number
-45.9996 28742.0
-44.3502 28742.0
-42.6996 28742.0
-41.0498 28742.0
-39.3996 28742.0
-44.5354 28743.0
-42.8868 28743.0
-41.2346 28743.0
-39.5846 28743.0
-45.3804 28744.0
-43.7284 28744.0
-42.0808 28744.0
-40.4308 28744.0
-38.7792 28744.0
-45.4610 28745.0
-43.8098 28745.0
-42.1594 28745.0
-40.5126 28745.0
-38.8608 28745.0
-45.1552 28746.0
-43.5100 28746.0
-41.8678 28746.0
-40.2296 28746.0
-38.5952 28746.0
-44.9840 28747.0
-43.3334 28747.0
-40.0314 28747.0
-38.3800 28747.0
-45.8540 28748.0
-44.2030 28748.0
-42.5522 28748.0
-40.9032 28748.0
-39.2532 28748.0
-45.5312 28749.0
-43.9034 28749.0
-42.2568 28749.0
-40.6044 28749.0
-38.9540 28749.0
-44.8084 28750.0
-43.1594 28750.0
-41.5118 28750.0
-39.8642 28750.0
-38.2144 28750.0
-44.8434 28751.0
-43.1930 28751.0
-41.5444 28751.0
-39.8958 28751.0
-38.2454 28751.0
-44.8526 28752.0
-43.2026 28752.0
-41.5494 28752.0
-39.8990 28752.0
-38.2494 28752.0
-45.4156 28753.0
-43.7656 28753.0
-42.1140 28753.0
-40.4638 28753.0
-38.8128 28753.0
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL and C inter-language communication / call_external()
Next Topic: how can you convert CMIP5 model output time ?

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

Current Time: Wed Oct 08 15:07:08 PDT 2025

Total time taken to generate the page: 0.00442 seconds