NCL Home>
Application examples>
File IO ||
Data files for examples
Read ASCII
data=asciiread(filename, dimensions, type of data)
Discussion
- The NCL function asciiread is used to read in
ascii data
- The format must be known, because the second argument is the
dimensions of the file (/rows,cols/)
- Reading in files of mixed type (e.g. strings and floats) is not
recommended. NCL will see only the type you specify in the call
- NCL strings are limited to 257 characters, so if you have strings
longer than this, read them in as characters and then convert to
string with the chartostring function.
Examples
- Time series data
- Gridded data
- Multi-columnar data
- Multi-columnar data separated by
delimiters
- Using cut