# INITIALIZE the UDF common variables
UDFInits
# GET the key for the UDF hierarchy IMAGE IMAGE1 OA ORBIT IMOORBIT
set KeY [GetDataKey IMAGE IMAGE1 OA ORBIT IMOORBIT]
# OPEN the data file containing the time 2001 198 1 0 0
FileOpen $KeY 0 2001 198 1 0 0 2001 198 6 0 0
# POSITION the file pointer to the beginning of the requested time
FilePos $KeY 0 2001 198 1 0 0
# MAKE and initial read of the data and print the time.
ReadUDF $KeY 0 OA 0 0 0
puts stderr "$ExDa(OA,BYR) $ExDa(OA,BDY) $ExDa(OA,BMSEC) to \
$ExDa(OA,EYR) $ExDa(OA,EDY) $ExDa(OA,EMSEC)"
# NOW read the data at 1 hour increments, printing the time after each read
for { set I 2 } { $I < 8 } { incr I } {
ToThisTime $KeY 0 2001 198 $I 0 0 FINE
ReadUDF $KeY 0 OA 0 0 0
puts stderr "$ExDa(OA,BYR) $ExDa(OA,BDY) $ExDa(OA,BMSEC) to \
$ExDa(OA,EYR) $ExDa(OA,EDY) $ExDa(OA,EMSEC)"
}
> 2001 198 3600000 to 2001 198 3720000
> 2001 198 7200000 to 2001 198 7320000
> 2001 198 10800000 to 2001 198 10920000
> 2001 198 14400000 to 2001 198 14520000
> 2001 198 18000000 to 2001 198 18120000
> 2001 198 21600000 to 2001 198 21720000
> 2001 198 25200000 to 2001 198 25320000