I want to wrap(re-project) one variable in this netcdf file.
D:\\ gdalwarp -t_srs EPSG:4326 NETCDF:"C:\\fie.nc":var "C:\\Desktop\\SM.img"
On the command prompt, I used to set the GDAL_DATA path by pointing to where (and which gdal-data) to use:
set GDAL_DATA=C:\Program Files\PostgreSQL\9.3\gdal-data
I learned it from http://clhenrick.github.io/thesis-blog/procrastination/portfolio-work/2014/09/27/procrastinating/ I always needed to do the above even though I already set it up in my environment variables. My problem seemed to be an installation issue but I didn't want to reinstall anything...yet.
As a temporary solution, while I did not have time for a more permanent one, I deleted the existing GDAL_DATA path in my environment variables, shut down the computer, turned it on, created a new one, shut down the computer, turned it on again. FIXED!
Complete shut-down not restart due to the quirky behaviour of my system.