Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 19 Next »

Name

rea — Read data from disk

Syntax

rea [ipol | igri | fgr | gcf | ima | zyc | sbg | ggri | auto | ter | win] [? | *] [filename]

Description

Read vtk files from disk. Can also read some foreign formats.

Reading of files is usually done by the Import panel.

Arguments

filename

Name of file filename which is located on disk. rea filename will read a vtk file.

ipol

Read Irap polygon format.
x1 y1 z1
x2 y2 z2
999 999 999 - flag for new cell
x3 y3 z3
.........

igri | gri

Read Irap Classic grid in binary format.

fgr

Read Irap Classic formatted grid format.

gcf filename c1 c2 c3 [c4] [txt cttx] [skip skip_number_of_header_records] [field fieldname1 nr [string | char | float]

Read Geocap column format.

Use columns x=c1, y=c2 z=c3 s=c4 and text in column ctxt
field is field data. fieldname1 is the user set name. nr is the column number. Use string if the field data is of string type. Use float if the field data is of float type.

Example of file

X Y Z Time Name Value Text
x1 y1 z1 s1 name_a1 value_b1 text_c1
x2 y2 z2 s2 name_a2 value_b2 text_c2
999 999 999 - flag for new cell
x3 y3 z3 s3 name_a3 value_b3 text_c3
..........
This file can be read by the command

rea gcf filename 1 2 3 4 field Name 5 string Value 6 float Text 7 string

gcf filename

Read Geocap column format using header information in the gcf ASCII file. Two header lines must be provided: header1 which holds the data layout, and header2 which holds the formats. The command sto gcf header filename  will store out the file with correct headers.

Example of file

header1 x y z scalars Name Value Text

header2 float float float float string float string
x1 y1 z1 s1 name_a1 value_b1 text_c1
x2 y2 z2 s2 name_a2 value_b2 text_c2
999 999 999 - flag for new cell
x3 y3 z3 s3 name_a3 value_b3 text_c3
..........
This file can be read by the command

rea gcf filename

 

ima

Read image format. Most image format are supported.

zyc [fre]

Read Zychor grid format. Read Zychor free format.

sbg

Read Storm binary grid format.

ggri

Read GDAL grid format.

auto

Read GDAL auto format. Covers Shape files, Images.

ter

Read points from terminal; i.e. no filename required.

sta x1 y1 z1 ;# stacking data
sta x2 y2 z2
sta x3 y3 z3
..........
rea ter ;# reading from terminal

? | *

Will come up with a file browser for entering the filename. The * syntax will show all file names in the directory.

win

Will read and update the current window.

See also

sta - Stack text, sto - Store data

  • No labels