Changes between Initial Version and Version 2 of Ticket #3085


Ignore:
Timestamp:
Jul 28, 2009, 8:54:15 PM (15 years ago)
Author:
warmerdam
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3085

    • Property Owner changed from warmerdam to Even Rouault
    • Property Status newassigned
  • Ticket #3085 – Description

    initial v2  
    22
    33Example ascii grid:
     4{{{
    45ncols        5
    5 
    66nrows        5
    7 
    87xllcorner     -2610321.0830204
    9 
    108yllcorner     -3330321.0830204
    11 
    129cellsize      4500.0
    13 
    1410NODATA_value  -9999.0
    15 
    1611-9999.0 -9999.0 1.2E-4 1.2E-4 1.2E-4
    17 
    1812-9999.0 -9999.0 1.2E-3 1.2E-3 1.2E-3
    19 
    2013-9999.0 -9999.0 1.2E-2 1.2E-2 1.2E-2
    21 
    2214-9999.0 -9999.0 1.2E-1 1.2E-1 1.2E-1
    23 
    2415-9999.0 -9999.0 5.2E-1 5.2E-1 5.2E-1
    25 
     16}}}
    2617
    2718with the command:
     19
    2820gdal_translate -ot int32 -scale 0 1 0 1000 -a_nodata -9999 -of GTiff test.asc test.tif
     21
    2922The nodata value is reported as -9999 but in the image -9999 becomes -9999000
    3023
    3124
    3225gdal_translate -ot Int16 -scale 0 1 0 1000 -a_nodata -9999 -of GTiff test.asc test.tif
     26
    3327The nodata value is reported as -9999 but in the image -9999 becomes -32768
    3428