Changes between Version 5 and Version 6 of Ticket #6404, comment 4


Ignore:
Timestamp:
Mar 7, 2016, 1:18:14 PM (8 years ago)
Author:
aly

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6404, comment 4

    v5 v6  
    11This also causes problem in reproject function (maybe more functions), as well when you write the array on memory file. However, when you write the array to geotiff, it is good. see here, http://gis.stackexchange.com/questions/158503/9999-no-data-value-becomes-0-when-writing-array-to-gdal-memory-file.
    22
    3 For this reason, the buffers on memory file must be initialized to no data value as in geotiff only if no data value is set prioir. 0 has a meaning so in my case, when I have temperature data, you initialize the raster with 0 Celcius instead of no data value. You are right when I don't set no data value explicitly. I can not fill the array on memory file with -9999 because I don't know the output array shape before reprojection. It is being calculated by reproject function.
     3For this reason, the buffers on memory file must be initialized to no data value as in geotiff only if no data value is set by the user. You are only right when I don't set no data value explicitly. 0 has a meaning so in my case, when I have temperature data, you initialize the raster with 0 Celcius instead of no data value.
     4
     5Besides, I can not fill the array on memory file with -9999 because I don't know the output array shape before reprojection. It is being calculated by reproject function.