NetCDF into GeoTIFF/TIFF file conversion

32 views (last 30 days)
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
José-Luis
José-Luis on 22 Aug 2017
Edited: José-Luis on 22 Aug 2017
If you are totally new to Matlab, why use it for this? It is a rather expensive tool if your problem is limited to that. There are better (and free) tools for manipulating geographic data anyway.
GDAL comes to mind.

Sign in to comment.

Accepted Answer

KSSV
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
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
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, ...

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!