|
@@ -15,9 +15,6 @@ r3.out.bin --o input=test_out_bin_float byte=4 null=-9999 \
|
|
|
r3.out.bin --o input=test_out_bin_float byte=8 null=-9999 \
|
|
|
output=test_out_bin_float_native_b8.bin order=native
|
|
|
|
|
|
-r3.out.bin --o -s input=test_out_bin_float byte=4 null=-9999 \
|
|
|
- output=test_out_bin_float_native_s_b4.bin order=native
|
|
|
-
|
|
|
r3.out.bin --o -r input=test_out_bin_float byte=4 null=-9999 \
|
|
|
output=test_out_bin_float_native_r_b4.bin order=native
|
|
|
|
|
@@ -32,21 +29,25 @@ r3.out.bin --o -rd input=test_out_bin_float byte=4 null=-9999 \
|
|
|
r3.out.bin --o input=test_out_bin_float byte=4 null=-9999 \
|
|
|
output=test_out_bin_float_little_b4.bin order=little
|
|
|
|
|
|
+#r3.out.bin --o input=test_out_bin_float byte=4 null=-9999 \
|
|
|
+# output=test_out_bin_float_big_b4.bin order=big
|
|
|
+
|
|
|
r3.out.bin --o input=test_out_bin_float byte=4 null=-9999 \
|
|
|
- output=test_out_bin_float_big_b4.bin order=big
|
|
|
+ output=test_out_bin_float_swap_b4.bin order=swap
|
|
|
|
|
|
+
|
|
|
# Write float map as integer array
|
|
|
|
|
|
-r3.out.bin --o -i input=test_out_bin_float byte=1 null=-9999 \
|
|
|
+r3.out.bin --o -i input=test_out_bin_float byte=1 null=0 \
|
|
|
output=test_out_bin_float_native_b1_as_integer.bin order=native
|
|
|
|
|
|
-r3.out.bin --o -i input=test_out_bin_float byte=2 null=-9999 \
|
|
|
+r3.out.bin --o -i input=test_out_bin_float byte=2 null=0 \
|
|
|
output=test_out_bin_float_native_b2_as_integer.bin order=native
|
|
|
|
|
|
-r3.out.bin --o -i input=test_out_bin_float byte=4 null=-9999 \
|
|
|
+r3.out.bin --o -i input=test_out_bin_float byte=4 null=0 \
|
|
|
output=test_out_bin_float_native_b4_as_integer.bin order=native
|
|
|
|
|
|
-r3.out.bin --o -i input=test_out_bin_float byte=8 null=-9999 \
|
|
|
+r3.out.bin --o -i input=test_out_bin_float byte=8 null=0 \
|
|
|
output=test_out_bin_float_native_b8_as_integer.bin order=native
|
|
|
|
|
|
# Double precision
|
|
@@ -69,11 +70,6 @@ r3.in.bin --o output=test_in_bin_float_2 byte=8 null=-9999 \
|
|
|
bottom=0 top=100 west=0 east=180 south=0 north=90 \
|
|
|
cols=18 rows=9 depths=10
|
|
|
|
|
|
-#r3.in.bin --o output=test_in_bin_float_3 byte=4 null=-9999 \
|
|
|
-# input=test_out_bin_float_native_s_b4.bin order=native \
|
|
|
-# bottom=0 top=100 west=0 east=180 south=0 north=90 \
|
|
|
-# cols=18 rows=9 depths=10 -s
|
|
|
-
|
|
|
r3.in.bin --o output=test_in_bin_float_4 byte=4 null=-9999 \
|
|
|
input=test_out_bin_float_native_d_b4.bin order=native \
|
|
|
bottom=0 top=100 west=0 east=180 south=0 north=90 \
|
|
@@ -89,26 +85,44 @@ r3.in.bin --o output=test_in_bin_float_6 byte=4 null=-9999 \
|
|
|
bottom=0 top=100 west=0 east=180 south=0 north=90 \
|
|
|
cols=18 rows=9 depths=10 -rd
|
|
|
|
|
|
-r3.in.bin --o output=test_in_bin_float_7 byte=1 null=-9999 \
|
|
|
+# Integer binary file import
|
|
|
+
|
|
|
+r3.in.bin --o output=test_in_bin_float_7 byte=1 null=0 \
|
|
|
input=test_out_bin_float_native_b1_as_integer.bin order=native \
|
|
|
bottom=0 top=100 west=0 east=180 south=0 north=90 \
|
|
|
cols=18 rows=9 depths=10 -i
|
|
|
|
|
|
-r3.in.bin --o output=test_in_bin_float_8 byte=2 null=-9999 \
|
|
|
+r3.in.bin --o output=test_in_bin_float_8 byte=2 null=0 \
|
|
|
input=test_out_bin_float_native_b2_as_integer.bin order=native \
|
|
|
bottom=0 top=100 west=0 east=180 south=0 north=90 \
|
|
|
cols=18 rows=9 depths=10 -i
|
|
|
|
|
|
-r3.in.bin --o output=test_in_bin_float_9 byte=4 null=-9999 \
|
|
|
+r3.in.bin --o output=test_in_bin_float_9 byte=4 null=0 \
|
|
|
input=test_out_bin_float_native_b4_as_integer.bin order=native \
|
|
|
bottom=0 top=100 west=0 east=180 south=0 north=90 \
|
|
|
cols=18 rows=9 depths=10 -i
|
|
|
|
|
|
-r3.in.bin --o output=test_in_bin_float_10 byte=8 null=-9999 \
|
|
|
+r3.in.bin --o output=test_in_bin_float_10 byte=8 null=0 \
|
|
|
input=test_out_bin_float_native_b8_as_integer.bin order=native \
|
|
|
bottom=0 top=100 west=0 east=180 south=0 north=90 \
|
|
|
cols=18 rows=9 depths=10 -i
|
|
|
+
|
|
|
+# Test little and big endian
|
|
|
|
|
|
+r3.in.bin --o output=test_in_bin_float_11 byte=4 null=-9999 \
|
|
|
+ input=test_out_bin_float_little_b4.bin order=little \
|
|
|
+ bottom=0 top=100 west=0 east=180 south=0 north=90 \
|
|
|
+ cols=18 rows=9 depths=10
|
|
|
+
|
|
|
+#r3.in.bin --o output=test_in_bin_float_12 byte=4 null=-9999 \
|
|
|
+# input=test_out_bin_float_big_b4.bin order=big \
|
|
|
+# bottom=0 top=100 west=0 east=180 south=0 north=90 \
|
|
|
+# cols=18 rows=9 depths=10
|
|
|
+
|
|
|
+r3.in.bin --o output=test_in_bin_float_13 byte=4 null=-9999 \
|
|
|
+ input=test_out_bin_float_swap_b4.bin order=swap \
|
|
|
+ bottom=0 top=100 west=0 east=180 south=0 north=90 \
|
|
|
+ cols=18 rows=9 depths=10
|
|
|
|
|
|
for map in `g.mlist type=rast3d pattern=test_in_bin_float*` ; do
|
|
|
r3.out.ascii input=${map} output=${map}.txt dp=0
|