Skip to content

Floating Forests

Amy Boyer edited this page Aug 23, 2019 · 14 revisions

The Floating Forests development Pipeline follows (with PipelineStages inlined for clarity, you can't actually just post this into the API and expect it to work):

{
  "type": "Pipeline",
  "id": "1",
  "attributes": {
    "name": "First Pipeline",
    "workflow_id": null,
    "multiple_subject_sets": true,
    "subject_set_id": null
  },
  "relationships": {
    "pipeline_stages": {
      "data": [
        {
          "type": "PipelineStage",
          "id": "2",
          "attributes": {
            "sort_order": 1,
            "output_format": null,
            "operation": "image_operations.remap_image",
            "select_images": [
              "swir-1",
              "nir",
              "blue"
            ],
            "config": {}
          }
        },
        {
          "type": "PipelineStage",
          "id": "3",
          "attributes": {
            "sort_order": 2,
            "output_format": "png",
            "operation": "image_operations.resize_image",
            "select_images": [
              "swir-1",
              "nir",
              "blue"
            ],
            "config": {
              "width": 3000,
              "height": 3000
            }
          }
        },
        {
          "type": "PipelineStage",
          "id": "4",
          "attributes": {
            "sort_order": 3,
            "output_format": "png",
            "operation": "image_operations.compose_images",
            "select_images": [
              "swir-1",
              "nir",
              "blue"
            ],
            "config": {
              "red": "swir-1",
              "blue": "blue",
              "green": "nir",
              "filename": "composite"
            }
          }
        },
        {
          "type": "PipelineStage",
          "id": "6",
          "attributes": {
            "sort_order": 4,
            "output_format": "jpg",
            "operation": "image_operations.tile_image",
            "select_images": [
              "composite"
            ],
            "config": {
              "tile_size": 500,
              "tile_overlap": 50,
              "output_directory": "tiles"
            }
          }
        },
        {
          "type": "PipelineStage",
          "id": "8",
          "attributes": {
            "sort_order": 5,
            "output_format": "csv",
            "operation": "gis_operations.compute_corners",
            "select_images": [
              "composite"
            ],
            "config": {
              "tile_size": 500,
              "tile_overlap": 50,
              "output_filename": "utm"
            }
          }
        },
        {
          "type": "PipelineStage",
          "id": "5",
          "attributes": {
            "sort_order": 6,
            "output_format": null,
            "operation": "panoptes_operations.upload_subject",
            "select_images": [
              "composite",
              "tiles/*.jpg"
            ],
            "config": {}
          }
        }
      ]
    }
  }
}
Clone this wiki locally