Although the exact formatting of your data does not show up well on the User Forum display, I bet your data is formatted with a single-space-character delimiter between each column entry. I would also guess that the extra "linefeed" space between blocks of 20 rows consists of a single carriage-return/newline character(s). In any case, the easiest way to read this data would probably be with READ_ASCII and ASCII_TEMPLATE. Here is example code:
t = ascii_template(file) ; Just follow the wizard instructions
data = read_ascii(file, TEMPLATE=t)
; Note that READ_ASCII ignored the blank lines
print, data.FIELD5, FORMAT='(5E)'
; 1.4978014E-029 2.7356384E-029 1.7181958E-029 5.1462106E-029 1.7279938E-028
; 4.1179305E-028 7.8687864E-028 1.3039510E-027 1.9620194E-027 2.7575307E-027
; 3.6865342E-027 4.7455114E-027 5.9315888E-027 7.2425058E-027 8.6764970E-027
; 1.0232169E-026 1.1908398E-026 1.3704266E-026 1.5618996E-026 1.7651924E-026
; 1.5334880E-029 3.4616346E-029 7.2244852E-029 6.5017481E-029 5.2008733E-029
; 1.0745366E-028 2.9741127E-028 6.6470506E-028 1.2299125E-027 1.9996441E-027
; 2.9732718E-027 4.1470876E-027 5.5166214E-027 7.0775060E-027 8.8257573E-027
; 1.0757963E-026 1.2871366E-026 1.5163762E-026 1.7633325E-026 2.0278425E-026
; Plot the irst 20-row block of data:
x = data.FIELD3[0:19]
y1 = data.FIELD5[0:19]
y2 = data.FIELD6[0:19]
; Get an appropriate Y-range by getting the min and max of both Y columns
minY = min([y1, y2], MAX=maxY)
plot, x, y1, YRANGE=[minY, maxY] ; Plot the first dataset
oplot, x, y2 ; Overplot the 2nd dataset
James Jones
|