/

Export Data (Raster)

Exports the block results of raster output blocks to GCS or AWS bucket.


Description

A processing block that enables exporting the raster output generated from data or processing blocks from an UP42 workflow to a Google Cloud Storage (GCS) or Amazon Web Services (AWS) bucket.

See this block on the marketplace.

How it works

The full content of the output is copied to the bucket. You can provide a prefix for an output directory within the bucket.

To access the bucket, provide the access credentials via UP42 environment variables:

  • For AWS, provide the AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY as environment variables. No bucket region setting is required.
  • For GCS, provide the full JSON string of Google Application Credentials as the GOOGLE_KEY_STRING environment variable. Environment variables
ParameterOverview
cloud_providerstring / required
A cloud storage provider of the bucket:
  • gcs — Google Cloud Storage
  • aws — Amazon Web Services
bucket_namestring / required
A bucket name.
prefixstring / required
A file structure prefix to limit the dataset search to a specific subdirectory. Conforms to the prefix structure, which excludes the bucket name. For example, folder1/folder2/.

Example

An example exporting Sentinel-2 L1C (SAFE) raster data to a GCS bucket using a prefix.

{
    "sobloo-s2-l1c-fullscene:1":
        {
            "ids": ["S2A_MSIL1C_20190524T101031_N0207_R022_T32UQD_20190524T111235"]
        }
    "export-data:1": {
        "cloud_provider": "gcs",
        "bucket_name": "sentinel-2-data",
        "prefix": "europe/france/"
    }
}

Capabilities

Input

raster
up42_standard
format
{
  "or": [
    "GTiff",
    "SAFE",
    "DIMAP",
    "NetCDF"
  ]
}
To know more please check the block capabilities specifications.