##^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Lance Simms, Stanford University 2009#HxRG_Setup.py
#
#Commands that should be included at the beginning of a script 
#that deals with the HxRG reduction or analysis

import sys,os,getopt,re,string
import numdisplay 
import pyfits 
import scipy
from pyraf import iraf 
from numpy import * 
from pylab import * 
from Return_Refpix import * 
from ReturnCentroid import *
from ReturnRadialProfiles import *
from ReturnRadialAvg import *
from ReadCol import *
from Return_Persistence_Quantities import *
from Persistence_Get_Dark_Times import *
import numdisplay 
import matplotlib.pylab as mplot 
import TableIO 
import MySQLdb 
from Linefit_func import * 
from strip_scf import * 
import glob 
from PathFromFileName import *
from ReadCol import *
import scipy.optimize as optimize
from HxRG_Class import *
from Rebin import *
import histOutline
import time
import pdb

##Tell a little about where this file is running from and indicated the 
##operating system class 
print 'Current path', os.getcwd() 
 
#Set Up for plotting 
#PlotFile='/afs/slac/u/ki/lances/python/SPIEPlotSettings.py'
#if os.path.exists(PlotFile) : execfile(PlotFile)

##CONSTANTS:
e_0   = 8.85419e-12          # F * m^-1 - 8.85419 e-14 F*cm^-1
e_si  = 11.8                 # Relative Permittivity for Si   
q     = double(1.6022e-19)   # Coulombs per electron
k     = double(1.38066e-23)  # Joules per Kelvin
keV   = double(8.617e-5)     # eV per Kelvin
T     = double(150)          # Kelvin
Theta = double(q/(k*T))      # Factor relating energies

Colors=["#FF0000","#00FF00","#0000FF", "#FF9933", "#00CCFF",\
        "#FF00FF","#660099","#CC9900", "#006600", "#000000"]
