40m
QIL
Cryo_Lab
CTN
SUS_Lab
TCS_Lab
OMC_Lab
CRIME_Lab
FEA
ENG_Labs
OptContFac
Mariner
WBEEShop
|
TCS elog |
Not logged in |
 |
|
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
|
|
function slopes=pydefoc(mainout,N,tol)
[x,y,dx,dy,time,M,centroids]=pyanalyze(mainout,N);
slopes=xdxslope(x,dx,time,tol);
|
|
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 ...
|
|
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 ...
|
|
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 ...
|
|
#!/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 ...
|