tnm

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Hawaii elevation catalogue

This adapter retains the USGS National Map product response for an authored rectangle around Hawaii island. The query in hawaii.yaml requests the archive's 1/3 arc-second elevation product group in GeoTIFF form. It does not establish complete island coverage, a height datum or a coastline mask by itself.

The public archive needs no astronomical login. The command uses the existing Celestial-data fetch path and refuses to replace retained catalogue bytes. Malformed replies remain available for inspection, but the command fails rather than accepting them as catalogues.

game build
bin/celestial-data terrain-index --into /path/to/terrain

Record the command, adapter revision, purpose and retained files in FETCHED.md before downloading. Select terrain products from the retained response, then check their coverage, metadata, dimensions and datum before scene staging.

Documentation

Overview

Package tnm retains elevation product catalogues from the USGS National Map. Catalogue bytes are fetched and kept before their products are selected.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIndex

func CheckIndex(path string) error

CheckIndex validates a retained catalogue without discarding archive replies.

func HawaiiIndex

func HawaiiIndex() (*celestialdata.Product, error)

HawaiiIndex requests 1/3 arc-second elevation products intersecting an authored bounding rectangle around Hawaii island. These are search bounds, not surveyed coastline coordinates; archive metadata establishes coverage.

func Products

func Products(index string) ([]*celestialdata.Product, error)

Products selects the latest dated release of each tile in a retained index. The accompanying metadata is retained too, so datum and units can be read before the terrain is staged. No network query occurs during selection.

func ServedProduct

func ServedProduct(product *celestialdata.Product,
	size int64) (*celestialdata.Product, error)

ServedProduct pins a transfer to the server's observed representation size. The original catalogue remains retained; a changed catalogue size must be recorded rather than silently accepted. The subsequent GET must match too.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL