Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

srb asset — Manage Assets

Run srb asset <action> [options]. Hydra-style key=value overrides report stray tokens in a named error (exit 2).

Actions

  • list and info discover assets; doctor diagnoses them.
  • download fetches assets; bake bakes a local DEM.
  • clean, cache-stats, and prefetch-fixtures manage caches; validate-manifest checks manifests; stack previews offline.

Kind Choices

KINDAssets
terrainPlanetary DEMs/orthophotos.
rocksProcedural/photogrammetric sets.
hdriHigh Dynamic Range Image skydomes.
lightsCurated presets.

srb asset list

srb asset list KIND [--body {moon,mars,earth}]

--body filters by celestial body.

srb asset info

srb asset info KIND TARGET

TARGET: site, rock set, skydome, or lighting preset.

srb asset doctor

srb asset doctor terrain [TARGET] [options]

Optional arguments: TARGET and --body.

--body filters by celestial body. With TARGET, it rejects a site on another body.

OptionDefault or meaning
--patch PATCHdefault.
--lod {low,medium,high}medium.
--patch-size SIZEFloat, meters.
--center X,YMeters, e.g. 100.0,200.0.
--no-orthoSkip orthophoto check/generation.
--seed SEEDProcedural seed, 0.
--deshadeCorrected variant; separate cache.

srb asset download

srb asset download KIND [TARGET] [options]

Terrain accepts a curated TARGET or a region (--lat, --lon, --size-m), never both.

Regions also accept --body, --deshade, --num-locations, and --location-spread-m.

OptionDefault or meaning
TARGETAsset; omit with --all or region.
--allFetch/bake all registered terrain sites, rock sets, or HDRIs. Lights require a TARGET.
--body {moon,mars,earth}For regions, defaults to moon; with --all, filters terrain sites, rock sets, or HDRIs.
--patch PATCHDefault default.
--lod {low,medium,high}Default medium.
--patch-size SIZEFloat, meters.
--center X,YMeters.
--no-orthoSkip orthophoto baking.
--seed SEEDProcedural seed, default 0.
--lat LAT --lon LON --size-m SIZERegion: coordinates in degrees, size in meters; require all three; omit TARGET/--all.
--deshadeCorrected terrain color; manifest deshading applies if omitted.
--num-locations NRegion patches, default 1; above 1: deterministic offsets.
--location-spread-m SIZEOffset radius, meters; for --num-locations > 1, default is region size.
--forceRe-download/re-bake valid cached entries.
--debugVerbose pipeline logs and traceback per failed item.

Non-terrain kinds reject terrain-only options and --force. --lod medium and --num-locations 1 act like omission.

srb asset bake

srb asset bake terrain --dem DEM_PATH --body {moon,mars,earth} --site-name NAME --attribution ATTR [options]
OptionDefault or meaning
--dem DEM_PATHUser DEM path, absolute/relative (e.g. GeoTIFF).
--body {moon,mars,earth}Body.
--site-name NAMECustom-site name.
--attribution ATTRMetadata attribution string.
--patch-size SIZEFloat, meters.
--lod {low,medium,high}Mesh LOD, default medium.
--seed SEEDProcedural rock/displacement seed, default 0.
--debugVerbose mesh logs.

srb asset clean

srb asset clean KIND [TARGET] [options]
Argument/optionDefault or meaning
KINDterrain, rocks, hdri, lights; only terrain supported. Others exit 2: clean: unsupported kind: '<kind>'; use 'terrain'
TARGETOptional; clean only its baked cache.
--rawRemove shared raw archives; omit target.
--bakedRemove baked cache publications and their required files; raw archives remain unless --raw is also selected.
--allRemove all kind cache entries; omit target.

Pass one of --raw, --baked, or --all (otherwise exit 2). Raw archives share content identity. TARGET with --raw/--all is a usage error (exit 2). Clean one site’s baked cache: srb asset clean terrain TARGET --baked.

srb asset validate-manifest

srb asset validate-manifest [--manifest MANIFEST_PATH] [--check-urls] [--check-shas]
OptionDefault or meaning
--manifest MANIFEST_PATHCustom YAML; default: packaged.
--check-urlsHTTP-check mirrors and links.
--check-shasCheck downloaded raw dataset SHA256 against manifest.

srb asset cache-stats

srb asset cache-stats

Prints cache root, total size, entries/sites per body, stale temporary-directory count.

srb asset stack

srb asset stack --body {moon,mars,earth} --lat LAT --lon LON --size-m SIZE [options]
OptionDefault or meaning
--body {moon,mars,earth}Required body.
--lat LAT, --lon LONRequired coordinates, degrees.
--size-m SIZE (--size)Region size in meters; max 8000 m; larger requests refused.
--lod {low,medium,high}medium.
--target-gsd GSDTarget ground-sample distance, meters.
--catalog PATHYAML catalog override (mainly fixture testing).
--allow-largeShows the preview as if large downloads were approved; does not download.
--deshadeText preview reports the request; it does not resolve corrected output.
--jsonJSON instead of table; serializes the plan and omits the --deshade request.

“Consent required” is descriptive; fetch rechecks per-layer consent at srb.terrain.sources.acquisition.check_layer_consent. “Consent required: none” from --allow-large or SRB_TERRAIN_LARGE_OK=1 does not affect fetches.

srb asset prefetch-fixtures

srb asset prefetch-fixtures

Pre-bakes every manifest terrain site at lod=low.

Examples

srb asset list terrain --body moon
srb asset info terrain jezero
srb asset download terrain jezero --lod high
srb asset bake terrain \
  --dem /path/to/my_dem.tif \
  --body moon \
  --site-name Shackleton_Ridge \
  --attribution "LOLA / Kaguya Team" \
  --lod high
srb asset doctor terrain jezero --lod high
srb asset clean terrain --baked
srb asset cache-stats