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"
I tried to set the GDAL_DATA variable programmatically(C#) and @turgay's solution didn't work for me. here I found the working way:
OSGeo.GDAL.Gdal.SetConfigOption("GDAL_DATA", path+@"\gdal\data");