Access Data

Cloud Hosted Archive

Getting Started With SCEDC AWS Public Dataset

This page describes some quick examples in python to start using the SCEDC dataset.


AWS account: sign up at
AWS credentials: For programmatic access you need Access Keys.
boto3 and botocore: AWS SDK for Python

Python Snippet

import boto3, botocore
BUCKET_NAME = 'scedc-pds'

except botocore.exceptions.ClientError as e:
       if e.response['Error']['Code'] == "404":
            print("The object does not exist.")

Docker Example

This example shows how to run a Docker image with ObsPy and Jupyter Notebook. You can then run the python snippet and start using classes from the Obspy framework.

run from os prompt:
~ $: docker pull crleblanc/obspy-notebook
~ $: docker run -e AWS_ACCESS_KEY_ID= -e AWS_SECRET_ACCESS_KEY= -p 8888:8888 crleblanc/obspy-notebook:latest
~ $: docker exec pip install boto3

Using an Amazon Machine Image (AMI)

There is a public AMI image called scedc-demo that has a Linux OS, python, boto3 and botocore installed.
  • from your AWS management console, choose "EC2"
  • Under "Instances" choose to launch an instance. Select existing AMI named "scedc-demo" (under Community AMIs)
  • For a more detailed step-by-step, look at this tutorial.
  • References