Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • S shakyground2
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 11
    • Issues 11
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Shakemap
  • shakyground2
  • Issues
  • #16
Closed
Open
Issue created Mar 25, 2021 by Graeme Weatherill@gweatherOwner

Add GeoTiff and ARC/INFO ASCII GRID exporter for shakemap (as raster)

For integration in the EarthExplorer platform (amongst other users) exporters are needed to write the shakemaps into common geospatial data formats for visualisation. Two formats should be considered initially:

  1. GeoTiff - The common and compact standard for single band raster data

  2. ARC/INFO ASCII GRID - Relatively simple text format recognised by all major GIS platforms. Easy to build using numpy alone, though less compact than GeoTiff.

For handling GeoTiff formats I usually use rasterio (https://rasterio.readthedocs.io/en/latest/), which brings few dependencies and is easy to install and run. It can read and write most common raster formats. Another option is to use the Python GDAL bindings (https://pypi.org/project/GDAL/). This is a more powerful tool and would potentially open up the possibility to write to a wider variety of raster formats in the future. However, it creates a dependency on GDAL, which in my experience has been extremely challenging to run on a lot of platforms (I have only ever had bad experiences getting it to work cleanly, if at all, on OSX, and run into problems on both Windows and Linux).

@marius @rizac @nils @eggi Any suggestions on the most suitable Python tools for building rasters?

Assignee
Assign to
Time tracking