<div dir="ltr"><div>Hi,</div><div><br></div><div>I was quite surprised with the behavior of gdal_translate (in clip raster by extent) and gdal_warp (reproject) when the user sets up an output nodata value different from the original nodata value of the input files.</div><div><br></div><div>My intuition was telling me that by using that option, all the old nodata pixel values would be transferred to the new nodata values. So, if I have a raster with nodata = -3.40282e+38 and I use as output nodata value -9999, I would expect that all -3.40282e+38 pixels would be converted to -9999 and considered to be NODATA. But I was wrong. By doing this, I ended up with rasters containing pixels with actual -3.40282e+38 value, no longer considered as nodata.</div><div><br></div><div>Is it just me that finds this unexpected?</div><div><br></div><div>On the other hand, if you use the same similar option in the DGAL raster calculator it works as (I) expected.</div><div><br></div><div>Best regards,</div><div><br></div><div>Alexandre Neto</div><div>User Support</div><div><a href="http://www.cooperative.net">www.cooperative.net</a><br></div></div>