フィルターのクリア

Writing the matlab matrix in geotiff, whats wrong with this script?

3 ビュー (過去 30 日間)
Shakir Hussain
Shakir Hussain 2018 年 6 月 12 日
コメント済み: Shakir Hussain 2018 年 6 月 13 日
What I am making mistake here?
basename = 'test';
rasterSize = [890 751];
refmat = makerefmat( ...
'RasterSize', rasterSize, 'Latlim', [00.00 44.50], ...
'Lonlim', [67.50 105.0250]);
R = refmatToGeoRasterReference(refmat, rasterSize);
filename = [test '.tif'];
testttif = geotiffwrite(filename, test, R);
I am getting this error Error using horzcat Dimensions of matrices being concatenated are not consistent.

採用された回答

KSSV
KSSV 2018 年 6 月 12 日
filename = ['test', '.tif'];
  3 件のコメント
KSSV
KSSV 2018 年 6 月 12 日
Don't take output from geotiffwrite. Simply use:
geotiffwrite(filename, test, R);
Shakir Hussain
Shakir Hussain 2018 年 6 月 13 日
yes, got your point but still getting more error.
Error using internal.map.convertToGeoRasterRef>validGeoRasterReference (line 86) R.RasterSize is inconsistent with rasterSize.
Error in internal.map.convertToGeoRasterRef (line 40) validGeoRasterReference(R, rasterSize, angleUnit), ...
Error in geotiffwrite>validateR (line 851) R = internal.map.convertToGeoRasterRef(R, rasterSize, angle_units, ...
Error in geotiffwrite>validateInputs (line 348) R = validateR(R, size(A), hasColorMap, type);
Error in geotiffwrite (line 238) [filename, A, cmap, R, Params] = validateInputs(filename, A, cmap, R, Params);

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by