[GIS] QGIS problem loading NetCDF files

gmtnetcdfqgis

I recently installed QGIS 3.10 and have been unable to load a NetCDF file created by GMT. GMT *.grd and *.nc files are not listed the "Add Raster Layer" file type dropdown. The error I get when attempting to load the file is "Invalid Layer: GDAL cannot open GDAL dataset [filename.nc] not recognized as a supported file format.

I've tried both the data source manager and simply dragging the file into the layers pane. They all have the same issue.

Clearly I am missing something, a plugin or an library. To see an example of what I'm looking for see this YouTube video (https://www.youtube.com/watch?v=8JgE7vbv5JE).

Best Answer

QGIS seems to have some issues with NetCDF derived from GDAL, mainly for the projections with rotated polar grids (you can check them opening the file with NASA's Panoply).

Other than that, from my recent experiences with QGIS I realized that .nc files must have one, and only one, variable (if your file has, for example, precipitation and temperature, it will not be open. Or it has only precipitation, or only temperature).

Also, the coordinate dimensions must be provided in that exact order: latitude, longitude, time. Change the order and it will just not open.

Related Question