Skip to content

Instantly share code, notes, and snippets.

View meredith-durbin's full-sized avatar

Meredith Durbin meredith-durbin

View GitHub Profile
@meredith-durbin
meredith-durbin / deepCR_drc.py
Last active September 18, 2023 13:31
deepCR for flc and drc images
import glob
import numpy as np
import os
import shutil
from deepCR import deepCR
from astropy.io import fits
# dq flag: http://www.stsci.edu/hst/instrumentation/acs/data-analysis/dq-flag-definitions
# dq flag: http://www.stsci.edu/hst/instrumentation/acs/data-analysis/dq-flag-definitions
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
% Astropy
@ARTICLE{2018AJ....156..123A,
author = {{Astropy Collaboration} and {Price-Whelan}, A.~M. and
{Sip{\H{o}}cz}, B.~M. and {G{\"u}nther}, H.~M. and {Lim}, P.~L. and
{Crawford}, S.~M. and {Conseil}, S. and {Shupe}, D.~L. and
{Craig}, M.~W. and {Dencheva}, N. and {Ginsburg}, A. and {Vand
erPlas}, J.~T. and {Bradley}, L.~D. and {P{\'e}rez-Su{\'a}rez}, D. and
{de Val-Borro}, M. and {Aldcroft}, T.~L. and {Cruz}, K.~L. and
{Robitaille}, T.~P. and {Tollerud}, E.~J. and {Ardelean}, C. and
{Babej}, T. and {Bach}, Y.~P. and {Bachetti}, M. and {Bakanov}, A.~V. and
@meredith-durbin
meredith-durbin / Pandas+HDF5 Example.ipynb
Created July 17, 2018 09:56
How to work with HDF5 photometry files
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@meredith-durbin
meredith-durbin / make_color_images.ipynb
Created April 18, 2018 02:42
Make images with HST luminance + DSS color
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-64-2f4c8a8b7a02> in <module>()
----> 1 join(gd_n, gd_s)
/Users/mdurbin/anaconda2/lib/python2.7/site-packages/astropy/table/operations.pyc in join(left, right, keys, join_type, uniq_col_name, table_names, metadata_conflicts)
187 # these methods for custom merge behavior.
188 _merge_col_meta(out, [left, right], col_name_map, metadata_conflicts=metadata_conflicts)
--> 189 _merge_table_meta(out, [left, right], metadata_conflicts=metadata_conflicts)
190
# coding: utf-8
# In[1]:
get_ipython().magic(u'matplotlib inline')
get_ipython().magic(u"config InlineBackend.figure_format='retina'")
import numpy as np
from matplotlib import pyplot as plt
from matplotlib import rc