Skip to content
Snippets Groups Projects
Commit a09c060f authored by Matthias Boljen's avatar Matthias Boljen
Browse files

Bugfix README

parent ac1828cf
No related branches found
No related tags found
No related merge requests found
# NAME
mkgrid - Convert scattered data to regular gridded data in 2D, 3D, and 4D.
mkgrid - Convert irregularly scattered data to regular grid data in 2D, 3D, and 4D.
# SYNOPSIS
......@@ -10,7 +10,7 @@ mkgrid - Convert scattered data to regular gridded data in 2D, 3D, and 4D.
# DESCRIPTION
This script converts scattered data of dimensions in 2D, 3D, and 4D to regular gridded data.
This script converts irregularly scattered data in 2D, 3D, and 4D to regular grid data.
The following interpolation methods are available:
......@@ -62,7 +62,7 @@ If output file `OUTFILE` is undefined, the output is directed to `STDOUT`.
## 2D data
Assume the following input fille `testdata2.csv` containing scattered data points in 2D:
Assume the following input file `testdata2.csv` containing scattered data points in 2D:
```text
x y
......@@ -105,7 +105,7 @@ The output will look like the following:
0.150 83.224
```
An example plot for the above result would like this:
An example plot for the above result would look like this:
![Example 2D data](test/testdata2.png)
......@@ -147,13 +147,39 @@ Assume the following input file `testdata3.csv` containing scattered data points
0.000 0.134 16.302
```
The following command will parse the above input file and creates regular gridded data points along data columns 1 and 2 within the interval `[0:0.13]` in both dimensions. The corresponding data in column 3 will be interpolated using `26` steps, i.e. `(13+1)×(13+1)=196` records will be created in total.
The following command will parse the above input file and creates regular gridded data points along data columns 1 and 2 within the interval `[0.0,0.13]` in both dimensions. The corresponding data in column 3 will be interpolated using `13` steps, i.e. `(13+1)×(13+1)=196` records will be created in total.
```bash
$ mkgrid --infile testdata3.csv --range 0:0.13,0:0.13 --steps 13
```
An example plot for the above would like this:
The output will look like the following:
```text
x y z
0.000 0.000 0.000
0.010 0.000 2.480
0.020 0.000 5.202
0.030 0.000 10.099
0.040 0.000 14.997
0.050 0.000 19.352
0.060 0.000 23.572
0.070 0.000 27.792
0.080 0.000 32.012
0.090 0.000 36.232
0.100 0.000 41.990
0.110 0.000 48.279
0.120 0.000 55.883
0.130 0.000 63.487
0.000 0.010 2.421
0.010 0.010 5.438
0.020 0.010 10.451
0.030 0.010 14.423
0.040 0.010 17.364
0.050 0.010 20.807
[...]
```
An example plot for the above would look like this:
![Example 3D data](test/testdata3.png)
......@@ -179,7 +205,7 @@ The following command will parse the above input file and creates regular gridde
$ mkgrid -i testdata4.csv -s 10
```
An example plot for the above would like this:
An example plot for the above would look like this:
![Example 4D data](test/testdata4.png)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment