Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help needed urgent: Data blending while repect original shape 1

Status
Not open for further replies.

jasminely

Technical User
Joined
Sep 13, 2006
Messages
1
Location
US
Gurus please help!

For example, I have 0:00 to 0:17 data available, but missing out 0:18 to 0:56 and I have 0:57 data. I would want copy from yesterday's 0:18 to 0:56 to today and respect the values of today's 0:17 and 0:56. I need the copied data to be blended into today's data set and keep the original shape as much as possible and smooth out the whole copied data.
Big thanks!
 
Read yesterdays's data into a hash, with the 0:00 through 0:56 as the hash key.

Read today's data, and update the hash entries where you have data.

Write the hash back to disk. Use it as input to tomorrow's run. The data set will contain the most recent value for each hash bucket.

It sounds like that's what you want, anyway.

Steve

[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object::PerlDesignPatterns)[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top