A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
# 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 |
#!/usr/bin/env python | |
""" Command prompt | |
Hierarchy: | |
- Insert | |
+ What PR? | |
+ Who? | |
+ What project? | |
+ Location |
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 |
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
name: resample | |
channels: | |
- conda-forge | |
dependencies: | |
# pyccd deps | |
- numpy | |
- scipy | |
- scikit-learn | |
- click | |
- click-plugins |
-- 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 |
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 |