You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote a script to decode with this library, and print the first pixel value, a pixel value near the center, the number of pixels with valid data, and the min and max pixel value:
constgeotiff=require('geotiff')constfs=require('fs')constfile=geotiff.parse(fs.readFileSync(process.argv[2]).buffer)constimage=file.getImage(0)constdata=image.readRasters()console.log(data[0][0],data[0][113476])letmin=Infinityletmax=-Infinityletcount=0for(vofdata[0]){if(v!==-10000&&!Number.isNaN(v)){// these files contain value -10000 where the value is undefinedmin=Math.min(min,v)max=Math.max(max,v)count++}}console.log(count,min,max)
For the files encoded using the predictors, the results are incorrect:
I generated 3 test files from the same source file with:
Output files uploaded here
The files display identically in QGIS.
I wrote a script to decode with this library, and print the first pixel value, a pixel value near the center, the number of pixels with valid data, and the min and max pixel value:
For the files encoded using the predictors, the results are incorrect:
The text was updated successfully, but these errors were encountered: