db.read {RGeostats} | R Documentation |
Read a Db from an ASCII file (RGeostats format)
db.read(filename, must.grid = -1, must.noproj=TRUE)
filename |
Name of the ASCII file containing the information of the Db |
must.grid |
Required file organization:
|
must.noproj |
The data coordinates are stored internally in the initial reference system. Similarly, they are also written in the ASCII file in the initial reference system. This is why the coordinates must NOT be converted when read back: the flag must be switch ON. |
Format of the ASCII file:
A header line containing the list of variables.
If the Db is a grid file, the header contains:
The number of grid meshes in each direction
The coordinate of the grid origin (lower left corner) in each direction
The value of the grid mesh in each direction
The set of values
The set of real values corresponding to the different variables measured at the samples. We usually consider one sample per line. The set of real values is optional in the case of Grid Db.
The newly created Db structure