I have two text files that are set up similarly. The first file has the variables WHOI Date (YYYYMMDDHHHH) (5 spaces), Visibility, (5 spaces), and Present weather coding (either 1 or 2 letters) there are 2700096 characters in both files and 96432 rows in each.
Example of File 1:
200001010000 65
200001010100 65
200001010200 M M
200001010300 65
200001010400 0.4 F
200001010500 0.1 F
200001010600 0.0 F
The other file consists of the same starting and ending point for the WHOI date, (10 spaces), wind direction, wind speed, and temperature.
Example of File 2:
200001010000 280.00000000 14.92893900 -16.11111111
200001010100 280.00000000 14.92893900 -16.11111111
200001010200 -999.00000000 -999.00000000 -999.00000000
200001010300 280.00000000 15.95852100 -16.11111111
200001010400 280.00000000 16.47331200 -17.22222222
200001010500 280.00000000 19.04726700 -16.11111111
200001010600 280.00000000 22.13601300 -15.00000000
200001010700 280.00000000 22.65080400 -13.88888889
200001010800 280.00000000 22.65080400 -12.77777778
200001010900 280.00000000 20.59164000 -12.77777778
The program has to be made in perl for my research study. I am not familiar with perl because the syntax is different from FORTRAN which I am used to. Any help of direction would be greatly appreciated. This is only one minor part of the study, so if I can learn how to even attempt this first that would be great! I need to write one more perl script, so if I see one, I should be able to understand and be able to attempt to do the rest! Thanks very much!!!
Example of File 1:
200001010000 65
200001010100 65
200001010200 M M
200001010300 65
200001010400 0.4 F
200001010500 0.1 F
200001010600 0.0 F
The other file consists of the same starting and ending point for the WHOI date, (10 spaces), wind direction, wind speed, and temperature.
Example of File 2:
200001010000 280.00000000 14.92893900 -16.11111111
200001010100 280.00000000 14.92893900 -16.11111111
200001010200 -999.00000000 -999.00000000 -999.00000000
200001010300 280.00000000 15.95852100 -16.11111111
200001010400 280.00000000 16.47331200 -17.22222222
200001010500 280.00000000 19.04726700 -16.11111111
200001010600 280.00000000 22.13601300 -15.00000000
200001010700 280.00000000 22.65080400 -13.88888889
200001010800 280.00000000 22.65080400 -12.77777778
200001010900 280.00000000 20.59164000 -12.77777778
The program has to be made in perl for my research study. I am not familiar with perl because the syntax is different from FORTRAN which I am used to. Any help of direction would be greatly appreciated. This is only one minor part of the study, so if I can learn how to even attempt this first that would be great! I need to write one more perl script, so if I see one, I should be able to understand and be able to attempt to do the rest! Thanks very much!!!