noaacrm

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 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

NOAA Hawaii CRM2023 WCS subsets

This adapter fetches bounded, native-grid float32 GeoTIFF subsets from NOAA's Hawaii CRM2023 archive. The authored box and byte ceiling bound each request; the response must prove its TIFF dimensions and georeferencing. The authored transfer ceiling is 150 MiB.

The adapter does not fetch the full NetCDF archive, invent a TIFF filename, reproject heights or substitute sea for nodata. It uses retained WCS metadata and local fixtures, with no network call needed to validate that evidence.

See implementation and evidence for archive metadata, fixture hashes, validation limits, and the command's audit requirements.

Documentation

Overview

Package noaacrm retains bounded native-grid NOAA Hawaii CRM2023 subsets. Endpoint, coverage, geographic axes and supported format come from the archive's retained WCS 1.0.0 capabilities and coverage description.

Index

Constants

View Source
const Ceiling int64 = 150 * 1024 * 1024

Ceiling is the owner's authored transfer limit, in bytes, not a dataset measurement. A response exceeding it is closed without retaining a file.

View Source
const Endpoint = "https://www.ngdc.noaa.gov/thredds/wcs/crm/cudem/" +
	"crm_vol10_2023.nc"

Endpoint is the GetCoverage OnlineResource published by NOAA in the retained capabilities response, read 2026-11-09. Other archives, products, credentials and guessed fileServer URLs are not accepted here.

Variables

This section is empty.

Functions

func Fetch

func Fetch(get web.Web, b Box, m Metadata, name, into string) (string, error)

Fetch uses the common atomic, length-checked Fetch with an archive-specific response-size guard. Existing products and partial files are never replaced.

Types

type Box

type Box struct {
	West  float64 `yaml:"West" json:"West"`
	South float64 `yaml:"South" json:"South"`
	East  float64 `yaml:"East" json:"East"`
	North float64 `yaml:"North" json:"North"`
}

Box is an authored geographic extent, in longitude/latitude degrees.

func (Box) Dimensions

func (b Box) Dimensions(m Metadata) (int, int, error)

Dimensions is a conservative native-grid dimension ceiling, allowing three extra edge samples for archive bbox snapping. It is not a resampling request.

func (Box) Product

func (b Box) Product(m Metadata, name string) (*data.Product, error)

Product makes a bbox-only native-grid WCS request. This parameter shape is published in Unidata's TDS WCS reference, Examples/GetCoverage. We request the archive-advertised Float format; no width, stride, reprojection or interpolation is invented. The response must prove its own dimensions.

type Info

type Info struct {
	Bytes     int64
	ByteOrder string
	Width     int
	Height    int
	Tags      map[uint16]Tag
}

Info is the classic TIFF first-directory metadata, not a pixel decoder.

func Inspect

func Inspect(path string) (Info, error)

Inspect bounds all offset reads by the actual file and limits directory and metadata sizes. It rejects non-classic TIFF, duplicate tags and truncation.

type Metadata

type Metadata struct {
	West, South, East, North float64
	DX, DY                   float64
}

Metadata is the subset of retained WCS metadata required to form a request.

func ReadMetadata

func ReadMetadata(capabilities, description []byte) (Metadata, error)

ReadMetadata validates the published endpoint and native lon/lat grid. EPSG:0 in the response is not promoted to a known vertical or horizontal CRS: final TIFF tags and the product guide must be inspected separately.

type Tag

type Tag struct {
	Type   uint16
	Count  uint32
	Values []float64 `json:",omitempty"`
	Text   string    `json:",omitempty"`
}

Tag preserves an IFD value without claiming a CRS/datum conversion. TIFF field types and tag numbers are format definitions, not measurements.

Jump to

Keyboard shortcuts

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