Skip to content

Instantly share code, notes, and snippets.

View BexDunn's full-sized avatar
🌏
Working

Bex Dunn BexDunn

🌏
Working
View GitHub Profile
@BexDunn
BexDunn / links.txt
Created October 13, 2020 23:31
Cool and interesting links
@BexDunn
BexDunn / gist:9cc1c36ccc6711f5d936b5df81ccd944
Created August 12, 2020 05:57
import and reproject raster
bex Today at 2:56 PM
hey, do we have a import and reproject raster function or functionality for non-dea rasters? Or am I writing one?
Chad 25 minutes ago
yeah xr_reproject
Chad 23 minutes ago
somehting like this:
from datacube.utils.geometry import assign_crs
sync_repo https://github.com/GeoscienceAustralia/dea-notebooks.git master
#clear catchment list from database, clear cell outputs before pushing to repo with Emma's wit DB
catchment_list = dio.get_catchment_list(vague_string)
@BexDunn
BexDunn / gist:50ecd576b761a021b665674011b94437
Created March 13, 2019 21:21
from_kirrill display datasets
from IPython.display import GeoJSON
import datacube
from datacube.testutils.geom import epsg4326
dc = datacube.Datacube(env='s2')
GeoJSON([ds.extent.to_crs(epsg4326).__geo_interface__
for ds in dc.find_datasets(
product='s2a_nrt_granule',
time=('2019-02-03', '2019-02-03'))])