The LAMP Application

Generated by IDLdoc

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

lamp_mac/readers/

read_dcsasc.pro


This program reads ascii dcs file derived from the dcs_binary2ascii routines written by J. Copley N.B: all the experimental parameter were saved ... will read only a few of them Standard call for a wout-read function interfacing LAMP. Return of the function wout is an array of any dimensions and type containing the wout values (spectra). Input parameters: PATH is the full path where to find the wout (string defined in customize tables). FILENAME is the name of the wout file. if FILENAME(1) exists, this is the requested image number in the file. Output parameters: STATUS is the returned error code you can choose from the following list: 0 =' Successfull read' 1 =' Client/server on local node not established' 2 =' Client/server on router node not established' 3 =' The local node cannot access the server node' 4 =' The router node cannot access the server node' 5 =' VME memory read error' 7 =' Sequence error in wout transfer' 9 =' Parameter error' 10=' Router is busy with other transfer' 11=' Cant open the file or file not found' 13=' wout file incomplete' 14=' Bad instrument wout definition' 24=' Cant read the file'. DATP is a structure defined as follow: (all tags are OPTIONAL) DATP.X = vector of x coordinates. DATP.Y = vector of y coordinates. DATP.Z = vector of z coordinates. DATP.W_TIT = main title DATP.X_TIT = x axis title DATP.Y_TIT = y axis title DATP.Z_TIT = z axis title DATP.OTHER_TIT= sub title DATP.N = monitors DATP.P = vector of float parameter values up to 41 DATP.PAR_TXT = string array of text associated to DATP.P (same size) DATP.PV = an array of any dimensions containing other parameter values DATP.E = the errors associated to wout (same size) DATP.TIME = string date of the experiment. S. Rols August 2001 (rols@ill.fr) JO, Thu Mar 22 09:14:33 CET 2007 Reworked to read new DCS formats (from ascii files) Binary data needs first to be translated into ascii files using dcs_binary2ascii.pro (several routines): retall .r read_dcsasc.pro .r dcs_binary2ascii.pro .r dcs_rawdata_variables_choose.pro .r dcs_rawdata_ptr.pro .r dcs_read_binaryoctavefile_ptr.pro .r dcs_write_summary_ptr.pro .r dcs_write_asciioctavefile_ptr.pro At the IDL prompt: >> dcs_binary2ascii Then save data with all parameters: "Check All" "Make individual Files" "Done" (ask for the name of the .dcs file then -- one by one) Scattering angles are hard-coded in this routine as they do not appear in the raw data files. DCS data are then integrable in LAMP as if it would be IN5 data JO, Mon Jun 16 12:05:20 CEST 2008 Corrected an error on the name/runnumber in paratmeters

top read_dcsasc

result = read_dcsasc(FILENAME, verbose=verbose)

******* *********** ** This program reads ascii dcs file derived ** from the dcs_binary2ascii routines written by J. Copley ** N.B: all the experimental parameter were saved ... will read only a few of them

Parameters

FILENAME

Keywords

verbose

File attributes

Modification date: Tue Oct 1 14:38:29 2013
Lines: 631