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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

READ THIS DATA IN TEXT FILE AND TRANSFORM IT, WRITE IT IN TEXT FILE

Status
Not open for further replies.

ahmadbels

Technical User
Sep 3, 2014
1
NG
please help me guys, i want to read and trans for the attached data 'ozone.txt' in text file and after i transform it, i want to write it in the attached from 'result.txt'

this is the data

Day: 207 Jul 25, 1996 EP/TOMS CORRECTED OZONE GEN:07.164 V8 ALECT: 11:16 AM

Longitudes: 288 bins centered on 179.375 W to 179.375 E (1.25 degree steps)

Latitudes : 180 bins centered on 89.5 S to 89.5 N (1.00 degree steps)

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0122 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0170 0 0 0 0 0

0 0 0 0 0 0 0 0202 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 10 0 0 0 0 0 0 0 0 0190 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 15 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0200 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0210 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 lat = -89.5

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0 0 lat = -88.5


this is the way i want it to be

lon lat ozone
-89.5 -179.375 0
-89.5 -178.125 0
-89.5 -176.875 0
. . .
. . .
. . .
-89.5 179.375 0

-88.5 -179.375 0
-88.5 -178.125 0
-88.5 -176.875 0
. . .
. . .
. . .
-88.5 179.375 0
. . .
. . .
. . .
89.5 -179.375 0
89.5 -178.125 0
89.5 -176.875 0
. . .
. . .
. . .
89.5 179.375 0



thanks guys
 
What have you done so far? Which section are you having problems with?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top