Hello,
I am trying to insert -9999 for any missing 10 minute data in a text file I am reading.
Data format sample is as follows in the input text file:
061201 1910 4.88 5.01
061201 1920 4.54 4.71
061201 1930 4.58 5.20
061201 2010 4.65 4.91
Required output:
061201 1910 4.88 5.01
061201 1920 4.54 4.71
061201 1930 4.58 5.20
061201 1940 -9999 -9999
061201 1950 -9999 -9999
061201 2000 -9999 -9999
061201 2010 4.65 4.91
I would appreciate any help. Thank you, RB
I am trying to insert -9999 for any missing 10 minute data in a text file I am reading.
Data format sample is as follows in the input text file:
061201 1910 4.88 5.01
061201 1920 4.54 4.71
061201 1930 4.58 5.20
061201 2010 4.65 4.91
Required output:
061201 1910 4.88 5.01
061201 1920 4.54 4.71
061201 1930 4.58 5.20
061201 1940 -9999 -9999
061201 1950 -9999 -9999
061201 2000 -9999 -9999
061201 2010 4.65 4.91
I would appreciate any help. Thank you, RB
Comment