[ncl-talk] asciiread
Yang Yang
yang123yang at yahoo.com
Wed Aug 19 19:25:23 MDT 2015
Dear Sir/Madam:I have a text file with 13376 col. I used the following script to read:------------------------------------------------------------------------------------------------------------
mn = numAsciiRow("NIWA_Haast_20140624.dat")
ml = numAsciiCol("NIWA_Haast_20140624.dat")
data = asciiread("NIWA_Haast_20140624.dat", (/mn,ml/),"float")
print(mn)
print(ml)
print(data(mn-1,10))------------------------------------------------------------------------------------------------------------
After ran the script, I got:
----------------------------------------------------------------------------
Variable: mn
Type: integer
Total Size: 4 bytes
1 values
Number of Dimensions: 1
Dimensions and sizes: [1]
Coordinates:
(0) 13376
Variable: ml
Type: integer
Total Size: 4 bytes
1 values
Number of Dimensions: 1
Dimensions and sizes: [1]
Coordinates:
(0) 21
Variable: data (subsection)
Type: float
Total Size: 4 bytes
1 values
Number of Dimensions: 1
Dimensions and sizes: [1]
Coordinates:
Number Of Attributes: 1
_FillValue : 9.96921e+36
(0) 9.96921e+36
------------------------------------------------------------------------------------------------------The data(mn-1,10) is not a missing value. Actually, more than 100 col numbers from the end of the file were not read correctly. What is the problem? I used nclv.6.0.0What is the maximum value of the column of a text file allowed in asciiread?
Thank you very much!
RegardsEd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150820/d7d0ff1e/attachment.html
More information about the ncl-talk
mailing list