<div dir="ltr"><pre style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;padding:16px;overflow:auto;line-height:1.45;border-radius:6px"><code><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace"><span style="font-size:11.9px;box-sizing:border-box;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;border-radius:6px;border-style:initial;border-color:initial;line-height:inherit">$ gdalinfo -stats -json input_raster_to_resize_with_max_val_92.tiff | jq '.bands[0].metadata[""].STATISTICS_MAXIMUM'
"92"
$ gdal_translate -outsize 1% 1% input_raster_to_resize_with_max_val_92.tiff output.tif
Input file size is 6845, 10302
0...10...20...30...40...50...60...70...80...90...100 - done.
$ gdalinfo -stats -json output.tif | jq '.bands[0].metadata[""].STATISTICS_MAXIMUM'
"3149.9255371094"
</span></font></code><span style="box-sizing:border-box;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;border-radius:6px;border-style:initial;border-color:initial;line-height:inherit"><br></span><span style="box-sizing:border-box;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;border-radius:6px;border-style:initial;border-color:initial;line-height:inherit">I expected to get the same or at least close value as in the original raster. What might be the reason for that behavior?<code><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace"><span style="font-size:11.9px"><br></span></font></code></span></pre><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:11.9px;margin-top:0px;margin-bottom:16px;padding:16px;overflow:auto;line-height:1.45;border-radius:6px;color:rgb(36,41,46)"><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:11.9px;padding:0px;margin:0px;background:initial;border-radius:6px;word-break:normal;border:0px;display:inline;overflow:visible;line-height:inherit"><div class="gmail-TimelineItem gmail-pt-0 gmail-js-comment-container gmail-js-socket-channel gmail-js-updatable-content" style="box-sizing:border-box;padding:16px 0px;display:flex;margin-left:16px"><div class="gmail-timeline-comment-group gmail-js-minimizable-comment-group gmail-js-targetable-element gmail-TimelineItem-body gmail-my-0" id="gmail-issue-897320559" style="box-sizing:border-box;margin-top:4px;min-width:0px;max-width:100%;margin-bottom:0px"><div class="gmail-ml-n3 gmail-timeline-comment gmail-unminimized-comment gmail-comment gmail-previewable-edit gmail-js-task-list-container editable-comment gmail-js-comment gmail-timeline-comment--caret gmail-reorderable-task-lists gmail-current-user" style="box-sizing:border-box;border-radius:6px"><form class="gmail-js-comment-update" id="gmail-issue-897320559-edit-form" action="https://github.com/mapbox/rasterio/issues/2183" method="post" style="box-sizing:border-box"></form></div></div></div><div style="box-sizing:border-box"><div id="gmail-js-timeline-progressive-loader" style="box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px;white-space:normal"></div><div class="gmail-js-timeline-item gmail-js-timeline-progressive-focus-container" style="box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px;white-space:normal"><div class="gmail-TimelineItem gmail-js-comment-container" style="box-sizing:border-box;display:flex;padding:16px 0px;margin-left:16px"><br class="gmail-Apple-interchange-newline"></div></div></div></code></pre></div>