The LAMP Application

Generated by IDLdoc

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

lamp_mac/D17/

mload.pro


function mload,nums,F12=F12,yaxis=yaxe,norm=norm,mask=maskstring,multiy=multiy,tol=tol LAMP function to create a workspace from a series of datasets with different flipper states Supercedes POLOAD and MONOLOAD ARW 30.11.06 NECESSARY VARIABLES nums=EITHER a string with the filenumbers containing the data. Consecutive files are separated by a colon (:) Adjacent files are separated by a comma (,) The string must be enclosed in quotation marks (') e.g. '90230:90240,90250:90260' OR an array of numbers OPTIONAL VARIABLES: F12 = two element array with flipper states (=0 for off, =1 for on) e.g. F12=[0,1] is F1=off, F2=on At the moment, this is ONLY necessary if 'nums' is a STRING NOTE: If you HAVEN'T defined these and 'nums' is a STRING, the program will NOT differentiate between flipper states. ALL the data at the same 'yaxis' value will be added up! norm=your choice of normalization, 'time', 'mon', or 'none' The default (if no scantime is entered) is 'time' yaxe=your choice for the yaxis, 'san','dan','tra', or 'ran' The default (if no yaxe is entered) is 'san' maskstring=your choice of masking the detector, written as a string The default is no mask NOTE: The data is NOT normalized to the number of y-pixels in the mask, i.e. circular and elliptical masks will have less weighting away from the centre. Divide by a masked water run to perform this action multiy=your choice to combine y data with the same SAN/DAN value or not A string variable, ='av' to combine, 'noav' to leave uncombined Default is 'av' tol=a tolerance in y for the y-combination NOTE: This is a FUDGE! SAN often misses a bit, so I have put in a TOLERANCE Franck has to FIX THIS! ARW 13.05.05 OUTPUT VARIABLES wout is a workspace with the data of the desired flipper states. If the data is 2D, it will be integrated vertically The X-axis is given in pixel number The Y-axis is given as SAN or DAN, user's choice The monitor is given as time, monitor, or as unity (for 'none'), user's choice There is a new array of variables in the 'pv' field. This is a M rows * 6 columns array, where M is the number of steps in the scans. The columns are: [SAN, DAN, mean date, counting time, monitor, normalization factor,S2W,S3W] The normalization factor should be multiplied with the data for any further operations (e.g. addition of workspaces) and the errors for the correct propagation of errors e.g.. type at the LAMP interface: w1=mload('68263:68300',F12=[0,0],yaxis='san',norm='time',mask='box,[190,200,63,222]',multiy='av') or: w1=mload(68263+indgen(37),F12=[0,0]) CALLS TO: rdrun, maskme (external), arraygen, datecon, d17_errmsg (external) last modified ARW 22.4.11

Routines

arraygen, arraytext, outarray

datecon, input, start, stop

result = mload(nums, F12=F12, yaxis=yaxis, norm=norm, mask=mask, multiy=multiy, tol=tol)

Routine details

top arraygen

arraygen, arraytext, outarray

LAMP procedure to create an array of file numbers from a string ARW 30.08.04 NECESSARY VARIABLES: arraytext = the text containing the file numbers and separation parameters The separation parameters are: first:last = takes a sequence of numbers from first to last first,last = takes the first and the last numbers only OPTIONAL VARIABLES OUTPUT VARIABLES: outarray = an array of filenumbers e.g. arraygen,'90201:90220,90230',outarray CALLS TO: Last modified: ARW 10.09.04

Parameters

arraytext
outarray

top datecon

datecon, input, start, stop

LAMP procedure to take the date line from a D17 data file and return the start and finish times as a binary string. Example of the date line: 06-AUG-04 09:41:33 06-AUG-04 10:11:29 ARW 31.08.04 NECESSARY VARIABLES: input=the ascii string that represents the date line from the file OUTPUT VARIABLES: start=the start time as a binary string stop=the finish time as a binary string e.g. datecon,dates,start,end CALLS TO: Last modified: ARW 02.09.04

Parameters

input
start
stop

top mload

result = mload(nums, F12=F12, yaxis=yaxis, norm=norm, mask=mask, multiy=multiy, tol=tol)

******* ***** **

Parameters

nums

Keywords

F12
yaxis
norm
mask
multiy
tol

File attributes

Modification date: Tue Oct 1 14:43:02 2013
Lines: 510