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"
You can also use for making programmatically(with C# API). Sample code:
string path = @"C:\abc\";
_SetValueNewVariable("GDAL_DATA", path + "\\data");
_SetValueNewVariable("GEOTIFF_CSV", path + "\\data");
_SetValueNewVariable("GDAL_DRIVER_PATH", path + "\\gdalplugins");
private static void _SetValueNewVariable(string sVar, string sValue)
{
if (System.Environment.GetEnvironmentVariable(sVar) == null)
System.Environment.SetEnvironmentVariable(sVar, sValue);
}