This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# These examples assume you have a container currently running. | |
# 1 Pipe from a file | |
sudo docker exec --interactive CONTAINER_NAME /bin/bash < the_beginning.sh | tee the_beginning_output.txt` | |
#2a Pipe by piping | |
echo "echo This is how we pipe to docker exec" | sudo docker exec --interactive CONTAINER_NAME /bin/bash - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# python pca_multiband.py input.jpeg output.tif | |
# n-band image -> PCA -> n-band TIFF image | |
# with lots of hackety assumptions | |
# (e.g., output is same type as input) | |
from sys import argv | |
import rasterio as rio | |
import numpy as np | |
from sklearn import decomposition |
This Python script utilizes the GeoPy geocoding library to batch geocode a number of addresses, using various services until a pair of latitude/longitude values are returned.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def vinc_pt(f, a, phi1, lembda1, alpha12, s ) : | |
import math | |
""" | |
Returns the lat and long of projected point and reverse azimuth | |
given a reference point and a distance and azimuth to project. | |
lats, longs and azimuths are passed in decimal degrees | |
Returns ( phi2, lambda2, alpha21 ) as a tuple | |
Parameters: | |
=========== | |
f: flattening of the ellipsoid |
This is a collection of information on PostgreSQL and PostGIS for what I tend to use most often.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="./config/webmap.js"></script> | |
<!--existing tag--> | |
<script type="text/javascript" src="//js.arcgis.com/3.10/"></script> |