16-Bit Grayscale PNG: Audit Samples Beyond a Drone Raster Preview
Inspect raster band type and selected stored samples before treating a grayscale PNG screenshot or an eight-bit display derivative as the analytical source.

Identify whether the PNG is a source raster or a display copy
Two pixels can look like the same grey while storing different numerical samples. That distinction matters when a PNG accompanies a drone raster handoff as a quicklook, an interchange image or a deliberately preserved data representation. Before using its displayed colour as a measurement, identify the accepted source and the purpose of the PNG. This NiVO tutorial inspects bit depth and selected sample evidence. It does not claim a particular sensor outputs analytical PNG, supply an actual file or establish a calibrated reflectance, elevation or temperature from the image appearance.
Keep the original raster and the export record available. Determine whether the PNG is intended for viewing only, contains a documented numerical encoding or was produced after a stretch, palette or other display operation. Record the revision and any associated reference or metadata files. A convenient image viewer may render a useful preview without exposing the stored band type or every distinct value. Preserve the relationship between the analytical master and the displayed derivative so a recipient does not treat a screenshot or a colour-selected pixel as equivalent evidence of the original sample.
Read sample depth and colour representation together
The PNG specification permits sixteen-bit samples for grayscale and several other non-paletted colour types. It distinguishes grayscale samples, colour samples, palette indices and alpha information. Therefore a single familiar extension does not establish that the file contains one analytical grayscale band with the precision expected by a downstream operation. Inspect the actual representation before selecting a band or comparing values. The specification also defines multibyte sample ordering; use a suitable decoder rather than treating compressed image bytes as a plain array of workstation-native integers.
GDAL documents support for eight- and sixteen-bit PNG samples, including grayscale and other image types. Its creation behavior distinguishes unsigned sixteen-bit input from other pixel types that it writes as eight-bit output. Keep the actual producing workflow and options with the delivery instead of assuming any PNG export preserves arbitrary source precision. A file can remain valid and attractive after its representation changes. Determine the band type and intended interpretation explicitly, and retain any known limitations before accepting a conversion whose visual appearance alone may conceal a numerical reduction.

Product context only; this photograph does not depict the constructed examples in this article.
Inspect metadata and a chosen stored sample read-only
The constructed commands below report raster information and query band one at pixel and line zero. GDAL documents pixel/line coordinates as the default for the query when no geographic-coordinate option is supplied. Confirm the dimensions, band layout and intended location in an actual file before using a sample. The filename is illustrative and no command output is supplied. A metadata report can identify the exposed data type and interpretation, but it does not establish that the complete raster matches its source or that a selected value has the physical meaning required by the project.
Retain the actual tool version, band, pixel location, reported value and warnings for a real inspection. Compare the same source location and revision through an appropriate workflow; do not sample a rescaled screenshot and call it the original cell. Record scale, offset, validity and spatial reference evidence separately where relevant. The query recipe does not apply a sensor calibration or repair missing metadata. No GDAL execution or actual raster comparison is claimed here. Readable command syntax is preparation for an evidence-based review, while the accepted input and real reporting results remain necessary for a project finding.
# Teaching filename; metadata and selected band-1 pixel query.
gdalinfo -json accepted-grid.png
gdallocationinfo -valonly -b 1 accepted-grid.png 0 0Trace a constructed reduction without calling it an exporter result
Consider two arbitrary unsigned sixteen-bit samples, four thousand and ninety-six and four thousand and ninety-seven. A teaching display reduction that takes the floor after dividing by two hundred and fifty-six maps both to sixteen. The samples were distinct before the reduction and cannot be distinguished from that reduced value alone. This is a deliberately defined numerical example, not a statement about the default scaling used by GDAL, a browser or a NiVO exporter. It supplies no measured scene intensity or physical-unit interpretation, and no actual PNG is created or decoded for the demonstration.
Use the example to identify what a real preview procedure did. A stretch, lookup table, rounding choice or colour-management step can affect display in a way different from the constructed reduction. Record the actual method rather than inferring it from a screenshot. Lossless image compression preserves the encoded image samples; that property does not promise that an earlier conversion preserved the full precision or meaning of its analytical source. Keep the source samples, export transformation and displayed representation distinct so a successful file decode is not mistaken for proof of an unchanged scientific data product.
Keep display, validity and calibration questions separate
A grayscale appearance does not supply a calibration model, unit or project reference. PNG colour and transfer information concern image interpretation, while an analytical relationship to a measured quantity needs its own producing-workflow evidence. Likewise, alpha or a documented transparency value is not a universal guarantee that every receiver will use the same validity policy. Inspect the actual raster and receiving behavior required by the task. Preserve the original sample and any scale or offset record rather than deriving a physical result from the grey level shown on a particular display.
For a conversion review, compare agreed sample locations and required metadata in the intended receiving software. Include values relevant to the expected range and any validity boundary, without substituting a few successful samples for full coverage of a large raster. Investigate differences in band selection, precision, source revision and export transformations before calling them sensor or survey errors. If the PNG was designed only as a quicklook, keep that role explicit and retain the analytical master for measurement. A visually useful derivative can support communication while leaving numerical acceptance to the correctly documented source representation.
Deliver a sample-preservation record with the image
A useful PNG handoff names the source revision, export purpose, band layout, exposed data type and any numerical or display transformation. Include actual sample comparisons, tool versions and the coordinate convention used to locate the cells. Keep reference, validity and calibration information associated with the accepted analytical product where needed. Another analyst should be able to explain why distinct source samples might share a displayed grey and identify which file remains authoritative for the intended calculation. Do not present the toy reduction or documentation-reviewed commands as a completed decoder or exporter validation.
For NiVO raster discussions, this makes an apparently unchanged preview a precise question about stored precision, conversion policy and intended use. It complements checks of georeferencing, masks and overview dependencies while avoiding an invented performance or measurement claim. Preserve the original and document any display derivative separately. The resulting handoff lets recipients use the PNG for its agreed role and choose a supported numerical workflow when actual samples matter, with the remaining limitations and required assessment evidence visible to people who did not create the image or observe its export.



