lamp_mac/SANS/
sans_log.pro
Write a log file for a series of SANS numors. The name of the log file is 'log_numor1_numor2.txt' Call: If ASCII numors: sans_log, #numor1, #numor2 [, param = #P1] [, step=N], [tol=F] [, /show] where #numor1 and #numor2 are the initial and final numors. The optional parameters are param = integer corresponding to the position in the parameters block of the additional parameter to be written in the log, step = integer to indicate the step in the loop over numors (e.g. N=2 will skip 1 numor every 2) (default is 1), tol = float to give the tolerance to determine when a parameter has changed value (default is 0.1). The keyword /show can be used to display the file immediately If nexus numors: sans_log, #numor1, #numor2 [, param = 'keyword'] [, step=N], [tol=F] [, /show] In this case with the keyword the user must give the name given in the nexus file to the additional parameter to be written in the log. The other parameters work as for the ASCII case.
Routines
get_parameters_nexus, numor, run_number, instrument, user, localcontact, title, date, detector_distance, detector_angle, detector_offset, collimation, selector_speed, selector_tilt, attenuator, sample, position, time, monitor, counting_time, lambda, total_counts, counts_per_second, tof_mode, value
sans_log, numor_ini, numor_end, status, param=param, step=step, tol=tol, show=show
Routine details
top get_parameters_nexus
get_parameters_nexus, numor, run_number, instrument, user, localcontact, title, date, detector_distance, detector_angle, detector_offset, collimation, selector_speed, selector_tilt, attenuator, sample, position, time, monitor, counting_time, lambda, total_counts, counts_per_second, tof_mode, value
** ******************** ** Get all parameters written in the nexus file
Parameters
- numor
- run_number
- instrument
- user
- localcontact
- title
- date
- detector_distance
- detector_angle
- detector_offset
- collimation
- selector_speed
- selector_tilt
- attenuator
- sample
- position
- time
- monitor
- counting_time
- lambda
- total_counts
- counts_per_second
- tof_mode
- value
top sans_log
sans_log, numor_ini, numor_end, status, param=param, step=step, tol=tol, show=show
** ******** ** User callable ** Write a log file for a series of SANS numors. The name of the log file is 'log_numor1_numor2.txt' ** Call for ASCII numors: sans_log, #numor1, #numor2 [, param = #P1] [, step=N], [tol=F] [, /show] ** Call for NeXus numors: sans_log, #numor1, #numor2 [, param = 'keyword'] [, step=N], [tol=F] [, /show] ** ** status=0 Program error ** status=1 Success ** status=2 First numor missing ** status=3 Last numor missing ** status=4 Write error
Parameters
- numor_ini
- numor_end
- status
Keywords
- param
- step
- tol
- show
File attributes
Modification date: | Tue Oct 1 14:40:28 2013 |
Lines: | 392 |