Created
November 11, 2021 17:25
-
-
Save bradlipovsky/2b68582f132e4d179cc4b8869056367f to your computer and use it in GitHub Desktop.
An example of how to plot some data on the UW sermeq machine
This file contains 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
import pickle | |
import pandas as pd | |
import numpy as np | |
import os | |
from matplotlib import cm | |
import matplotlib.pyplot as plt | |
shelf_name = 'ronne' | |
datapath = '/data/fast1/arc/' | |
atl06_file_name = os.path.join(datapath,'atl06/', shelf_name + '.pkl') | |
with open(atl06_file_name, 'rb') as handle: | |
atl06_data = pickle.load(handle) | |
atl06_data = pd.DataFrame(atl06_data) | |
subset = pd.DataFrame(atl06_data[atl06_data.rgt==1009]) | |
color=iter(cm.viridis(np.linspace(0,1,len(subset)))) | |
fig,ax = plt.subplots(figsize=(10,10)) | |
fig.patch.set_facecolor('white') | |
for i,row in subset.iterrows(): | |
c=next(color) | |
plt.scatter(row.lat[row.quality==0],row.h[row.quality==0], | |
color=c) | |
# plt.plot(row.lat,row.h,'o') | |
plt.ylim([20,60]) | |
plt.xlim([-75.5,-75.375]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The output of this code looks like this: