Skip to content

Instantly share code, notes, and snippets.

View Spaxe's full-sized avatar
🏹

Xavier Ho Spaxe

🏹
View GitHub Profile
@Spaxe
Spaxe / gist:aba0f07b522e4f6a76b5
Created March 29, 2016 04:55
ingestion error
$ datacube-ingest -v ingest LS8_OLI_TIRS_NBAR_P54_GANBAR01-032_090_083_20160222/
2016-03-29 15:54:03,252 INFO Matched collection u'eo' (1)
2016-03-29 15:54:03,252 INFO Indexing cff1bd88-89bd-4516-9d27-a11e040942ce
2016-03-29 15:54:03,260 INFO Indexed datasets LS8_OLI_TIRS_NBAR_P54_GANBAR01-032_090_083_20160222
2016-03-29 15:54:03,264 INFO Storing 1 dataset(s) using StorageType(name=u'ls8_nbar', id_=8)
2016-03-29 15:54:03,275 INFO Failed to auto identify EPSG: 7
2016-03-29 15:54:03,276 INFO Failed to auto identify EPSG: 7
2016-03-29 15:54:03,276 ERROR CPLE_AppDefined in No PROJ.4 translation for source SRS, coordinate
transformation initialization has failed.
2016-03-29 15:54:03,276 ERROR Error opening source dataset: /Users/ho03b/landsat/nci/LS8_OLI_TIRS_NBAR_P54_GANBAR01-032_090_083_20160222/scene01/LS8_OLI_TIRS_NBAR_P54_GANBAR01-032_090_083_20160222_B6.tif
acquisition:
groundstation: {aos: '2016-02-22 00:00:00', los: '2016-02-22 00:00:00', name: LGN}
creation_dt: '2016-02-22 00:00:00'
extent:
center_dt: '2016-02-22 23:49:48'
coord:
ll: {lat: -34.13197564959201, lon: 148.99925096327698}
lr: {lat: -34.18755686123215, lon: 151.4592804114545}
ul: {lat: -32.161057012323695, lon: 149.08786274420427}
ur: {lat: -32.21263337678139, lon: 151.49349704177084}
$ gdalinfo LS8_OLI_TIRS_NBAR_P54_GANBAR01-032_090_083_20160222/scene01/LS8_OLI_TIRS_NBAR_P54_GANBAR01-032_090_083_20160222_B6.tif
Driver: GTiff/GeoTIFF
Files: LS8_OLI_TIRS_NBAR_P54_GANBAR01-032_090_083_20160222/scene01/LS8_OLI_TIRS_NBAR_P54_GANBAR01-032_090_083_20160222_B6.tif
Size is 9081, 8761
Coordinate System is:
PROJCS["GDA94 / MGA zone 56",
GEOGCS["GDA94",
DATUM["Geocentric_Datum_of_Australia_1994",
SPHEROID["GRS 1980",6378137,298.2572221010002,
AUTHORITY["EPSG","7019"]],
$ datacube-ingest -vvv ingest LS8_OLI_TIRS_NBAR_P54_GANBAR01-032_090_083_20160222
2016-03-29 16:16:45,683 INFO Matched collection u'eo' (1)
2016-03-29 16:16:45,683 INFO Indexing 3e034b98-64d9-451b-9697-2603e0b24ff2
2016-03-29 16:16:45,684 DEBUG Using provided collection 1
2016-03-29 16:16:45,695 INFO Indexed datasets LS8_OLI_TIRS_NBAR_P54_GANBAR01-032_090_083_20160222
2016-03-29 16:16:45,700 INFO Storing 1 dataset(s) using StorageType(name=u'ls8_nbar_albers', id_=5)
2016-03-29 16:16:45,738 DEBUG openening /Users/ho03b/landsat/nci/LS8_OLI_TIRS_NBAR_P54_GANBAR01-032_090_083_20160222/scene01/LS8_OLI_TIRS_NBAR_P54_GANBAR01-032_090_083_20160222_B6.tif, band 1
2016-03-29 16:16:45,765 DEBUG Got coordinate system
2016-03-29 16:16:45,765 INFO Failed to auto identify EPSG: 7
2016-03-29 16:16:45,765 DEBUG Got coordinate system
> /usr/local/lib/python2.7/site-packages/datacube-1.0.1+20.g0cfa148.dirty-py2.7.egg/datacube/storage/storage.py(340)open()
339 _LOG.debug("openening %s, band %s", filename, bandnumber)
--> 340 with rasterio.open(filename) as src:
341 self.transform = src.affine
ipdb>
2016-03-30 10:09:55,373 DEBUG Got coordinate system
2016-03-30 10:09:55,373 INFO Failed to auto identify EPSG: 7
2016-03-30 10:09:55,376 DEBUG Got coordinate system
2016-03-30 10:09:55,376 INFO Failed to auto identify EPSG: 7
./check-code.sh
+ pep8 tests integration_tests --max-line-length 120
+ pylint -j 2 --reports no datacube examples/band_stats.py
+ py.test -r sx --cov datacube --durations=5 datacube examples tests
============================================ test session starts ============================================
platform darwin -- Python 2.7.11, pytest-2.9.0, py-1.4.31, pluggy-0.3.1
rootdir: /Users/ho03b/dev/agdc-v2, inifile: pytest.ini
plugins: cov-2.2.1
collected 98 items
$ pip install rasterio --upgrade
Collecting rasterio
Downloading rasterio-0.33.0-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (19.3MB)
100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 19.3MB 74kB/s
Requirement already up-to-date: snuggs in /usr/local/lib/python2.7/site-packages/snuggs-1.3.1-py2.7.egg (from rasterio)
Requirement already up-to-date: enum34 in /usr/local/lib/python2.7/site-packages/enum34-1.1.2-py2.7.egg (from rasterio)
Requirement already up-to-date: click-plugins in /usr/local/lib/python2.7/site-packages/click_plugins-1.0.3-py2.7.egg (from rasterio)
Collecting numpy (from rasterio)
Downloading numpy-1.11.0-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (3.9MB)
100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 3.9MB 374kB/s
ERROR in ./src/app.js
Module build failed: ReferenceError: Unknown plugin "transform-flow-comments" specified in "base" at 0, attempted to resolve relative to "/Users/spaxe/dev/3d-model-viewer/src"
at /Users/spaxe/dev/3d-model-viewer/node_modules/babel-core/lib/transformation/file/options/option-manager.js:179:17
at Array.map (native)
at Function.normalisePlugins (/Users/spaxe/dev/3d-model-viewer/node_modules/babel-core/lib/transformation/file/options/option-manager.js:155:20)
at OptionManager.mergeOptions (/Users/spaxe/dev/3d-model-viewer/node_modules/babel-core/lib/transformation/file/options/option-manager.js:277:36)
at OptionManager.init (/Users/spaxe/dev/3d-model-viewer/node_modules/babel-core/lib/transformation/file/options/option-manager.js:465:10)
at File.initOptions (/Users/spaxe/dev/3d-model-viewer/node_modules/babel-core/lib/transformation/file/index.js:194:75)
at new File (/Users/spaxe/dev/3d-model-viewer/node_modules/babel-core/lib/transformation/file/index.js:123:22)
@Spaxe
Spaxe / proposal.md
Created June 23, 2016 00:19
GCAP16 talk proposal draft

Session Description

Physics is common in video games, but hard to code for beginners.

Learn about velocity, forces and acceleration. Emulate gravity, wind and magnets with mass. Control time as discrete steps. Overcome common pitfalls like irregular update cycles and overshooting. Bring realism to your game with motion drag, surface friction, and elasticity.

Sometimes plugging in a physics engine is not enough. Engines are often fixed in functionality. You will learn the foundation of mechanical physics, and that knowledge will help you extending the wildest physics feature you can add to your games.

This talk will be most educational for the audience interested in learning more about physics programming, games developers, or anyone generally curious about how it works.