I'm using the
gdalwarp tool to convert MODIS .hdf into GeoTiff files. I want to set the value of the nodata cells so that when I import the .tif image into Grass there is no black edge. I'm using the following command:
gdalwarp -of GTiff -t_srs EPSG:4326 -dstnodata 0 <hdf> out.tif
This is working fine but I'm concerned that by setting -dstnodata to 0 I may be losing the valid cells that happen to have a value of 0. Is this actually what is happening, or does the tool work in a different way?