Documentation for /home/davin/idl/socware/

Generated by IDLdoc

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

general/tools/misc/

read_asc.pro


FUNCTION: data=read_asc(filename) PURPOSE: Reads data from an ascii file and puts data in an array of structures. Columns of data should be delimited by spaces. Data is returned as an array of structures. The elements of the structure correspond to the columns of the file. CALLING PROCEDURE: read_ascii,data,'file.dat' KEYWORDS: TAGS: If set then the labels in the text line preceeding the data will be used for the default struct tag names. (There should be one label per column of data) FORMAT: a structure that specifies the output format of the data. For example if the input file has the following data: Year Day secs Vx Vy Vz N 1996 123 13.45 512.3 -10.3 10.5 5.3 the format could be specified as: FORMAT={year:0,day:0,sec:0.d,v:fltarr(3),n:0.} if this keyword is not specified then a default structure will be created. CREATED BY: Davin Larson

Routines

Routines from read_asc.pro

result = string_value(str, error=error)
result = strings_to_structure(strings, structure)
result = read_asc(filenames, header_info, format=format, verbose=verbose, tags=tags, time=time, append=append, seperators=seperators, ctype=ctype, remap=remap, nheader=nheader, headers=headers, tokens=tokens, thisfile=thisfile, compress=compress, conv_time=conv_time, filter=filter, double=double)

Routine details

top source string_value

result = string_value(str, error=error)

Parameters

str

Keywords

error

top source strings_to_structure

result = strings_to_structure(strings, structure)

Parameters

strings
structure

top source read_asc

result = read_asc(filenames, header_info, format=format, verbose=verbose, tags=tags, time=time, append=append, seperators=seperators, ctype=ctype, remap=remap, nheader=nheader, headers=headers, tokens=tokens, thisfile=thisfile, compress=compress, conv_time=conv_time, filter=filter, double=double)

Parameters

filenames
header_info

Keywords

format
verbose
tags
time
append
seperators
ctype
remap
nheader
headers
tokens
thisfile
compress
conv_time
filter
double

File attributes

Modification date: Thu Feb 13 16:43:14 2014
Lines: 145