The LAMP Application

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

lamp_mac/SANS/

sans_settings.pro


d.R. and M.A.G started april 2007 Por MIGUEL see: sans_cor , sans_radial , sans_settings_event(case 72) , sans_settings_runs sans_settings_swap swap between low middle high configs, share commons for 3 configs used also by sans_sheet sans_settings_struc modify a structure when size of tag value is different sans_settings_beamST Toggle between direct beam and transm beam (historical confusion) used by sans_sheet sans_settings_event widget Handler used also by sans_sheet sans_settings_read import a setting file sans_settings_write export a setting file sans_settings_text check gui input fields sans_settings_trans check sans_trans and fill thick or transm, used by sans_sheet sans_settings_dist get cells distances from center sans_settings_getmask get current mask as a matrix sans_settings_GetMaskBeam give sans_beam to sans_sheet sans_settings_GetTrans give sans_trans to sans_sheet sans_settings_GetSupl give sans_supl to sans_sheet sans_settings_mask show current mask and center sans_settings_series format a list into lamp series syntax used mainly by sans_sheet sans_settings_runs Read runs sans_settings_par Keep some data parameters from datp sans_settings_WNI Keep info on charged workspaces sans_settings_current Fill current settings into common block C_SANS_SETTINGS / put memory data into workspaces sans_settings GUI constructor independent functions ********************* sans_center return center sans_cor return corrected data sans_radial return integrations sans_read_grasp return grasp output file sans_read_gt return gt (ron) file sans_transm return transmissions independent procedures ********************** sans_tau dead time correction sans_mask set instrument masks sans_read_mask read a saved instrument mask sans_read_settings will be used (batch) sans_reform_series keep transmissions and results sans_save_gt save gt (ron) files sans_save_Qs save 2D Qvalues sans_sector interface with bens.pro sans_write_settings will be used (batch) *************************************************************************************************************** ***************************************************************************************************************

Routines

result = sans_center(W_in, beam=beam, Xrange=Xrange, Yrange=Yrange, Fit=Fit, Gravity=Gravity, Mask=Mask, Center=Center, watermask=watermask, ewatw=ewatw, samplemask=samplemask)

result = sans_cor(water=water, Ewater=Ewater, sample=sample, Esample=Esample, scadmium=scadmium, wcadmium=wcadmium, efficiency=efficiency, transmission=transmission, no_centr=no_centr, geteff=geteff, Qdep=Qdep, message=message, XWdep=XWdep)

result = sans_radial(M, CENTER=CENTER, INCREMENT=INCREMENT, MASK=MASK, NOMASK=NOMASK, PixSize=PixSize, distance=distance, SECTOR=SECTOR, X=X, ERROR=ERROR, AZIMUTAL=AZIMUTAL, suplMASK=suplMASK, minInt=minInt)

result = sans_read_graspr(fifi, datp=datp)

result = sans_read_gt(fifi, datp=datp)

result = sans_transm(beam, Sbeam=Sbeam, water=water, Ewater=Ewater, sample=sample, Esample=Esample, Wbeam=Wbeam, xrange=xrange, yrange=yrange, MASk=MASk)

sans_tau, Wout, Eout, ftau, tau, timS

sans_mask, baset, Win, instrument=instrument, clear=clear, back=back, xlines=xlines, ylines=ylines, xybeam=xybeam, box=box, ellipse=ellipse, rectangle=rectangle, waterbox=waterbox, noplot=noplot, plot=plot, center=center

sans_read_mask, fifi

sans_read_settings, filename, success

sans_del_select_results, getlist=getlist, index=index

sans_merge_fields, baset, clear=clear, show=show

result = sans_merge_find_scal(Lista, Listb, idxa, idxb, Clst)

result = sans_merge_find_scaling(Liste, Clst, idxl, idxm, idxh)

sans_merge_in_files, baset, Liste, Clst, idxl, idxm, idxh, oneMerge=oneMerge, background=background

sans_merge_results, flg, fufu, newISO=newISO

sans_sav_rest_results, flg, path=path, file=file

sans_reform_series, Win, dp=dp, titles=titles, parconf=parconf, resume=resume, getlist=getlist, rawConf=rawConf, clear=clear, index=index, save=save, restore=restore, merge=merge, getfct=getfct, setfct=setfct, getmarg=getmarg, setmarg=setmarg, idxZ=idxZ, savtrs=savtrs, nothick=nothick, gettrs=gettrs, add=add, curLMH=curLMH, INSTRU=INSTRU, transmission=transmission, thickness=thickness, allsupl=allsupl, sort=sort, S_IDs=S_IDs

sans_save_gt, Win, datp=datp, par=par, pZ=pZ, Fincr=Fincr, Inst=Inst, fromList=fromList

sans_save_Qs, Qfile, sz, getQ=getQ, getQx=getQx, getQy=getQy, noWrite=noWrite

int_event, ev, uv

int_loadWorkspace, varAccess, k, labelID

int_poly, a1, a2, a3, c, c_x, c_y, r1, r2, deg2rad, test, squared

int_drawAxes, varAccess

int_updateMini, varAccess, ev, uv

int_changeCenter, varAccess

ben_int_create, desk, n, m, base, request

ben_int_slider_set, id, value

result = ben_int_slider_get(id)

sans_sector

sans_write_settings, filename, success

sans_dying, ev

sans_gt_par, plus, get=get, set=set, sys=sys

sans_accu, wka, rpa, opr, wki, rpu, newrpu=newrpu

result = sans_settings_RegSheet(dum)

sans_settings_swap, baset, LMH=LMH, get=get, put=put, reset=reset, file=file, take=take, give=give, waterbox=waterbox, forWater=forWater, shareSupl=shareSupl, supl=supl, transm=transm, masq=masq, no_toggles=no_toggles, memswap=memswap, nodata=nodata

sans_settings_choice_water, baset, callflag=callflag, wbox=wbox

sans_settings_struc, struc, TAG, val

sans_settings_beamST, baset, Sbeam=Sbeam, Tbeam=Tbeam, get_Sbeam=get_Sbeam, get_Tbeam=get_Tbeam, Tog_STbeam=Tog_STbeam

sans_settings_lampies, SETpth=SETpth, GETpth=GETpth

sans_settings_event, ev

sans_settings_model, baset, Wtitp, toW, Qrang, QrangOK, maxWW, IQfunc, IDX, IQlog, SCALED=SCALED

sans_settings_read, baset, fifiswap, memswap=memswap

sans_settings_write, baset, fifiswap

sans_settings_text, bases, farr, sarr, mess

sans_settings_trans, baset, thickWater=thickWater, thickSample=thickSample, trans4=trans4, transSample=transSample

sans_settings_dist, s, Dst, Center=Center, xyPsize=xyPsize, pixel=pixel, distance=distance, DforT=DforT, aX=aX, aY=aY, thetrad=thetrad, atangGG=atangGG, water=water

sans_settings_getmask, s, xyc, masq, nobeam=nobeam, noWbeam=noWbeam

sans_settings_GetMaskBeam, Mbeam

sans_settings_GetTrans, trans

sans_settings_GetSupl, supl

sans_settings_SetSupl, supl

sans_settings_GetBgrd, Tbase, existSbg, existWbg

sans_settings_mask, baset, run=run, nobeam=nobeam, nomask=nomask, nowbeam=nowbeam, showall=showall, surf=surf

sans_settings_mask_event, Z=Z

sans_settings_series, lyst, Splace=Splace, Tplace=Tplace

sans_settings_runs, baset, uv, haveall=haveall, config=config, noread=noread

sans_settings_par, datp

sans_settings_WNI, datp, set=set, get=get, clear=clear

sans_settings_current, settings, baset, setrun=setrun, nowind=nowind, memswap=memswap

sans_settings, instrument=instrument, refresh=refresh, none=none, param=param, nowind=nowind, map=map, baseSANS=baseSANS, InstList=InstList, InstIsOn=InstIsOn, SansRef=SansRef

Routine details

top sans_center

result = sans_center(W_in, beam=beam, Xrange=Xrange, Yrange=Yrange, Fit=Fit, Gravity=Gravity, Mask=Mask, Center=Center, watermask=watermask, ewatw=ewatw, samplemask=samplemask)

******* *********** ** User callable (to verify) ** Return the beam center coordinates from a 2D (regular) transmission data run. ** Either use str_fit (/fit) or/and calculate the gravity center (/gravity). ** Optional xrange=[1,n] and yrange=[1,m] in pixel unit ** Take care of Errors and Mask when passed **(This function is also called by "TRAPC") ** watermask=1,2,3 -> auto calculation of water beam mask (we have only water in W_in with a beamstop in place) ** ewatw is an optional empty water cell. ** samplemask -> auto calculation of sample beam mask (W_in is the direct beam , samplemask is sample with a beamstop in place) ** D.R. Feb 2009

Parameters

W_in

Keywords

beam
Xrange
Yrange
Fit
Gravity
Mask
Center
watermask
ewatw
samplemask

top sans_cor

result = sans_cor(water=water, Ewater=Ewater, sample=sample, Esample=Esample, scadmium=scadmium, wcadmium=wcadmium, efficiency=efficiency, transmission=transmission, no_centr=no_centr, geteff=geteff, Qdep=Qdep, message=message, XWdep=XWdep)

******* ******** ** User callable (to verify) ** Call w8=sans_cor(water=1, Ewater=2, sample=3, Esample=4, scadmium=5, (/efficiency, transm=[1.,1.,1.,1.]) ** ** trans=[TRwater, TRewater, TRsample, TResample] in this order , DEFAULT is in SANS_TRANS common variable ** sample Background can be a series ** returns corrected sample. ** ** What is done: ** correction for Q dependent response of detector (Instrument specific) ** dead_time correction & monitor normalisation ** empty cell and background(cadmium) subtraction (transmission calculated for each Q) ** correction for detectors efficiencies(water) ** solid angle (thickness) correction. ** ** geteff=water return detector efficiencies ** Qdep =Qdep add an instrumental dependent function ** D.R Jun 2009 ** ** Added Q dependent transmission (sample thickness) ** Better use of different absolute scaling ** Miguel Gonzalez Oct 2009-> ** ** Use water center calculated at beam water read ** Journaling ** D.R Oct 2010 ** ** Use Phi0 sample for Phi0 water when concistant ** D.R Dec 2010 ** ** Use water distance if Dis-Disw <= 5 mmm ** Just for the eye when we devide water by sample water ** D.R Mar 2012 ** ** Introduction of XWdep: a water cross section formula (as Qdep) ** D.R Oct 2012 ** ** Increment PARIDX with Xdetsiz, Ydetsiz, Mode (for D33 TOF merging) ** New common c_sans_tofl ** New table baset.attenuaF (factor of attenuation factor versus collimation) ** D.R Feb Mar 2013 ** ** Add an offset for distance (D11 special Can) ** D.R Apr 2013

Keywords

water
Ewater
sample
Esample
scadmium
wcadmium
efficiency
transmission
no_centr
geteff
Qdep
message
XWdep

top sans_radial

result = sans_radial(M, CENTER=CENTER, INCREMENT=INCREMENT, MASK=MASK, NOMASK=NOMASK, PixSize=PixSize, distance=distance, SECTOR=SECTOR, X=X, ERROR=ERROR, AZIMUTAL=AZIMUTAL, suplMASK=suplMASK, minInt=minInt)

******* *********** ** User callable (to verify) ** Call: w2=sans_radial(W1, ...) ** **** ** Input: M =2D or 3D data matrix. ** ***** xy0 =[x0,y0] or determined by "sans_center.pro" [1;n] ** incr =Radius increment (width) in pixels units (default 1.0) ** masq =same as M(n,m), contains 1's for masked values otherwise determined by "sans_mask.pro" ** xypsiz =size of the pixel in Cm. Default is [1.,1.] ** dst =Distance sample-detector in Cm (data parameter). ** sector =[inner_radius, outer_radius, angle1_deg, angle2_deg, squared, totsec] ** suplMASK=suplement mask comming from negative counts at read time ** minInt =minimum points to integrate ** ** Output: Wout =result of Radial integration. ** ****** xx =diagram abscissa: radius in pixel unit. ** error =diagram errors

Parameters

M

Keywords

CENTER
INCREMENT
MASK
NOMASK
PixSize
distance
SECTOR
X
ERROR
AZIMUTAL
suplMASK
minInt

top sans_read_graspr

result = sans_read_graspr(fifi, datp=datp)

******* **************** ** read Grasp data, should be a bit old **

Parameters

fifi

Keywords

datp

top sans_read_gt

result = sans_read_gt(fifi, datp=datp)

******* ************ ** ** Read file in Ron format ILL-SANS treated data

Parameters

fifi

Keywords

datp

top sans_transm

result = sans_transm(beam, Sbeam=Sbeam, water=water, Ewater=Ewater, sample=sample, Esample=Esample, Wbeam=Wbeam, xrange=xrange, yrange=yrange, MASk=MASk)

******* *********** ** User callable (to verify) ** calculate transmission from empty can or direct beam ** Call t=sans_transm(Sbeam=5, water=1, Ewater=2, sample=3 ,Esample=4, xrange=[10,50],yrange=[11,49]) ** ** !beam must by supplied, the others are optionals. ** returns an array of transmission values. ** ---------------- ** D.R. Feb 2009 prefere empty can to calculate transmission ** D.R Oct 2009 accept sample empty can series

Parameters

beam

Keywords

Sbeam
water
Ewater
sample
Esample
Wbeam
xrange
yrange
MASk

top sans_tau

sans_tau, Wout, Eout, ftau, tau, timS

** ******** ** User callable (to verify) ** dead time correction ** Wout input/output data (2D or 3D) ** Eout input/output error (2D or 3D or 0) ** ftau function index ** tau tau value ** tims acquisition time (sec)

Parameters

Wout
Eout
ftau
tau
timS

top sans_mask

sans_mask, baset, Win, instrument=instrument, clear=clear, back=back, xlines=xlines, ylines=ylines, xybeam=xybeam, box=box, ellipse=ellipse, rectangle=rectangle, waterbox=waterbox, noplot=noplot, plot=plot, center=center

** ********* ** User callable (to verify) ** set instrument mask ** Instrument set default instrument mask (clear keyword is set) **/Clear reset the mask (to reset beamsize set xybeam to [0,0]) **/Back undo last mask setting (xline,yline,box) **/ellipse the shape of the beam_Stop **/rectangle the shape of the beam_Stop ** Xline mask the vertical line at X (x=1>m) ** Yline mask the horizontal line at Y (y=1>n) ** XYbeam beamsize to mask [nx,ny] around the center or [xmin,ymin,nx,ny] ** Box [x,y , nx,ny] means mask from x to x+nx-1 and y to y+ny-1 (x=1>n , y=1,m) ** If plot is not set then pass a 2D data run in Win just in case the size of the mask is unknown ** center [cx,cy] is called by SANS_CENTER to fill the sans_ctr common variable ** D.R. April 2007

Parameters

baset
Win

Keywords

instrument
clear
back
xlines
ylines
xybeam
box
ellipse
rectangle
waterbox
noplot
plot
center

top sans_read_mask

sans_read_mask, fifi

** ************** ** User callable (to verify) ** read a saved instrumen mask file

Parameters

fifi

top sans_read_settings

sans_read_settings, filename, success

********************** ** User callable (to verify) ** restore a saved session

Parameters

filename
success

top sans_del_select_results

sans_del_select_results, getlist=getlist, index=index

** *********************** ** delete selected Q vector results from gui

Keywords

getlist
index

top sans_merge_fields

sans_merge_fields, baset, clear=clear, show=show

** ***************** ** Clear and/or Map Qrange and factor fields

Parameters

baset

Keywords

clear
show

top sans_merge_find_scal

result = sans_merge_find_scal(Lista, Listb, idxa, idxb, Clst)

******* ******************** ** ** For 2 config SORTED results Lista(lowerQ) , Listb(higherQ): ** returns [Scale for Lista , ** right detector Qmargin for Lista ; ** left beam Qmargin for Listb ] ** Does the work only for sans_merge_find_scaling()

Parameters

Lista
Listb
idxa
idxb
Clst

top sans_merge_find_scaling

result = sans_merge_find_scaling(Liste, Clst, idxl, idxm, idxh)

******* *********************** ** returns Fscale & Qmargin calculated from the sorted list indexed by idxl,idxm,idxh ** Called by event 77, comming from the suggestion item

Parameters

Liste
Clst
idxl
idxm
idxh

top sans_merge_in_files

sans_merge_in_files, baset, Liste, Clst, idxl, idxm, idxh, oneMerge=oneMerge, background=background

** ******************* ** Merge sorted configurations (having Qranges and Qfactors) ** Comming from event 76: merge one sample for superplot or a fit ** Comming from event 77: merge all selected and write in text files

Parameters

baset
Liste
Clst
idxl
idxm
idxh

Keywords

oneMerge
background

top sans_merge_results

sans_merge_results, flg, fufu, newISO=newISO

** ****************** ** ** Merge result List (do not confuse with merging configs)

Parameters

flg
fufu

Keywords

newISO

top sans_sav_rest_results

sans_sav_rest_results, flg, path=path, file=file

** ********************* ** save or restore and merge in/from binary idl file.sav

Parameters

flg

Keywords

path
file

top sans_reform_series

sans_reform_series, Win, dp=dp, titles=titles, parconf=parconf, resume=resume, getlist=getlist, rawConf=rawConf, clear=clear, index=index, save=save, restore=restore, merge=merge, getfct=getfct, setfct=setfct, getmarg=getmarg, setmarg=setmarg, idxZ=idxZ, savtrs=savtrs, nothick=nothick, gettrs=gettrs, add=add, curLMH=curLMH, INSTRU=INSTRU, transmission=transmission, thickness=thickness, allsupl=allsupl, sort=sort, S_IDs=S_IDs

** ****************** ** using specific memory: ** 1)If keyword resume(typ) is not present then add numor series having same title_formula and same config ** Output: Win with parameters: ** dp (updated PV,E,N,Z) ** parx(title_formula) ** part(title_formula+config) ** ** 2)If keyword resume is present then keep results (replace numors having same title_formula and same config)

Parameters

Win

Keywords

dp
titles
parconf
resume
getlist
rawConf
clear
index
save
restore
merge
getfct
setfct
getmarg
setmarg
idxZ
savtrs
nothick
gettrs
add
curLMH
INSTRU
transmission
thickness
allsupl
sort
S_IDs

top sans_save_gt

sans_save_gt, Win, datp=datp, par=par, pZ=pZ, Fincr=Fincr, Inst=Inst, fromList=fromList

** ************ ** ** Write file in Ron format ILL-SANS treated data

Parameters

Win

Keywords

datp
par
pZ
Fincr
Inst
fromList

top sans_save_Qs

sans_save_Qs, Qfile, sz, getQ=getQ, getQx=getQx, getQy=getQy, noWrite=noWrite

** ************ ** save 2D Q ascii file after correction

Parameters

Qfile
sz

Keywords

getQ
getQx
getQy
noWrite

top int_event

int_event, ev, uv

** ********* ** event parser for ben_int_create sectors (also in bens)

Parameters

ev
uv

top int_loadWorkspace

int_loadWorkspace, varAccess, k, labelID

** ***************** ** for sectors (also in bens) ** Tests if the workspace Wk has good dimensions. If it is ** the case, the procedure `int_loadRequest' is called. If the ** workspace does not fit dimension requirement, an error ** message is displayed in the widget_label `labelID'.

Parameters

varAccess
k
labelID

top int_poly

int_poly, a1, a2, a3, c, c_x, c_y, r1, r2, deg2rad, test, squared

** ******** ** for sectors (also in bens) ** Procedure 'int_poly' draws the section enclosed in angles ** a1 and a3, and radia r1 and r2, in the current window.

Parameters

a1
a2
a3
c
c_x
c_y
r1
r2
deg2rad
test
squared

top int_drawAxes

int_drawAxes, varAccess

** ************ ** for sectors (also in bens) ** This procedure updates the mini widget_draw.

Parameters

varAccess

top int_updateMini

int_updateMini, varAccess, ev, uv

** ************** ** for sectors (also in bens) ** This procedure is called to respond to an event from ** an angle (alpha,beta or gamma) widget_slider.

Parameters

varAccess
ev
uv

top int_changeCenter

int_changeCenter, varAccess

** **************** ** for sectors (also in bens) ** This procedure reads the four widget_texts, and updates ** the corresponding variables, and the mini picture. ** It is called by the 'updateRes' procedure, and when the ** return key is pressed within a widget_text.

Parameters

varAccess

top ben_int_create

ben_int_create, desk, n, m, base, request

** ************** ** for sectors (also in bens) ** Modified to work with sans_settings (everywhere you find "sans")

Parameters

desk
n
m
base
request

top ben_int_slider_set

ben_int_slider_set, id, value

** ****************** ** for sectors (also in bens)

Parameters

id
value

top ben_int_slider_get

result = ben_int_slider_get(id)

******* ****************** ** for sectors (also in bens)

Parameters

id

top sans_sector

sans_sector

** *********** ** Junk

top sans_write_settings

sans_write_settings, filename, success

** ******************* ** ******************* ** save current sans_settings state

Parameters

filename
success

top sans_dying

sans_dying, ev

** ********** ** ********** ** sans dying

Parameters

ev

top sans_gt_par

sans_gt_par, plus, get=get, set=set, sys=sys

** *********** ** *********** ** get or set PARi lamp global variables (avoid use of lamp.cbk anywhere)

Parameters

plus

Keywords

get
set
sys

top sans_accu

sans_accu, wka, rpa, opr, wki, rpu, newrpu=newrpu

** ********* ** ********* ** handle operations on Q verctor results

Parameters

wka
rpa
opr
wki
rpu

Keywords

newrpu

top sans_settings_RegSheet

result = sans_settings_RegSheet(dum)

******* ********************** ******* ********************** ** check if the sans spreadsheet is present or not

Parameters

dum

top sans_settings_swap

sans_settings_swap, baset, LMH=LMH, get=get, put=put, reset=reset, file=file, take=take, give=give, waterbox=waterbox, forWater=forWater, shareSupl=shareSupl, supl=supl, transm=transm, masq=masq, no_toggles=no_toggles, memswap=memswap, nodata=nodata

** ****************** ** ****************** ** using memory, load current config and restore wanted config (among 3)

Parameters

baset

Keywords

LMH
get
put
reset
file
take
give
waterbox
forWater
shareSupl
supl
transm
masq
no_toggles
memswap
nodata

top sans_settings_choice_water

sans_settings_choice_water, baset, callflag=callflag, wbox=wbox

** ************************** ** ************************** ** handle the choice of the water confif (default , high , low)

Parameters

baset

Keywords

callflag
wbox

top sans_settings_struc

sans_settings_struc, struc, TAG, val

** ******************* ** ******************* ** modify size of a structure

Parameters

struc
TAG
val

top sans_settings_beamST

sans_settings_beamST, baset, Sbeam=Sbeam, Tbeam=Tbeam, get_Sbeam=get_Sbeam, get_Tbeam=get_Tbeam, Tog_STbeam=Tog_STbeam

** ******************** ** ******************** ** center and tranmission beam use the same input (confusion when starting the project) ** this procedure help to swap correctly between both direct beam

Parameters

baset

Keywords

Sbeam
Tbeam
get_Sbeam
get_Tbeam
Tog_STbeam

top sans_settings_lampies

sans_settings_lampies, SETpth=SETpth, GETpth=GETpth

** ********************* ** ********************* ** ** set or get the path_for_online lamp global variable (avoid use of lamp.cbk)

Keywords

SETpth
GETpth

top sans_settings_event

sans_settings_event, ev

** ******************* ** ******************* ** event handle for sans settings, also called in sans_sheet synchronisation

Parameters

ev

top sans_settings_model

sans_settings_model, baset, Wtitp, toW, Qrang, QrangOK, maxWW, IQfunc, IDX, IQlog, SCALED=SCALED

** ******************* ** fitting routine, call str_fit

Parameters

baset
Wtitp
toW
Qrang
QrangOK
maxWW
IQfunc
IDX
IQlog

Keywords

SCALED

top sans_settings_read

sans_settings_read, baset, fifiswap, memswap=memswap

** ****************** ** ****************** ** GET A CONFIG FROM FILE OR MEMORY and FILL sans_settings GUI

Parameters

baset
fifiswap

Keywords

memswap

top sans_settings_write

sans_settings_write, baset, fifiswap

** ******************* ** ******************* ** GET GUI INFO and STORE CONFIG IN FILE OR MEMORY

Parameters

baset
fifiswap

top sans_settings_text

sans_settings_text, bases, farr, sarr, mess

** ****************** ** ****************** ** get string fields, return as string and float

Parameters

bases
farr
sarr
mess

top sans_settings_trans

sans_settings_trans, baset, thickWater=thickWater, thickSample=thickSample, trans4=trans4, transSample=transSample

** ******************* ** ******************* ** update the sans_trans 2D global variable ** first dim contains transmission for [water,Ewater,sample,Esample , sample series...] ** second dim contains thickness ** third dim contains error ** fourth dim contains Esample series if necessary

Parameters

baset

Keywords

thickWater
thickSample
trans4
transSample

top sans_settings_dist

sans_settings_dist, s, Dst, Center=Center, xyPsize=xyPsize, pixel=pixel, distance=distance, DforT=DforT, aX=aX, aY=aY, thetrad=thetrad, atangGG=atangGG, water=water

** ****************** ** ****************** ** returns current pixel distances in detector from the center

Parameters

s
Dst

Keywords

Center
xyPsize
pixel
distance
DforT
aX
aY
thetrad
atangGG
water

top sans_settings_getmask

sans_settings_getmask, s, xyc, masq, nobeam=nobeam, noWbeam=noWbeam

** ********************* ** return current 2D mask in masq

Parameters

s
xyc
masq

Keywords

nobeam
noWbeam

top sans_settings_GetMaskBeam

sans_settings_GetMaskBeam, Mbeam

** ************************* ** ************************* ** return sans_beam global variable for sans_sheet

Parameters

Mbeam

top sans_settings_GetTrans

sans_settings_GetTrans, trans

** ********************** ** ********************** ** return sans_trans global variable for sans_sheet

Parameters

trans

top sans_settings_GetSupl

sans_settings_GetSupl, supl

** ********************* ** ********************* ** return sans_supl global variable for sans_sheet

Parameters

supl

top sans_settings_SetSupl

sans_settings_SetSupl, supl

** ********************* ** ********************* ** update sans_supl global variable for sans_sheet

Parameters

supl

top sans_settings_GetBgrd

sans_settings_GetBgrd, Tbase, existSbg, existWbg

** ********************* ** ********************* ** return true for sans_sheet if empty can and/or cadmium are present

Parameters

Tbase
existSbg
existWbg

top sans_settings_mask

sans_settings_mask, baset, run=run, nobeam=nobeam, nomask=nomask, nowbeam=nowbeam, showall=showall, surf=surf

** ****************** ** ****************** ** plot the 2D selected data with or without masks

Parameters

baset

Keywords

run
nobeam
nomask
nowbeam
showall
surf

top sans_settings_mask_event

sans_settings_mask_event, Z=Z

** ************************ ** ************************ ** Updates the 3d plot representation ** Comes also from Ben int_event (sector updated)

Keywords

Z

top sans_settings_series

sans_settings_series, lyst, Splace=Splace, Tplace=Tplace

** ******************** ** ******************** ** handle holes in spreadsheet concerning samples and transpission series ** TRplace and SPplace = [[first numor in cells] , [line index] , [position of ":"]]

Parameters

lyst

Keywords

Splace
Tplace

top sans_settings_runs

sans_settings_runs, baset, uv, haveall=haveall, config=config, noread=noread

** ****************** ** ****************** ** read the numors (calling RDOPR) and update parameters in sans_supl

Parameters

baset
uv

Keywords

haveall
config
noread

top sans_settings_par

sans_settings_par, datp

** ***************** ** ***************** ** map wanted parameters in datp.p using specific instrument table index

Parameters

datp

top sans_settings_WNI

sans_settings_WNI, datp, set=set, get=get, clear=clear

** ************** ** ************** ** retrieve a lost numor among workspaces (avoid reread operation)

Parameters

datp

Keywords

set
get
clear

top sans_settings_current

sans_settings_current, settings, baset, setrun=setrun, nowind=nowind, memswap=memswap

** ********************* ** ********************* ** Coming from sans_settings_read and sans_settings_write ** to update all lamp workspaces

Parameters

settings
baset

Keywords

setrun
nowind
memswap

top sans_settings

sans_settings, instrument=instrument, refresh=refresh, none=none, param=param, nowind=nowind, map=map, baseSANS=baseSANS, InstList=InstList, InstIsOn=InstIsOn, SansRef=SansRef

** ************* ** ************* ** sans_setting GUI creation ** and update after certain events

Keywords

instrument
refresh
none
param
nowind
map
baseSANS
InstList
InstIsOn
SansRef

File attributes

Modification date: Tue Oct 1 14:40:28 2013
Lines: 10,452