Home »
Public Forums »
archive »
printf within time interval (also posted on exelisvis.com)
printf within time interval (also posted on exelisvis.com) [message #82273] |
Sat, 24 November 2012 15:57 |
justinclouds
Messages: 25 Registered: December 2012
|
Junior Member |
|
|
I am fairly new to IDL and need some help with coding a specific task. I have a data file with time intervals that I read in from one text file (file A with i elements). For example, the time interval vectors are 'timestart' and 'timeend' and they each have the form FLOAT = Array[1, 78]. The times are in utc seconds. These two vectors form the time interval (i.e. timestart[i] and timeend[i] where timestart[i] < timeend[i]) . I also read in another text file (file B with j elements). File B has a time vector 'time' of the form FLOAT = Array[18295] and also in utc seconds. I need to printf a binary value of 1 to a new text file when 'time' is between 'timestart' and 'timeend' and a binary value of 0 when 'time' is outside the time period identified by 'timestart' and 'timeend' for each value of time[j]. The objective is to identify when 'time' occurs between 'timestart' and 'timeend' by a binary 1 and 0 when it does not.
Any help with example code related to this task would be greatly appreciated!
|
|
|
Current Time: Wed Oct 08 13:33:54 PDT 2025
Total time taken to generate the page: 0.00589 seconds