Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

satimg

Latest version: v0.32.1

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
PyPI package Publisher: peachfuzz11
0 Stars
0 Forks
22 Versions
2.1K Downloads
Python Repo language

Scan summary

satimg was last scanned on 24 Nov 2026 at version 0.32.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 22 versions; the latest 2 were published within 5 days (20–24 Nov 2026).
  • Findings: No rules fired in version 0.32.1.
  • Downloads: 2,145 downloads.

Versions

22 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.32.1 LATEST 24 Nov 2026 No rules fired
0.32.0 20 Nov 2026 No rules fired
0.31.0 17 Nov 2026 No rules fired
0.30.3 14 Nov 2026 Not shown
0.30.2 13 Nov 2026 Not shown

No rules fired in 0.32.1

Findings

Findings for v0.32.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.32.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

satimg

A uniform, tile-friendly wrapper over satellite imagery. Point it at a product directory and you get the same interface regardless of sensor: two views on the pixels and one clean way to walk them in windows without ever losing track of where a window came from.

Supported products: Sentinel-1 GRD (IW / EW), Sentinel-2 L1C, Landsat C2 L1, NISAR L2 GCOV, VIIRS Day/Night Band L1B (NOAA-20 / NOAA-21, near-real-time), MODIS 250 m L1B (Terra and Aqua), Sentinel-3 OLCI EFR, Umbra GEC, Capella GEC and ICEYE GRD (metre-scale X-band SAR open data).

Concepts

Object What it is
Product A product directory or zip archive. Exposes .raw, .visual (DataArrays), .patches(...), .width/.height/.bands, metadata.
Window An immutable pixel rectangle (col, row, width, height). Pure geometry.
Grid Lays Windows over an image with a step and an edge policy.
Patch One window's raw / visual / meta, already sliced (lazy DataArrays / PatchMeta).

.raw and .visual are plain lazy xarray.DataArrays, dims (band, y, x) — use them with the full xarray API directly.

Opening a product

satimg.open takes a product directory or a zip archive — detected by content, not by extension — and returns the matching Product either way.

A directory gives you full access, same as ever:

import satimg

product = satimg.open("/data/S2A_MSIL1C_20220114T103401_..._T33UUB_....SAFE")

product.raw                    # -> xarray.DataArray
for patch in product.patches(512):
    ...

A zip archive is read zip-native, straight off the archive — nothing is ever extracted to disk, and there's no temp dir to release, so a with block isn't needed just for a one-off read. Everything works, pixels included: metadata files are read with zipfile, rasters by GDAL's /vsizip/, which seeks inside the archive:

product = satimg.open("/data/S2A_MSIL1C_20220114T103401_..._T33UUB_....SAFE.zip")

product.timestamp
product.metadata
for patch in product.patches(512):
    ...

Copernicus downloads, and the zips the Landsat connector writes, store their rasters uncompressed (they are compressed already), and GDAL reads those at plain file speed. A deflated archive works too, but every seek re-inflates from an earlier point; for heavy pixel work on one, extract it first with satimg.open_zip:

with satimg.open_zip("/data/scene.zip") as product:
    for patch in product.patches(512):
        ...

This returns a directory-backed product exactly like satimg.open on a directory would. It extracts to a temp dir that is removed — along with the product's open rasters — when the block exits; read what you need inside the block, since a lazy view can't be rebuilt afterwards. Pass dest= to control where that temp dir is created.

A product's open rasters (and, for a zip-native one, its open archive) are released when its with block exits, so use with satimg.open(path) as product: — zipped or not — if you loop over many products, to release handles promptly rather than waiting on garbage collection.

Two views on the pixels
import satimg

product = satimg.open("/data/S2A_MSIL1C_20220114T103401_..._T33UUB_....SAFE")

product.raw     # every native band, merged onto one grid, native dtype  -> xarray.DataArray
product.visual  # uint8 visualisation: 3-band true colour for optical    -> xarray.DataArray
                # sensors (Sentinel-2, Landsat), 1-band greyscale for SAR
                # (Sentinel-1, NISAR)

Both are lazy DataArrays over the same grid, so a Window means the same thing in each.

Landsat's visual is rendered from top-of-atmosphere reflectance (MTL.json rescaling and the sun elevation), pan-sharpened with a ratio Brovey, the Rayleigh path reflectance for that sun elevation removed, then mapped to 8 bits by a fixed white point and gamma. Nothing is computed from the scene's own pixels, so every window and overview looks the same.

visual_overview(factor) is the visual decimated factor times, read from the overviews the product's own rasters carry (Sentinel-1 GRD COGs have 2x to 64x), so a zoomed-out view or a thumbnail reads a fraction of the pixels. visual_overviews lists the factors on offer, starting with 1 (visual itself):

product.visual_overviews       # e.g. [1, 2, 4, 8, 16, 32, 64]
product.visual_overview(64)    # the whole scene in a few hundred pixels a side
``` The `band` axis is labelled, so select by name:

```python
product.raw.sel(band="red")        # Landsat / (SWIR etc.)  ; "B04" for Sentinel-2, "VV" for Sentinel-1
product.raw.band.values            # e.g. ['coastal', 'blue', 'green', 'red', ...]
product.raw.wavelength_nm          # Sentinel-2 only: central wavelength per band
Walking the image in patches
for patch in product.patches(512, overlap=64):
    tile = patch.raw.values        # np.ndarray, (band, 512, 512), native dtype
    x0, y0 = patch.col, patch.row  # exact offset in the full image
    ...

for patch in product is shorthand for product.patches() (raw bands, 512 px, no overlap). Every patch from product.patches() / patches_at() already carries .raw / .visual / .meta for that window (see Reading raw + visual + metadata together) -- product.patches() / patches_at() are the only iterators in the library.

product.patches() opens raw and visual chunked to exactly the window size before iterating, so each patch read decodes just the one tile it covers. patches_at(), whose windows sit wherever the points are, reads them from the default 1024 px chunks instead: one patch at a time, as a web request would, costs a fraction of a second.

A product releases its rasters when its with block exits, so looping over many products never leaks file handles:

with satimg.open(path) as product:
    ...
Edge handling

product.patches(size, edge=...) decides what happens at the right / bottom border:

edge behaviour use for
"pad" (default) every patch is exactly size, overhang zero-filled batched model inference
"trim" last row/col of patches is smaller — you get exactly the pixels that exist analysis, lossless re-assembly
"skip" drop partial patches, keep only full interior tiles training-set extraction

Indices are always conserved: patch.window tells you where the tile belongs, patch.window.clip(product.width, product.height) gives its valid region.

Patches at specific points

When you already know where to look — detections, sample sites, a sparse set of tiles — patches_at visits only those points instead of sweeping the whole image. Each (col, row) is the centre of its patch, and every patch is exactly size (overhang zero-filled, so points near an edge still work):

points = [(4096, 2048), (10500, 512), (0, 0)]
for patch in product.patches_at(points, 512):
    tile = patch.raw.values         # (band, 512, 512), centred on the point

satimg.windows_at(points, size) gives the bare Windows if you don't need a patch bound.

Reading raw + visual + metadata together

Every patch from product.patches() / product.patches_at() already carries its own window's raw, visual and metadata -- one window, every view.

scene = product.metadata.attrs                 # scene-level scalars, constant per product
                                               # e.g. {"mean_sun_zenith": 77.5, ...}

for p in product.patches_at(points, 512):
    raw = p.raw                                # xarray.DataArray (band, 512, 512), band-labelled
    red = p.raw.sel(band="red").values         # np.ndarray (512, 512)   ("B04" on Sentinel-2)
    nir = p.raw.sel(band="nir08").values       #                          ("B08" on Sentinel-2)
    rgb = p.visual.values                       # np.ndarray (3, 512, 512) uint8, same window

    angles = p.meta.sample()                    # {"sun_zenith": 78.1, "view_zenith": 4.9, ...}
                                               #   -> per-pixel fields, bilinear at the patch centre
    sza_grid = p.meta["sun_zenith"].values      # np.ndarray (512, 512) — the field over the patch
Mapping results back
patch = next(iter(product.patches(1024)))
boxes = detect(patch.visual.values)     # boxes in patch pixels
boxes[:, [0, 2]] += patch.window.col    # -> full-image pixels
boxes[:, [1, 3]] += patch.window.row
latlon = product.transformer.rowcol_to_latlon(boxes[:, [1, 0]])

Working with a single window

from satimg import Window

win = Window(col=4096, row=2048, width=1024, height=1024)
chip = satimg.read_window(product.raw, win)   # lazy xarray.DataArray, (band, y, x)
chip.values                                   # numpy, zero-padded if the window overhangs

Per-pixel metadata

Every sensor ships scene geometry that varies across the image — Sentinel-1's incidence / elevation angles, Sentinel-2's and Landsat's sun / viewing angles — stored on a coarse grid. product.metadata exposes those as named fields that bilinearly interpolate to any pixel:

m = product.metadata
m.fields                          # ['sun_zenith', 'sun_azimuth', 'view_zenith', ...]
m.sun_zenith.at((row, col))       # -> float, bilinear on the coarse grid
m.sample((row, col))              # -> {field: value} for every field
m.sun_zenith.corners()            # -> {'top_left', 'top_right', 'bottom_left', 'bottom_right', 'center'}
m.corners()                       # -> {field: {'top_left': ..., ..., 'center': ...}}  (whole grid)
m.attrs                           # scalar scene-level metadata (mean angles, ...)
Product Fields (all degrees unless noted)
Sentinel-1 incidence_angle, elevation_angle, slant_range_time (seconds), height (metres)
Sentinel-2 sun_zenith, sun_azimuth, view_zenith, view_azimuth
Landsat sun_zenith, sun_azimuth, view_zenith, view_azimuth
VIIRS DNB satellite_zenith, satellite_azimuth, solar_zenith, solar_azimuth, lunar_zenith, lunar_azimuth
MODIS (with its M?D03) solar_zenith, solar_azimuth, satellite_zenith, satellite_azimuth
Sentinel-3 OLCI EFR solar_zenith, solar_azimuth, satellite_zenith, satellite_azimuth
NISAR GCOV incidence_angle, elevation_angle, slant_range (metres), los_east / los_north / along_track_east / along_track_north (unit vectors), ground_track_velocity (m/s)

This is per-pixel geometry (varies across the scene). Per-band identity lives on product.raw instead — the labelled band coordinate, plus wavelength_nm for Sentinel-2. Scene-wide scalars are product.metadata.attrs.

Each field also materialises as a lazy full-grid (y, x) xarray.DataArray (m.sun_zenith.grid), and patches from product.patches() carry a matching lazy view over their window:

for patch in product.patches(512):
    patch.meta.sun_zenith          # lazy (512, 512) DataArray for this window
    patch.meta.at((y, x))          # -> {field: value} at a patch-local pixel
    patch.meta.sample()            # -> {field: value} at the patch centre
    patch.meta.corners()           # -> {field: {'top_left': ..., ..., 'center': ...}}

corners() samples five points (the four corners and the centre) without materialising the patch grid — a cheap way to see how a field varies across a tile. corners()[field]["center"] equals sample()[field].

Geometry without the product

Every product's geometry -- its transformer, image shape, coarse metadata grids and scene attrs -- is a small dict that survives strict JSON (e.g. a PostgreSQL jsonb column; NaN is stored as null). Store it while the product is open and keep converting coordinates and sampling metadata after the file is gone. For a SAR product, load it as a SAROrbitGeometry to also keep the moving-target correction (next section):

with satimg.open("S1A_IW_GRDH_....SAFE.zip") as product:
    stored = product.geometry.to_dict()      # ~30-80 KB

geometry = satimg.SAROrbitGeometry.from_dict(stored)   # SceneGeometry for optical products
geometry.transformer.latlon_to_rowcol((lat, lon))
geometry.metadata.incidence_angle.at((row, col))
geometry.correct_position(lat, lon, speed_mps, heading_deg)   # SAR only

Whichever class loads it, the transformer comes back as the kind that was stored: affine, ground control points (Sentinel-1) or swath (VIIRS, MODIS, OLCI, ICEYE; stored to within a third of a pixel).

Landsat's angle fields and NISAR's radar-grid fields are stored resampled to 32 x 32.

Moving targets in SAR

A target moving towards or away from the radar is displaced along track in a focused SAR image by its own Doppler shift -- the ship sitting off its own wake: tens of metres per m/s of its speed along the line of sight. Every SAR product (SARProduct: Sentinel-1, NISAR, Umbra, Capella, ICEYE) corrects it the same way, given the target's speed and heading (from AIS, say):

product.correct_position(lat, lon, speed_mps, heading_deg)           # where it was seen -> where it is
product.doppler_azimuth_shift_m((row, col), speed_mps, heading_deg)  # metres, + towards the way the sensor flies
product.doppler_pixel_shift((row, col), speed_mps, heading_deg)      # (d_row, d_col), on or off the image
product.heading_to_los((row, col), heading_deg)                      # 0 moving away from the sensor
product.heading_in_image((row, col), heading_deg)                    # compass -> direction on the raster
product.heading_from_image((row, col), image_heading_deg)            # and back

All of it is worked out on the ground from the sensor's own Earth-fixed orbit (metadata.attrs["orbit"]), not from the pixel frame, so a north-up map (NISAR, Capella), a rotated grid (Umbra) and mirrored radar geometry (Sentinel-1, ICEYE) work alike, as do either look side and squinted collects (the beam aimed fore or aft of square to the flight, as Umbra's and Capella's spotlights often are -- it makes the shift larger, by about 1 / cos(squint)). Image-frame headings come from the local pixel grid.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases satimg

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229