40m QIL Cryo_Lab CTN SUS_Lab TCS_Lab OMC_Lab CRIME_Lab FEA ENG_Labs OptContFac Mariner WBEEShop
  TCS elog  Not logged in ELOG logo
Message ID: 65     Entry time: Thu Jul 15 20:06:37 2010
Author: James K 
Type: Misc 
Category: Hartmann sensor 
Subject: SURF Log: Thermally Induced Defocus Experiments 

A quick write-up on recent work can be found at: Google Docs

 

I can't find a Tex interpreter or any other sort of equation editor on the eLog, is why I kept it on Google Docs for now instead of transferring it over.

 

--James

 

Attachment 1: pydefoc.m  121 Bytes  Uploaded Fri Jul 16 08:54:50 2010  | Hide | Hide all
function slopes=pydefoc(mainout,N,tol)
[x,y,dx,dy,time,M,centroids]=pyanalyze(mainout,N);
slopes=xdxslope(x,dx,time,tol);
Attachment 2: pyanalyze.m  680 Bytes  Uploaded Fri Jul 16 08:55:05 2010  | Hide | Hide all
function [x,y,dx,dy,time,M,centroids]=pyanalyze(mainout,N)
n=0;
centroids=[];
while n<N
    display(['Image Number ' num2str(n)])
    if n==0
        I=pyimportsingle(mainout,n);
        cent=centroid_image(I);
    else
        I=pyimportsingle(mainout,n);
... 22 more lines ...
Attachment 3: pyimportsingle.m  591 Bytes  Uploaded Fri Jul 16 08:55:18 2010  | Hide | Hide all
function I=pyimportsingle(mainoutbase,Nimg)
%Imports mainoutbase.raw generated by python framesumexport2 and outputs
%Nth image matrix I

mainout=['/opt/EDTpdv/' mainoutbase '.raw'];
%open main output array
fid = fopen(mainout,'r');
fseek(fid,4*1024*1024*(Nimg-1),'bof');
arr = fread(fid,1024*1024,'float');

... 16 more lines ...
Attachment 4: pyimportM.m  570 Bytes  Uploaded Fri Jul 16 08:55:31 2010  | Hide | Hide all
function M=pyimportM(mainoutbase,N)
maintxt=['/opt/EDTpdv/' mainoutbase '.txt'];
fid=fopen(maintxt);
str=fread(fid,'*char');
fclose(fid);
str=str';
str=strrep(str,'Camera Temperature on Digitizer Board:','');
str=strrep(str,'Camera Temperature on Sensor Board:','');
str=strrep(str,' Celsius','');
str=strrep(str,'Start Time','');
... 14 more lines ...
Attachment 5: framesumexport2.py  2 kB  Uploaded Fri Jul 16 08:55:51 2010  | Hide | Hide all
#!/bin/python

import array
import os
import time
#Number of loops LoopN over which to sum SumN images of dim num_H by num_W
LoopN=100
SumN=200
num_H = 1024
num_W = 1024
... 94 more lines ...
ELOG V3.1.3-