QGIS – Fix Wrong Projection of NetCDF Along with Shapefile

coordinate systemnetcdfqgis

I'm working with a map data in the NetCDF format in QGIS but can't find a way to align it with a vector polygon.

Map sources:

I tried various project CRS as well as projecting both the vector and the raster layer – without any success. the layers are out of proportion and in the wrong place.

My result:

enter image description here

How it should be positioned:

enter image description here

Best Answer

Using gdalinfo we can find the actual coordinate reference system of the NetCDF file:

gdalinfo alpcyc.1km.epic.pp.ex.1ka.nc -sd HDF5:"alpcyc.1km.epic.pp.ex.1ka.nc"://topg

Shows us the projection is (proj4):

proj4=+units=m +proj=utm +no_defs +zone=32 +a=6378137 +rf=298.257223563 +towgs84=0.000,0.000,0.000 +to_meter=1

In QGIS selecting WGS 84 UTM 32 N (EPSG:32632) gives us alignment:

NetCDF in correct projection

Related Question