Skip to content

Instantly share code, notes, and snippets.

View ceholden's full-sized avatar
🌳

Chris Holden ceholden

🌳
View GitHub Profile
@ceholden
ceholden / renaming.sh
Last active August 29, 2015 14:08
Move stacked Landsat images into correct locations for Jake
# CD to wherever the data are located, but NOT in the Stacks directory
cd [data location]
# Don't move the first time around -- do a "dry run"
# Redefine "do_move" to 1 to actually move the files
do_move=0
# Loop over stacks within "Stacks" directory, moving them into their own folders
for stk in Stacks/*stack; do
# Find just the Landsat bit of the ID, not the ESPA or the "stack" part
@ceholden
ceholden / prompt_test.py
Created November 13, 2014 18:49
Example using raw_input for shell interface menus
#!/usr/bin/env python
""" Command prompt
Hierarchy:
- Insert
+ What PR?
+ Who?
+ What project?
+ Location
@ceholden
ceholden / opengeo-vm.log
Created September 23, 2015 17:28
MODIS preprocessing test logs
opengeo-vm@opengeo-vm:/media/sf_Downloads/tmp/MOD13Q1$ gdalinfo --formats | grep HDF
HDF4 (ros): Hierarchical Data Format Release 4
HDF4Image (rw+): HDF4 Dataset
HDF5 (ros): Hierarchical Data Format Release 5
HDF5Image (ro): HDF5 Dataset
opengeo-vm@opengeo-vm:/media/sf_Downloads/tmp/MOD13Q1$ gdalinfo --version
GDAL 1.11.2, released 2015/02/10
opengeo-vm@opengeo-vm:/media/sf_Downloads/tmp/MOD13Q1$ gdalbuildvrt -sd 1 ndvi_2003.vrt MOD13Q1.A2003353.h2*hdf
0...10...20...30...40...50...60...70...80...90...100 - done.
opengeo-vm@opengeo-vm:/media/sf_Downloads/tmp/MOD13Q1$ gdalwarp -t_srs "EPSG:4326" -multi ndvi_2003.vrt ndvi_2003-mosaic.gtif
@ceholden
ceholden / bobp-python.md
Created November 8, 2015 02:47 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@ceholden
ceholden / CCDC_results_to_products.md
Last active May 2, 2017 19:44
LCMAP CCDC results and products

CCDC Results to Products Guide

Results storage

The CCDC algorithm records its results as "attributes" of each time series segment found during each pixel's record. These "attributes" are stored in the original MATLAB code as an array of structures, with each pixel ran having at least one segment or more than one if there was a break detected. As each task running the MATLAB implementation finishes a pixel in a line, the "record of change" (rec_cg) from this pixel is appended to the existing

@ceholden
ceholden / environment.yaml
Last active February 23, 2018 13:13
ARD resampling for pyCCD
name: resample
channels:
- conda-forge
dependencies:
# pyccd deps
- numpy
- scipy
- scikit-learn
- click
- click-plugins
@ceholden
ceholden / qgis3.0_gcc4.8_make_fail
Last active March 9, 2018 17:00
QGIS 3.0 compile issue with GCC 4.8
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /home/ceholden/conda/conda-bld/qgis_1520609983130/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/bin/cc
-- Check for working C compiler: /home/ceholden/conda/conda-bld/qgis_1520609983130/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/ceholden/conda/conda-bld/qgis_1520609983130/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla
@ceholden
ceholden / conda_env_gis.yml
Created March 10, 2019 21:07
Conda environment export - GIS stack
name: gis
channels:
- ceholden
- conda-forge
- defaults
dependencies:
- affine=2.2.2=py_0
- altair=2.4.1=py36_0
- asn1crypto=0.24.0=py36_1003
- atk=2.25.90=hb9dd440_1002
@ceholden
ceholden / ne_110m_land.geojson
Last active March 19, 2019 22:40
QGIS Python API issue test Gist
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ceholden
ceholden / lcmap_pyccd-issue23.ipynb
Created March 27, 2019 18:19
Tracking down USGS-EROS/lcmap_pyccd#23
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.