Home

Awesome

Product Extension Specification

This document explains the Product Extension to the SpatioTemporal Asset Catalog (STAC) specification.

This extension provides a generic framework to describe products related to the data in a STAC catalog. A product is a package offer of the STAC item and thus describes properties specific to the product packaging and its distribution. Several products may be specified at assets level, each with its own properties. This extension is intended to be adapted by other extensions that provide best practises or definitions about the product like specific dictionaries for the product type or the timeliness of the product.

Fields

The fields in the table below can be used in these parts of STAC documents:

Field NameTypeDescription
product:typestringThe product type.
product:timelinessstringThe average expected timeliness of the product as an ISO 8601 Duration.
product:timeliness_categorystringA proprietary category identifier for the timeliness of the product.
product:acquisition_typestringThe acquisition type of the product.

[!IMPORTANT]
product:timeliness is REQUIRED if product:timeliness_category is provided.

Additional Field Information

product:type

The product type in this extension is a free-form text that providers can freely use to descibe their product types. Some extensions may specify more specific rules for this field.

This field superceedes the sar:product_type field.

product:acquisition_type

The product acquisition type describes the purpose of the acquisition. It is similar to the acquisitionType field from the OGC® Earth Observation Metadata profile of Observations & Measurements , Table 5:

Used to distinguish at a high level the appropriateness of the acquisition for "general" use, whether the product is a nominal acquisition, special calibration product or other.

Admitted values are:

Sentinel-2 Annex A (page 90) provides the calibration sites so some acquisitions over those areas will be acquired for calibration purposes. The product:acquisition_type field brings is the possibility to "flag" products as nominal, calibration or other (not nominal, not calibration).

Sentinel-1 provides few acquisitions in given dates and orbits that were acquired in a different mode. Those products would have calibration.

Timeliness

Below you can find an example that shows how the timeliness fields could be used.

The Copernicus programme releases products on three levels of timeliness:

NameDescriptionproduct:timelinessproduct:timeliness_category
Near Real-TimeDelivered less than 3 hours after data acquisition.e.g. PT3H (3 hours)NRT
Short Time-CriticalDelivered within 36 (Sentinel-6) to 48 (Sentinel-3) hours after data acquisition.e.g. PT36H (36 hours)STC
Non Time-CriticalDelivered typically within 1 month after data acquisition.e.g P1M (1 month)NTC

[!WARNING]

Be careful when specifying the durations for product:timeliness. It is recommended to closely reflect the semantics of timeliness as specified by the provider. For example, if the timeliness is 36 hours, specify PT36H instead of P1DT12H, although allowed:

The standard does not prohibit date and time values in a duration representation from exceeding their "carry over points". Thus, PT36H could be used as well as P1DT12H for representing the same duration. But keep in mind that PT36H is not the same as P1DT12H when switching from or to Daylight saving time.

Source: https://en.wikipedia.org/wiki/ISO_8601#Durations

Contributing

All contributions are subject to the STAC Specification Code of Conduct. For contributions, please follow the STAC specification contributing guide Instructions for running tests are copied here for convenience.

Running tests

The same checks that run as checks on PR's are part of the repository and can be run locally to verify that changes are valid. To run tests locally, you'll need npm, which is a standard part of any node.js installation.

First you'll need to install everything with npm once. Just navigate to the root of this repository and on your command line run:

npm install

Then to check markdown formatting and test the examples against the JSON schema, you can run:

npm test

This will spit out the same texts that you see online, and you can then go and fix your markdown or examples.

If the tests reveal formatting problems with the examples, you can fix them with:

npm run format-examples