Skip to main content

viz.open_response

viz.open_response(scene_dir)

Open a fetched scene and return its array + metadata as a 7-tuple.

Parameters

Name Type Description Default
scene_dir path - like Folder containing a single *_full_size.tiff (the standard output layout of fetch_sentinel_data). required

Returns

Name Type Description
tuple (arr, descs, prof, bbox, xform, crs, tiff) where - arr is the (C, H, W) numpy array, - descs is the list of band descriptions (one per channel), - prof is a copy of the rasterio profile dict, - bbox is the rasterio.coords.BoundingBox, - xform is the affine transform, - crs is the CRS object, and - tiff is the absolute file path.
The 7-tuple is deliberately wide because consumer code typically
needs more than just the array (a CRS for reprojection, the
transform for windowing, the path for log messages). The previous
inline notebook helper had the same shape.