Skip to content

Instantly share code, notes, and snippets.

View omad's full-sized avatar

Damien Ayers omad

View GitHub Profile
@omad
omad / Export Landsat Scenes from Digital Earth Australia.ipynb
Created September 11, 2017 03:07
Export Landsat Scenes from Digital Earth Australia
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@omad
omad / Datacube Product Definitions.ipynb
Created August 14, 2017 07:02
u46_home/notebooks/Untitled9.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@omad
omad / Investigating Data Cube Dataset YAML format.ipynb
Created August 9, 2017 07:03
Investigating Data Cube Dataset YAML format
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@omad
omad / writers.py
Created May 22, 2017 05:17
DataCube Write Functions
"""
Useful functions for Datacube users
Not used internally, those should go in `utils.py`
"""
import rasterio
import numpy as np
DEFAULT_PROFILE = {
'blockxsize': 256,
@omad
omad / LS7_LS_USGS_ARD2.yaml
Created May 15, 2017 07:14
Attachments for datacube-core#233
name: ls7_LS_USGS_ARD2017
description: Landsat 7 USGS ARD 30 metre tile
metadata_type: eo
storage:
crs: PROJCS["WGS 84 / UTM zone 18N",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-75],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["Easting",EAST],AXIS["Northing",NORTH],AUTHORITY["EPSG","32618"]]
resolution:
x: 30
y: -30
@omad
omad / Daily Polygon DataCube Visualisation.ipynb
Created March 29, 2017 06:15
Daily Polygon DataCube Visualisation.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@omad
omad / ls7_nbar_albers_dataset.json
Created March 16, 2017 03:12
Example Datacube Datasets
{
"lineage": {
"machine": {
"software_versions": {
"python": {
"version": "3.5.3 | packaged by conda-forge | (default, Feb 9 2017, 14:37:12) \n[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)]"
},
"datacube": {
"version": "1.2.2",
"repo_url": "https://github.com/data-cube/agdc-v2.git"
@omad
omad / Find matching date in Pandas Dataframe.ipynb
Created February 27, 2017 20:31
Find matching date in Pandas Dataframe.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@omad
omad / shuffle.html
Created February 24, 2017 03:54
Shuffle Tabular Rows
<html>
<head>
<title></title>
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
</head>
<body>
<h1>Shuffle Table</h1>
<ol>
<li>Copy your selection from Excel into the text area below</li>
<li>Press the shuffle button. (go on, press it a few times if you want)</li>
@omad
omad / Interactive PQ.ipynb
Created August 23, 2016 03:33
notebooks/Interactive PQ.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.