3.1 Using Your Measured Data


The first step in performing a fit (or just comparing your measured data to IMD calculations) is to load your measured data into IMD. The internal variable names that IMD uses for measured data are X_m, Y_m, and SIGY_m, where X_m is the independent variable, Y_m is the dependent variable, and SIGY_m is the experimental uncertainty in Y_m. So the goal here is to get your data inside these variables. (SIGY_m is optional - if you don't define it, IMD will just set it to zero.)

The easiet way to load your data into IMD is to use the File->Open Measured Data File... option from the main IMD widget menu bar. Figure 3.1.1 shows the widget that appears as a result:

Figure 3.1.1 IMD Open Measured Data File widget

To load in measured data, you must tell IMD what sort of data you have. In the Open Measured Data widget (Figure 3.1.1), you must select designations for X_m and Y_m from a list of available independent and dependent variables; the choices presented will be determined by the independent and dependent variables you have already selected in IMD.

For this example, I will illustrate how to read an ASCII file containing reflectance vs. incidence angle data measured for a Au film, 40 nm thick, at a wavelength of 400 nm.

After specifying the relevant structure parameters (i.e., Au film, 40 nm thick), and the relevant independent and dependent variables (i.e., reflectance vs. incidence angle) in the main IMD widget, in the Open Measured Data widget, select Reflectance, R for Y_m, and Incidence Angle, Theta [deg] for X_m.

The final step is to tell IMD what IDL commands to use to actually read the file. Since the file I'm reading in this example is an ASCII file containing three columns of data - angle, reflectance, and uncertainty-in-reflectance - I can use the EROM command (see the documentation for the EROM command, located in the windt directory). The IDL command to read in the data is thus 'EROM, X_M, Y_M, SIGY_M'. This command goes in the field labelled Command to read measured data file: in the Open Measured Data File widget.

Once you have finished with the Open Measured Data File widget, press Open Data File to actually read the file. In this example, the EROM command will now ask you to select a file to open. If you wish to follow along with this example, then select the file called Au_r_vs_th.MEASURED.dat in the examples.dir directory.

After the data is read in successfully, the MEASURED DATA area of the main IMD widget will indicate what data has been loaded. In this example, the MEASURED DATA widget looks like this:

Figure 3.1.2: MEASURED DATA area of the main IMD widget after reading in data.


Back | Contents | Next