Skip to content

Instantly share code, notes, and snippets.

View Pfesi's full-sized avatar
💭
Postdoctoral Researcher at South African Radio Astronomy Observatory (SARAO)

Pfesi van Zyl Pfesi

💭
Postdoctoral Researcher at South African Radio Astronomy Observatory (SARAO)
View GitHub Profile
@benjaminrose
benjaminrose / AllSky.py
Created February 19, 2015 19:51
An example of using all sky projections in matplotlib.pyplot.
import matplotlib.pyplot as plt
import numpy as np #casue it rocks
# get random values to plot
#needs to be in radians from (-pi,pi) & (-pi/2, pi/2)
a = np.random.rand(100)*2*np.pi - np.pi
d = np.random.rand(100)*np.pi - np.pi/2
#todo(make values astropy.cooridnates and use wrap_at(180*u.degree). Allows for more varriable data.
#make figure