- Read the data from netCDF to workspace. To do this read about ncdisp, ncinfo, ncread.
- Write the data into geotiff. To do this read about geotiffwrite
How to convert a netcdf data into a tiff/geotiff file?
3 ビュー (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
回答 (1 件)
KSSV
2019 年 5 月 15 日
You need to do the following steps:
4 件のコメント
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)
参考
カテゴリ
Help Center および File Exchange で NetCDF についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!