Storage allows you to work with the data delivered as a result of a completed order or processing job.
This API supports the STAC specification.
| STAC object | Description | API object in UP42’s storage |
|---|---|---|
| STAC catalog | The starting point for navigating STAC, a top-level landing page that provides a linking structure for grouping other STAC objects. | |
| STAC collection | A STAC object associated with an order that groups related STAC items and aggregates their summary metadata. | A group of data items from the same delivery |
| STAC item | An individual scene in a STAC collection that has a unique spatiotemporal extent. Different spatiotemporal extents produce different STAC items. | Data item |
| STAC asset | A geospatial feature of a STAC item, its mask, preview, or metadata file. | Asset |
| STAC extension | A JSON schema with additional parameters available for a specific STAC object. Extensions differ based on data availability, sensor, and constellation. | |
To get information about the version of the API and its extensions, call the Get the data management landing page endpoint.
You’ll get a list of links outlining the specifications the API adheres to, in the conformsTo parameter:
{ "conformsTo": [ "https://api.stacspec.org/v1.0.0-rc.1/item-search#context", "http://www.opengis.net/spec/cql2/1.0/conf/cql2-text", "http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/oas30", "https://api.stacspec.org/v1.0.0-rc.1/ogcapi-features", <...> ], "links": [ <...> ], "stac_extensions": [], "title": "UP42 Data Management", "description": "UP42 Data Management STAC API", "stac_version": "1.0.0", "id": "up42-storage", "type": "Catalog"}A STAC collection is a delivery you receive after a completed order or processing job.
A STAC collection contains different storage characteristics, for example, a geospatial collection name, a provider name, and a corresponding UP42 asset ID. An order can produce multiple STAC collections.
- To get a list of all STAC collections in your storage, call the Get STAC collections endpoint.
- To get a specific STAC collection, call the Get a STAC collection endpoint with the STAC collection ID as the path parameter.
A STAC collection object contains an assets object, but it’s not a transformed STAC asset. It’s the original delivery that hasn’t been CNAM-transformed:
{ "assets": { "68567134-27ad-7bd7-4b65-d61adb11fc78": { "href": "https://api.up42.com/v2/assets/68567134-27ad-7bd7-4b65-d61adb11fc78", "title": "Original Delivery", "description": null, "type": "application/zip", "roles": ["data", "original"] } }, <...>}To delete an existing STAC collection, call the Delete a STAC collection endpoint with the STAC collection ID as the path parameter.
A STAC item is an individual scene that represents inseparable data and metadata. A STAC item has a unique spatiotemporal extent, that is, has one AOI and acquisition time in its characteristics.
For example, an order with a stereo acquisition mode will produce a STAC collection with two STAC items — one for each image of a slightly different AOI and acquisition time. Every STAC item is attributed to a STAC collection.
Different spatial extents
Tiled images
Different temporal extents
Images with different acquisition times
Different spatial and temporal extents
Stereo pairs or tri-stereo triples with different angles and acquisition times
To update the title or tags of a STAC item, call the Update a STAC item endpoint with the STAC collection ID and the STAC item ID as path parameters, and the new values in the request body, for example:
{ "up42-user:title": "SPOT 6/7 NY Central Park", "up42-user:tags:": ["optical", "berlin"]}- To get a list of all STAC items from a STAC collection, call the Get STAC items endpoint with the STAC collection ID as the path parameter.
- To get information about a specific STAC item, call the Get a STAC item endpoint with the STAC collection ID and the STAC item ID as path parameters.
To search for STAC items with specific parameters across your storage, create a CQL2 filter and call the Get specific STAC items endpoint with your search parameters in the request body as follows:
- Find available parameters by calling the Get data management search parameters endpoint.
- In
filter.args, use a queryable filter parameter in the nestedpropertyfield and follow it with a value. - In
filter.op, add an operator.
An example of a filter that searches for STAC items with cloud coverage less than 20%:
{ "filter": { "op": "<", "args": [ { "property": "eo:cloud_cover" }, 20.0 ] }}A STAC asset is a geospatial feature of a STAC item. For example, a band in an optical image, a thumbnail, or a metadata file.
The CNAM format transforms an UP42 asset from an order into individual geospatial features available for immediate download. Regardless of provider or delivery format, all order assets that fall within the criteria are transformed into a standard model.
The contents of the assets parameter are different, depending on the type of object:
- Inside a STAC item object, CNAM-transformed elements are presented as individual STAC assets.
- Inside a STAC collection object, the order’s original delivery is the only asset. This isn’t a transformed STAC asset.
STAC assets are returned as part of a STAC item response body. You can get STAC assets in one of the following ways:
- By requesting a list of all STAC items from a specific STAC collection.
- By requesting a specific STAC item.
- By making a detailed STAC item search request.
An example of a STAC asset:
{ <...>, "assets": { "mgag5ui3_img_phr1a_ms_202208080011285_sen_6452562101-2.tiff": { "href": "https://api.up42.com/v2/assets/e4a15000-890b-445c-82bb-e4364baac40b", "title": "Multispectral data", "type": "image/tiff; application=geotiff; profile=cloud-optimized", "roles": ["data", "multispectral"], "gsd": 0.7283, "eo:bands": [ { "name": "blue", // The name of the band. "common_name": "blue", // The name commonly used to refer to the band to make it easier to search for bands. "center_wavelength": 0.47, // The center wavelength of the band, in micrometers. "full_width_half_max": 0.07 // The width of the band, as measured at half the maximum transmission, in micrometers. }, { "name": "green", "common_name": "green", "center_wavelength": 0.47, "full_width_half_max": 0.07 }, { "name": "red", "common_name": "red", "center_wavelength": 0.665, "full_width_half_max": 0.038 } ] } }, <...>}STAC asset roles are used to describe the purpose or function of each asset within a STAC item.
Assets are data from completed tasking and catalog orders that you can download. Assets from storage can be used as input imagery for processing.
The following order statuses mean you can download assets from storage:
-
BEING_FULFILLEDSome order assets might have been delivered.
-
FULFILLEDAll order assets have been delivered.
You can generate a pre-signed URL to download an asset without authentication by calling the Create a download URL endpoint with the asset ID as the path parameter. The generated URL is valid for 5 minutes and can be shared. The URL will have the following format:
{ "url": "https://storage.googleapis.com/user-storage-interstellar-prod/assets/<...>"}To get a streaming link for transformed assets, use data management API endpoints as follows:
-
Find a STAC item containing a geospatial feature you want to stream. To search for STAC items with specific parameters across your storage, call the Get specific STAC items endpoint with your search parameters in the request body.
-
Inside a STAC item, view the
assetsobject:JSON {<...>,"type": "FeatureCollection","features": [{"assets": {"aot.tiff": {"href": "https://api.up42.com/v2/assets/a0d443a2-41e8-4995-8b54-a5cc4c448227","title": "Aerosol optical thickness","description": null,"type": "image/tiff; application=geotiff; profile=cloud-optimized","roles": ["data"]},"b01.tiff": {"href": "https://api.up42.com/v2/assets/55434287-31bc-3ad7-1a63-d61aac11ac55","title": "Costal aerosol band","description": null,"type": "image/tiff; application=geotiff; profile=cloud-optimized","roles": ["data"]}}}],<...>} -
Find the assets you want to stream and extract their IDs from the nested
assets.<asset-name>.hrefparameter. For example:Text "href": "https://api.up42.com/v2/assets/a0d443a2-41e8-4995-8b54-a5cc4c448227"↓Asset ID: a0d443a2-41e8-4995-8b54-a5cc4c448227 -
To get a streaming link, call the Create a download URL endpoint with the chosen ID as the path parameter. The response will have the following format:
JSON {"url": "https://storage.googleapis.com/user-storage-interstellar-prod/assets/<...>"} -
Paste the streaming link into a third-party application or visualization software — for example, QGIS.
| Role | Description |
|---|---|
data | A higher-level role for all types of data. The CNAM format transforms all raster assets with the data role into COGs. |
multispectral | An asset related to the multispectral band. |
panchromatic | An asset related to the panchromatic band. |
| Role | Description |
|---|---|
metadata | A higher-level role for all types of metadata. |
bundle | Delivery metadata that contains information about both types of bands, panchromatic and multispectral. |
extended | Detailed metadata for multispectral and panchromatic bands. |
iso-19115 | ISO 19115-1:2014 metadata. |
license | An end-user license agreement (EULA). |
lineage | Processing, ground, or strip lineage. |
lut | A look-up table with rendering of color curves in a reflectance product. |
quality-elevation | Quality elevation metadata. |
stac | STAC-related metadata. |
stereo | Stereo metadata. |
tile-info | Tiling metadata. |
toa-factors | Top-of-atmosphere reflectance metadata. |
angle | Sensor viewing angle model coefficients. |
digest | Digest metadata. |
auxiliary | Auxiliary metadata. |
| Role | Description |
|---|---|
overview | A preview image of higher resolution than thumbnail. |
thumbnail | A low-resolution preview image, usually up to 600 × 600 px. |
visual | A full-resolution version of the data, processed for visual use. |
| Role | Description |
|---|---|
data-mask | A higher-level role for all types of masks. The CNAM format transforms all vector assets with the data-mask role into GeoJSON files. |
cloud | A cloud mask. If an asset has cloud coverage of 5% or lower, cloud masks won’t be provided. |
detector-quality | A quality detector mask. |
footprint | A footprint. |
roi | A region of interest mask. |
saturation | A saturation mask. |
technical-index | A technical index mask. |
visibility | A visibility mask. |
water-mask | A water detection mask. |
cloud-shadow | A cloud shadow detection mask. |
snow-ice | A snow and ice detection mask. |
| Role | Description |
|---|---|
index | Spectral indexes. |
rpc | Rational polynomial coefficients. |
temperature | A surface temperature band. |
emissivity | An emissivity band. |
STAC is extensible, being a network of JSON files that follow corresponding specifications. A STAC extension is a JSON schema with additional parameters available for a specific STAC collection or a STAC item.
STAC extensions contain descriptions of parameters with {prefixes}:. UP42 has platform-specific extensions.
| Parameter | Description |
|---|---|
up42-system:account_id | string The account ID. |
up42-system:workspace_id | string The workspace ID. |
up42-system:asset_id | string The asset ID. |
up42-system:source | string
|
up42-system:job_id | string The processing job ID. |
up42-system:metadata_version | string The metadata version. |
| Parameter | Description |
|---|---|
| string The collection name. |
| string The data product ID. |
| string The modality of data that depends on the data type. For example, multispectral or hyperspectral. |
| Parameter | Description |
|---|---|
up42-user:tags | string STAC item tags. |
up42-user:title | string A custom title of the STAC item. |
| Parameter | Description |
|---|---|
up42-order:id | string The order ID. |
| Parameter | Description |
|---|---|
earthsearch:boa_offset_applied | boolean Whether the –0.1 offset was applied to the cloud-optimized GeoTIFF. |
| Parameter | Description |
|---|---|
s2:sequence | string The version number of the data. Values other than |
s2:processing_baseline | string The version of the Ground Image Processing Parameters used by ESA to process the raw Sentinel-2 data into level 1C and level 2A products. |
| Parameter | Description |
|---|---|
dimap:source_id | string The unique code for a specific data acquisition made by Airbus. |