Skip to content
English - United States
  • There are no suggestions because the search field is empty.

Exporting a raster from Workflows

How to export a GeoTIFF from an ImageResult object

Option 1: Download from a saved product in Catalog (Recommended)
This is the more involved approach, but has the benefit of saving the analysis for future use by you and your team, whether that’s simply to download it again or to access it using Workflows or Scenes.

With this method you would first save the data to the Catalog and then download the data as a GeoTIFF.

 

Option 2: Manually burn the NumPy array to a file
This is essentially the “manual” option, where you take the information available to you from the ImageResult (pixel values and all the geospatial context info) and dump them into a file. If you want to go this route, we recommend using the Python package rasterio (already installed in Workbench). Essentially you will use the following code, but with some additional arguments:

with rasterio.open('output-test.tif', 'w', driver='GTiff', ...) as f:
f.write(array, 1)

This option is fine for one-offs, but you need to manually manage any saved files and redo the analysis should you misplace them.