Skip to content

API Wishlist

Rilee edited this page Mar 14, 2019 · 3 revisions

API

Notes

A wish list or sketchpad for API functionality, both command-line and library.

stare-cover-from-file( nc/hdf-file, optional-resolution-level ) --> stare-cover

This function returns a list of STARE indices or intervals corresponding to a set of triangles that cover the spatial support of the data in a file.

file-to-stare-cover( hdf-file, optional-resolution-level ) --> stare-cover

The stare-cover can be used as metadata for set-operations.

stare-index-from-file( nc/hdf-file, optional-resolution-level ) --> stare-index

This function indexes the data elements in the file, associating a STARE index with each element. It would be nice if these indices are provided in a form "matching" the input. For example, maybe adding a STARE index dataset to an nc/hdf-file -- might add a 64-bit int. Could be done like existing "grids" are done.