NetCDF into GeoTIFF/TIFF file conversion
32 views (last 30 days)
Show older comments
I have lots of NetCDF files which I have to first read in MATLAB and then convert into TIFF files. As I am totally new to MATLAB kindly help.
1 Comment
Accepted Answer
KSSV
on 22 Aug 2017
First you need to read the netCDF file.....for this check ncdisp, ncinfo , ncread...Once you read the netCDf files. YOu can write the data into geotiff using geotiffwrite.
Read about:
6 Comments
Mian
on 5 Apr 2020
Edited: Mian
on 5 Apr 2020
Hi KSSC,
I have used your code to convert netcdf into tiff. When I verfied converted file in ArcGIS with orginal netcdf file, both files did not match each other. Then I run same code but just took transpose of "A" i.e [ A = A.']. Now, newly developed tiff is same as of netcdf.
Preet Lal
on 29 Oct 2021
Hello,
I am getting error using above code
Error using map.rasterref.GeographicCellsReference.set.LatitudeLimits
Expected latlim to be of size 1x2, but it is of size 1x26896.
Error in map.rasterref.GeographicRasterReference/set.LatitudeLimits (line 964)
validateattributes(latlim, ...
Error in setSpatialReferencingProperties (line 38)
R.(name) = value;
Error in georasterref (line 111)
R = setSpatialReferencingProperties(R, ...
More Answers (0)
See Also
Categories
Find more on NetCDF in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!