{
	"info": {
		"_postman_id": "32d01485-637b-45de-a1a0-7b5f0095ad9a",
		"name": "Examples for WorldView",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "True color",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Authorization",
						"value": "Bearer <your access token>"
					}
				],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "request",
							"value": "{\n  \"input\": {\n    \"bounds\": {\n      \"properties\": {\n        \"crs\": \"http://www.opengis.net/def/crs/EPSG/0/32633\"\n      },\n      \"bbox\": [\n        561924.43,\n        5172145.65,\n        564217.92,\n        5174392.08\n      ]\n    },\n    \"data\": [{\n      \"type\": \"byoc-991fe3be-4d19-4d9f-9941-879da0a5c3b3\",\n      \"dataFilter\": {\n        \"timeRange\": {\n          \"from\": \"2020-11-06T00:00:00.0Z\",\n          \"to\": \"2020-11-06T23:59:59.9Z\"\n        }\n      }\n    }]\n  },\n  \"output\": {\n    \"width\": 512,\n    \"height\": 512,\n    \"responses\": [\n      {\n        \"identifier\": \"default\",\n        \"format\": {\n          \"type\": \"image/png\"\n        }\n      }\n    ]\n  }\n}",
							"type": "text"
						},
						{
							"key": "evalscript",
							"value": "//VERSION=3\nfunction setup() {\n  return {\n    input: [{\"bands\": [\"Red\", \"Green\", \"Blue\", \"dataMask\"]}],\n    output: { bands: 4}\n  }\n}\nfunction evaluatePixel(sample) {\n  return [2.5 * sample.Red / 10000, \n          2.5 * sample.Green / 10000, \n          2.5 * sample.Blue / 10000,\nsample.dataMask]\n}",
							"type": "text"
						}
					]
				},
				"url": {
					"raw": "https://services.sentinel-hub.com/api/v1/process",
					"protocol": "https",
					"host": [
						"services",
						"sentinel-hub",
						"com"
					],
					"path": [
						"api",
						"v1",
						"process"
					]
				}
			},
			"response": []
		},
		{
			"name": "True color full 2m resolution",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Authorization",
						"value": "Bearer <your access token>"
					}
				],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "request",
							"value": "{\n  \"input\": {\n    \"bounds\": {\n      \"properties\": {\n        \"crs\": \"http://www.opengis.net/def/crs/EPSG/0/32633\"\n      },\n      \"bbox\": [\n        561924.43,\n        5172145.65,\n        564217.92,\n        5174392.08\n      ]\n    },\n    \"data\": [{\n      \"type\": \"byoc-991fe3be-4d19-4d9f-9941-879da0a5c3b3\",\n      \"dataFilter\": {\n        \"timeRange\": {\n          \"from\": \"2020-11-06T00:00:00.0Z\",\n          \"to\": \"2020-11-06T23:59:59.9Z\"\n        }\n      }\n    }]\n  },\n  \"output\": {\n    \"resx\": 2,\n    \"resy\": 2,\n    \"responses\": [\n      {\n        \"identifier\": \"default\",\n        \"format\": {\n          \"type\": \"image/png\"\n        }\n      }\n    ]\n  }\n}",
							"type": "text"
						},
						{
							"key": "evalscript",
							"value": "//VERSION=3\nfunction setup() {\n  return {\n    input: [{\"bands\": [\"Red\", \"Green\", \"Blue\", \"dataMask\"]}],\n    output: { bands: 4}\n  }\n}\nfunction evaluatePixel(sample) {\n  return [2.5 * sample.Red / 10000, \n          2.5 * sample.Green / 10000, \n          2.5 * sample.Blue / 10000,\nsample.dataMask]\n}",
							"type": "text"
						}
					]
				},
				"url": {
					"raw": "https://services.sentinel-hub.com/api/v1/process",
					"protocol": "https",
					"host": [
						"services",
						"sentinel-hub",
						"com"
					],
					"path": [
						"api",
						"v1",
						"process"
					]
				}
			},
			"response": []
		},
		{
			"name": "True color Pan-Sharpened",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Authorization",
						"value": "Bearer <your access token>"
					}
				],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "request",
							"value": "{\n  \"input\": {\n    \"bounds\": {\n      \"properties\": {\n        \"crs\": \"http://www.opengis.net/def/crs/EPSG/0/32633\"\n      },\n      \"bbox\": [\n        561924.43,\n        5172145.65,\n        564217.92,\n        5174392.08\n      ]\n    },\n    \"data\": [{\n      \"type\": \"byoc-991fe3be-4d19-4d9f-9941-879da0a5c3b3\",\n      \"dataFilter\": {\n        \"timeRange\": {\n          \"from\": \"2020-11-06T00:00:00.0Z\",\n          \"to\": \"2020-11-06T23:59:59.9Z\"\n        }\n      }\n    }]\n  },\n  \"output\": {\n    \"width\": 512,\n    \"height\": 512,\n    \"responses\": [\n      {\n        \"identifier\": \"default\",\n        \"format\": {\n          \"type\": \"image/png\"\n        }\n      }\n    ]\n  }\n}",
							"type": "text"
						},
						{
							"key": "evalscript",
							"value": "//VERSION=3\nfunction setup() {\n  return {\n    input: [{\n      \"bands\": [\"Red\", \"Green\", \"Blue\", \"NearIR1\", \"PAN\", \"dataMask\"]\n    }],\n    output: {\n      bands: 4\n    }\n  }\n}\n\nfunction evaluatePixel(samples) {\n    let sudoPanW = (samples.Red + samples.Green + samples.Blue + samples.NearIR1 ) / 4\n    let ratioW = samples.PAN / sudoPanW / 10000 * 2.5\n    let val = [samples.Red * ratioW, samples.Green * ratioW, samples.Blue * ratioW, samples.dataMask]\n    return val\n}",
							"type": "text"
						}
					]
				},
				"url": {
					"raw": "https://services.sentinel-hub.com/api/v1/process",
					"protocol": "https",
					"host": [
						"services",
						"sentinel-hub",
						"com"
					],
					"path": [
						"api",
						"v1",
						"process"
					]
				}
			},
			"response": []
		},
		{
			"name": "True color Pan-Sharpened full 0.5m resolution",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Authorization",
						"value": "Bearer <your access token>"
					}
				],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "request",
							"value": "{\n  \"input\": {\n    \"bounds\": {\n      \"properties\": {\n        \"crs\": \"http://www.opengis.net/def/crs/EPSG/0/32633\"\n      },\n      \"bbox\": [\n        562178.37,\n        5172572.90,\n        562969.49,\n        5173143.61\n]\n    },\n    \"data\": [{\n      \"type\": \"byoc-991fe3be-4d19-4d9f-9941-879da0a5c3b3\",\n      \"dataFilter\": {\n        \"timeRange\": {\n          \"from\": \"2020-11-06T00:00:00.0Z\",\n          \"to\": \"2020-11-06T23:59:59.9Z\"\n        }\n      }\n    }]\n  },\n  \"output\": {\n    \"resx\": 0.5,\n    \"resy\": 0.5,\n    \"responses\": [\n      {\n        \"identifier\": \"default\",\n        \"format\": {\n          \"type\": \"image/png\"\n        }\n      }\n    ]\n  }\n}",
							"type": "text"
						},
						{
							"key": "evalscript",
							"value": "//VERSION=3\nfunction setup() {\n  return {\n    input: [{\n      \"bands\": [\"Red\", \"Green\", \"Blue\", \"NearIR1\", \"PAN\", \"dataMask\"]\n    }],\n    output: {\n      bands: 4\n    }\n  }\n}\n\nfunction evaluatePixel(samples) {\n    let sudoPanW = (samples.Red + samples.Green + samples.Blue + samples.NearIR1 ) / 4\n    let ratioW = samples.PAN / sudoPanW / 10000 * 2.5\n    let val = [samples.Red * ratioW, samples.Green * ratioW, samples.Blue * ratioW, samples.dataMask]\n    return val\n}",
							"type": "text"
						}
					]
				},
				"url": {
					"raw": "https://services.sentinel-hub.com/api/v1/process",
					"protocol": "https",
					"host": [
						"services",
						"sentinel-hub",
						"com"
					],
					"path": [
						"api",
						"v1",
						"process"
					]
				}
			},
			"response": []
		},
		{
			"name": "NDVI visualized using valueInterpolate function",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Authorization",
						"value": "Bearer <your access token>"
					}
				],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "request",
							"value": "{\n  \"input\": {\n    \"bounds\": {\n      \"properties\": {\n        \"crs\": \"http://www.opengis.net/def/crs/EPSG/0/32633\"\n      },\n      \"bbox\": [\n        561924.43,\n        5172145.65,\n        564217.92,\n        5174392.08\n]\n    },\n    \"data\": [\n      {\n       \"type\": \"byoc-991fe3be-4d19-4d9f-9941-879da0a5c3b3\",\n        \"dataFilter\": {\n          \"timeRange\": {\n             \"from\": \"2020-11-06T00:00:00.0Z\",\n          \"to\": \"2020-11-06T23:59:59.9Z\"\n          }\n        }\n      }\n    ]\n  },\n  \"output\": {\n    \"width\": 512,\n    \"height\": 512,\n    \"responses\": [\n      {\n        \"identifier\": \"default\",\n        \"format\": {\n          \"type\": \"image/png\"\n        }\n      }\n    ]\n  }\n}",
							"type": "text"
						},
						{
							"key": "evalscript",
							"value": "//VERSION=3\nfunction setup() {\n  return {\n    input: [\"Red\", \"NearIR1\", \"dataMask\"],\n    output: {\n      bands: 4\n    }\n  }\n}\n\nfunction evaluatePixel(sample) {\n  let ndvi = (sample.NearIR1 - sample.Red) / (sample.NearIR1 + sample.Red)\n  return valueInterpolate(ndvi,\n    [0.0, 0.3, 1.0],\n    [\n      [1, 0, 0, sample.dataMask],\n      [1, 1, 0, sample.dataMask],\n      [0.1, 0.3, 0, sample.dataMask],\n    ])\n}",
							"type": "text"
						}
					]
				},
				"url": {
					"raw": "https://services.sentinel-hub.com/api/v1/process",
					"protocol": "https",
					"host": [
						"services",
						"sentinel-hub",
						"com"
					],
					"path": [
						"api",
						"v1",
						"process"
					]
				}
			},
			"response": []
		},
		{
			"name": "Reflectance values for all bands and dataMask, output as a floating point GeoTIFF",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Authorization",
						"value": "Bearer <your access token>"
					}
				],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "request",
							"value": "{\n  \"input\": {\n    \"bounds\": {\n      \"properties\": {\n        \"crs\": \"http://www.opengis.net/def/crs/EPSG/0/32633\"\n      },\n      \"bbox\": [\n        561924.43,\n        5172145.65,\n        564217.92,\n        5174392.08\n]\n    },\n    \"data\": [\n      {\n       \"type\": \"byoc-991fe3be-4d19-4d9f-9941-879da0a5c3b3\",\n        \"dataFilter\": {\n          \"timeRange\": {\n             \"from\": \"2020-11-06T00:00:00.0Z\",\n          \"to\": \"2020-11-06T23:59:59.9Z\"\n          }\n        }\n      }\n    ]\n  },\n  \"output\": {\n    \"width\": 512,\n    \"height\": 512,\n\"responses\": [\n      {\n        \"identifier\": \"default\",\n        \"format\": {\n          \"type\": \"image/tiff\"\n        }\n      }\n    ]\n  }\n}",
							"type": "text"
						},
						{
							"key": "evalscript",
							"value": "//VERSION=3\nfunction setup() {\nreturn {\ninput: [\"Red\", \"Green\", \"Blue\", \"NearIR1\", \"PAN\", \"dataMask\"],\noutput: {\nbands: 6,\nsampleType: \"FLOAT32\"\n}\n}\n}\nfunction evaluatePixel(sample) {\nreturn [sample.Red / 10000,\nsample.Green / 10000,\nsample.Blue / 10000,\nsample.NearIR1 / 10000,\nsample.PAN / 10000,\nsample.dataMask\n]\n}",
							"type": "text"
						}
					]
				},
				"url": {
					"raw": "https://services.sentinel-hub.com/api/v1/process",
					"protocol": "https",
					"host": [
						"services",
						"sentinel-hub",
						"com"
					],
					"path": [
						"api",
						"v1",
						"process"
					]
				}
			},
			"response": []
		}
	],
	"auth": {
		"type": "oauth2",
		"oauth2": [
			{
				"key": "addTokenTo",
				"value": "header",
				"type": "string"
			}
		]
	},
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	]
}