Documentation for gk_lib

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes


top source gk_read2d

result = gk_read2d(file [, separator] [, skip=integer])

Reads in an ascii file in table format and returns a m x n 2D array of doubles, where m is the number of columns and n is the number of lines in the file, without prior knowledge of those.


file in required type=string


separator in optional type=string

String used as separator. For example, ' ', or ',', or ';', etc. Default is white space.


skip in optional type=integer

Number of lines to be skipped at the beginning of the file.


An example: IDL> im=gk_read2d('mypath/myfile',' ',skip=1)

Author information


Graziela Keller, Jan 2018

File attributes

Modification date: Wed Jul 18 23:05:14 2018
Lines: 35
Docformat: rst rst