Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
static/css
.gitignore
README.md
app.yaml
appengine_config.py
deploy.sh
handlers.py
home.html
main.py
start_dev_server.sh

README.md

Altitude

Elevation API, running on Google App Engine. An instance is running at altitude.andrewnisbet.nz with full documentation. I wrote a bit about the process of developing the API on my blog.

Getting the data

The data is the ETOPO1 dataset from NOAA. It's too big for git, but you can download it from NOAA. I'm using the ice surface, grid registered, 2-byte integer dataset.

The data is also too big for Google App Engine, so it needs to be split into 30MB parts:

split -b 30000000 -d  data/etopo1_ice_g_i2.bin  data/etopo1_ice_g_i2

then renamed like etopo1_ice_g_i2.bin.XX.

Running locally

The gcloud command doesn't include the App Engine development server, but it's included in the source. If you have the Google Cloud SDK installed in /opt/google-cloud-sdk, the API can be started with:

python /opt/google-cloud-sdk/platform/google_appengine/dev_appserver.py ./app.yaml
You can’t perform that action at this time.