主题:[讨论]如何将资料写入ascii(有边界范围)
恩..我exact出来的资料形式是这样的
1. 1.044823
2. 0.5243146
3. 0.1685581
4. 0.0000000E+00
5. 0.0000000E+00
6. 0.1320256
7. 0.9769232
8. 2.271167
9. 1.871864
10. 1.557174
.
.
.
.
.
有辨法在写入一个有边界范围的ascii檔吗(假设这两个是同样的边界范围),资料形式如下
ncols 10
nrows 10
xllcorner 563435
yllcorner 5258305
cellsize 10
NODATA_value -9999
-9999 -9999 -9999 -9999 -9999 99 -9999 -9999 -9999 -9999
-9999 -9999 -9999 99 97 96 94 -9999 -9999 -9999
-9999 -9999 -9999 95 93 92 91 88 -9999 -9999
-9999 -9999 92 90 89 87 84 -9999 -9999 -9999
-9999 -9999 87 86 84 81 78 75 -9999 -9999
-9999 -9999 83 80 77 75 -9999 -9999 -9999 -9999
-9999 79 76 74 72 69 68 67 -9999 -9999
-9999 73 71 69 68 66 67 68 -9999 -9999
-9999 -9999 68 66 65 66 68 71 74 -9999
-9999 -9999 -9999 65 -9999 -9999 -9999 -9999 -9999 -9999
1. 1.044823
2. 0.5243146
3. 0.1685581
4. 0.0000000E+00
5. 0.0000000E+00
6. 0.1320256
7. 0.9769232
8. 2.271167
9. 1.871864
10. 1.557174
.
.
.
.
.
有辨法在写入一个有边界范围的ascii檔吗(假设这两个是同样的边界范围),资料形式如下
ncols 10
nrows 10
xllcorner 563435
yllcorner 5258305
cellsize 10
NODATA_value -9999
-9999 -9999 -9999 -9999 -9999 99 -9999 -9999 -9999 -9999
-9999 -9999 -9999 99 97 96 94 -9999 -9999 -9999
-9999 -9999 -9999 95 93 92 91 88 -9999 -9999
-9999 -9999 92 90 89 87 84 -9999 -9999 -9999
-9999 -9999 87 86 84 81 78 75 -9999 -9999
-9999 -9999 83 80 77 75 -9999 -9999 -9999 -9999
-9999 79 76 74 72 69 68 67 -9999 -9999
-9999 73 71 69 68 66 67 68 -9999 -9999
-9999 -9999 68 66 65 66 68 71 74 -9999
-9999 -9999 -9999 65 -9999 -9999 -9999 -9999 -9999 -9999