Skip to content

Commit

Permalink
Merge pull request #3 from LSSTDESC/extractor
Browse files Browse the repository at this point in the history
Extractor
  • Loading branch information
jeremyneveu authored Jun 8, 2018
2 parents b04d36e + 730c54a commit 14d42bf
Show file tree
Hide file tree
Showing 23 changed files with 8,358 additions and 188 deletions.
14 changes: 14 additions & 0 deletions covariances/proposal.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Parameter A1 $A_1$ 9.595
Parameter A2 $A_2$ 0.0508
Parameter ozone ozone 312.875
Parameter PWV PWV$\,$[mm] 5.035
Parameter VAOD VAOD 0.0032932225
Parameter reso reso$\,$[pix] 3.87
Parameter shift $\lambda_{\mathrm{shift}}\,$[nm] -0.0515
0.002956 -0.000008 -0.255530 0.000580 0.000201 -0.000798 -0.003284
-0.000008 0.000001 -0.000997 0.000021 -0.000000 -0.000004 -0.000006
-0.255530 -0.000997 285.855017 0.660027 -0.033834 0.392632 0.843175
0.000580 0.000021 0.660027 0.024858 -0.000039 0.004769 0.004849
0.000201 -0.000000 -0.033834 -0.000039 0.000019 -0.000097 -0.000320
-0.000798 -0.000004 0.392632 0.004769 -0.000097 0.013215 0.004233
-0.003284 -0.000006 0.843175 0.004849 -0.000320 0.004233 0.013362
1 change: 1 addition & 0 deletions ctiofulllogbook_jun2017_v5.csv

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions dispersers.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,21 @@ def __init__(self,N,label="",D=DISTANCE2CCD,data_dir=HOLO_DIR,verbose=False):
def N(self,x) :
return self.N_input

def transmission(self,wavelength):
return np.ones_like(wavelength).astype(float)

def load_files(self,verbose=False):
filename = self.data_dir+self.label+"/N.txt"
if os.path.isfile(filename):
a = np.loadtxt(filename)
self.N_input = a[0]
self.N_err = a[1]
filename = self.data_dir+self.label+"/transmission.txt"
if os.path.isfile(filename):
a = np.loadtxt(filename)
l, t, e = a.T
self.transmission = interpolate.interp1d(l,t,bounds_error=False,fill_value=0.)
self.transmission_err = interpolate.interp1d(l,e,bounds_error=False,fill_value=0.)
else :
self.transmission = lambda x: np.ones_like(x).astype(float)
self.transmission = lambda x: np.zeros_like(x).astype(float)
filename = self.data_dir+self.label+"/hologram_center.txt"
if os.path.isfile(filename):
lines = [line.rstrip('\n') for line in open(filename)]
Expand Down
750 changes: 750 additions & 0 deletions dispersers/HoloAmAg/transmission.txt

Large diffs are not rendered by default.

750 changes: 750 additions & 0 deletions dispersers/HoloPhAg/transmission.txt

Large diffs are not rendered by default.

750 changes: 750 additions & 0 deletions dispersers/HoloPhP/transmission.txt

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dispersers/Ron200/N.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
2.00e+02
1.278433101196952748e+00
2 changes: 2 additions & 0 deletions dispersers/Ron200/hologram_center.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#x_center y_center theta_tilt_in_degree
741.000 741.000 -0.277
750 changes: 750 additions & 0 deletions dispersers/Ron200/transmission.txt

Large diffs are not rendered by default.

750 changes: 750 additions & 0 deletions dispersers/Ron400/transmission.txt

Large diffs are not rendered by default.

750 changes: 750 additions & 0 deletions dispersers/Thor300/transmission.txt

Large diffs are not rendered by default.

Loading

0 comments on commit 14d42bf

Please sign in to comment.