[Tutor] Missing Data in Txt Files

bob gailer bgailer at gmail.com
Tue Jan 11 02:15:31 CET 2011


On 1/10/2011 7:10 PM, Benson, Randall wrote:
> Hello,
>
> Does anyone have a program that will read txt file data and insert -9999
> or similar for missing data?  I have 10minute data and there are hour
> chunks that are missing that need a missing data insert for that missing
> hour but not the 10min period.  The txt file has a date column (yymmdd),
> a time (hhmm) column and the rest are data columns shown below.  See
> column 1 below with i
>
> 080618 1000  4.62  7.00 227.0  -3.38  -3.15   0.00 9999.99 9999.99  0.91
> 080618 1410  5.19  7.30 232.0  -4.09  -3.20   0.00 9999.99 9999.99  1.03
>
> Muchas gracias,
>
I agree with Alan. We need more detail.

Why are you asking this question on the Python Tutor list?

I presume you are using Python.

We prefer to help you as you show us effort. Do you know enough Python 
to write a program that reads a file and creates another?

I suggest you start with that, and also give us enough additional 
details so we fully understand what you want.

Sample input - sample output would help a lot.

-- 
Bob Gailer
919-636-4239
Chapel Hill NC



More information about the Tutor mailing list