I've attached a smple file of data. I would like to make a function for loading the data. The big problem is that they only put the original date in the first line and then just have a time wave for the rest of the data lines. The date changes at midnight, but there is no date wave to specify this... Is there a way to create a function that will take that starting date and make it it's own wave where it jumps up a day every time midnight comes around? It is an annoying way that they post the data, but its what I have to work with and adding the date all the way down is tedious.
2-2-15.txt
(230.81 KB)
I also attach an Igor experiment where I adjusted you time data.
July 13, 2015 at 04:18 am - Permalink
Then,
To test this, I opened the file as an Igor notebook (File->Open->Notebook). I then copied the data from the file, excluding the first two lines, into the clipboard. I then used Data->Load Waves->Load Waves and selected Delimited Text (/J). I clicked the Make table, Load From Clipboard, Double-precision, and Auto Name checkboxes and unchecked the rest. I then clicked Do It.
I then executed the following commands:
To determine if your date/time data is evenly-spaced, I executed the following commands:
From this I see that your data is mostly every 10 seconds but occasionally has 11-second spacing. You could convert this to waveform data on 10-second intervals by interpolation with little loss of fidelity.
July 13, 2015 at 10:35 am - Permalink