Skip to content

Instantly share code, notes, and snippets.

View jaredyam's full-sized avatar
👫
Falling in love with Wu.

jaredyam

👫
Falling in love with Wu.
  • Beijing, China
View GitHub Profile
# Configuration file for jupyter-notebook.
#------------------------------------------------------------------------------
# Application(SingletonConfigurable) configuration
#------------------------------------------------------------------------------
## This is an application.
## The date format used by logging formatters for %(asctime)s
# Default: '%Y-%m-%d %H:%M:%S'
# c.Application.log_datefmt = '%Y-%m-%d %H:%M:%S'
#!/bin/bash
echo "This is a console commands collection, do not run this script directly"
exit 1
# latexdiff
latexdiff "$1" "$2" >_diff.tex 2>/dev/null
sed -i.bak '/\RequirePackage\[normalem\]{ulem}/d' _diff.tex
xelatex _diff
bibtex _diff
xelatex _diff
#!/bin/bash
function __curl() {
read proto server path <<<$(echo ${1//// })
DOC=/${path// //}
HOST=${server//:*/}
PORT=${server//*:/}
[[ x"${HOST}" == x"${PORT}" ]] && PORT=80
exec 3<>/dev/tcp/${HOST}/$PORT
echo -en "GET ${DOC} HTTP/1.0\r\nHost: ${HOST}\r\n\r\n" >&3
"""
S. R. Cloude and E. Pottier, "An entropy based classification scheme for land applications of polarimetric SAR," in IEEE Transactions on Geoscience and Remote Sensing, vol. 35, no. 1, pp. 68-78, Jan. 1997, doi: 10.1109/36.551935.
"""
import matplotlib.pyplot as plt
import numpy as np
def h_alpha_decomposition(T3):
assert isinstance(T3, np.ndarray)
assert T3.ndim >= 2