How to convert a netcdf data into a tiff/geotiff file?

3 ビュー (過去 30 日間)
Mahboubeh Boueshagh
Mahboubeh Boueshagh 2019 年 5 月 15 日
編集済み: Mahboubeh Boueshagh 2021 年 4 月 16 日
Hi, I have a lot of netcdf-format data, and I have a problem to convert these data into GeoTIFF/TIFF file in matlab, I do not know how to do it (syntax). can some one please help me... Thank you.

回答 (1 件)

KSSV
KSSV 2019 年 5 月 15 日
You need to do the following steps:
  1. Read the data from netCDF to workspace. To do this read about ncdisp, ncinfo, ncread.
  2. Write the data into geotiff. To do this read about geotiffwrite
  4 件のコメント
KSSV
KSSV 2019 年 5 月 15 日
It worked fine for me:
load data.mat ;
data = y ;
lat_min = -87.7200 ;
lat_max = 87.5000;
lon_min = -180.0000 ;
lon_max = 179.9800 ;
R = georasterref('RasterSize',size(data),'LatitudeLimits',[lat_min,lat_max],'LongitudeLimits',[lon_min,lon_max]);
tiffile = 'test.tif' ;
geotiffwrite(tiffile,data,R)
KSSV
KSSV 2019 年 5 月 15 日
Thanking is accepting the answer..:)

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by