|
|
|
The Computing for Science (CS) group supports ILL scientists, students and visitors in a number of activities including data analysis, instrument simulation and sample simulation.

5. Manipulating Workspaces
Imagemap - Click on any point to go to the relevant paragraph. Formula-Entry WindowAll formulae and commands entered in this field (by typing them in and hitting return) are scanned by LAMP for workspace manipulations. They are also executed by IDL so that almost all IDL commands and functions can be entered in this field. One-line Macros (Do buttons) As well as using the formula-entry window, one-line commands can be also be written in any of the windows on the right of the area in classical Lamp and executed by pressing its neighbouring Do button. You can also get them from the menu-bar item "lamp/layout". ErrorsA crunch sound signifies an error and a message will appear beneath the formula-entry window or the DATA COLLECTOR area (cursor values are also displayed here). Please report unexplained errors. Workspace Array and Data DimensionsEach time a workspace is altered its dimensions and data minimum and maximum values may change. If the W Min,Max button is selected this information will be displayed in the neighbouring window. Workspace HistoryEach operation which modifies a workspace is stored in its history. If the W History button is selected the histories are displayed in place of the W Min,Max values. (see also Session Journal below) User-Macro Files The User Macros? button opens a window which allows the LAMP macros and their descriptions to be visualised and searches for all <code>*.pro</code> files in the directory appearing in the users path. It also allows new macro and command files to be made by the user. You can also open the window from the menu-bar item "Edit". INTERNALS ACCESSIBLE FUNCTIONSLot of internal functions are accessible and can be called by user. Their descriptions can be visualised from the menu-bar item "Info". IDL HelpThe IDL? button activates full IDL on-line help, the ' ? ' button also gives a few tips on using functions and commands. Instrument or Data ParametersEach workspace has its own set of instrument parameters (eg. stored in p1(0) to p1(120) for w1, see Main Concepts ), these can be displayed and edited by pressing the Data Params button or from the menu-bar item "Info". For example if you extracted spectra from a workspace you would need to edit the Number of detectors by selecting the Workspace # and changing the number in the corresponding row. ** Session JournalAll of the workspace operations that you perform (reading data, formulae entered etc.) are logged and can be viewed by pressing the button labelled The Journal which is on the right of the main LAMP interface and the menu-bar item "Info". There is also a print option to obtain a hard copy. This journal is saved in local directory as file lamp.jou ** Saving the SessionThe button labelled Save Lamp Session (presents also in the menu-bar item "File") saves the entire current status of LAMP. Next time LAMP is started (from the same directory or path as the session was saved in) the session can be restored, ignored or deleted. You may rename the file lamp.ses to prevent it being overwritten. ** Exiting LAMP The button EXIT from Lamp exits cleanly from LAMP and IDL. |