Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
"""
poor_mans_spc.py
================
A quick script that enables people to experiment with the concept
of ghost imaging or single pixel camera.
Depends
=======
"""
Donload and display
==================
Downloads IONEX data from IGS and displays a TEC map.
Uses the ionex library: https://github.com/gnss-lab/ionex
"""
import os
@CrisDamian
CrisDamian / aexpansion_example.py
Created May 7, 2018 09:34
Usage example for `aexpansion_grid` from PyMaxflow
import numpy as np
import matplotlib.pyplot as plt
import imageio
from maxflow.fastmin import aexpansion_grid
# Loading image
I = imageio.imread('imageio:astronaut.png')
I = I[:,:,1]/I.max()