Skip to main content
Chemistry LibreTexts

4.1: Analog and Digital Data

  • Page ID
    407087
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    Figure \(\PageIndex{1}\) shows an xy-recorder that we can use to provide a permanent record of a cyclic voltammetry experiment. In this particular experiment, we apply a variable potential to an electrochemical cell and measure the current that flows in response to this potential (see Chapter 25 for a discussion of cyclic voltammetry). The potential and the current, which is converted into a voltage for the purpose of recording the cyclic voltammogram, are fed into the recorder using the cables on the right side of the recorder. The Y1 Range and the X Range controls allow us to adjust the scales of the axes.

    Photograph of an xy-recorder.
    Figure \(\PageIndex{1}\). Photograph (a) of an xy-recorder and (b) close-up view of the recorder's controls.

    The vertical bar on the xy-recorder moves toward the recorder's left or right based on the applied potential, and a pen attached to the vertical bar moves toward the recorder's top or bottom based on the measured current. The applied potential and the current are continuous variables within the instrument's range; the resulting cyclic voltammogram in Figure \(\PageIndex{2}\) is an analog record of the experiment.

    Cyclic voltammogram.
    Figure \(\PageIndex{2}\). Example of the type of output obtained with the xy-recorder for a cyclic voltammetry experiment.

    Although the analog trace in Figure \(\PageIndex{2}\) provides a permanent record of an experiment, it is not in form that gives us access to the raw data. We can take the image and use digitizing software (see here for an open-source digitizer) to extract a digital version of the data, or we can design our instruments to collect the data in digital form by sampling the analog signal at preset intervals and then saving the data. Such files often are in a format that includes metadata that explains how to extract the data from the file. For example, xy-coordinate data for a wide variety of spectroscopy experiments is often stored digitally using a format established by the Joint Committee on Atomic and Molecular Physical Data (JCAMP). Such files have the extension .jdx and can be opened using a variety of different software programs.

    Figure \(\PageIndex{3}\) is a screenshot that illustrates how we can work with digitized data using data analysis software, such as R and RStudio. The upper left panel shows some of the contents of a .jdx file that contains the IR spectrum of methanol (in this case, digitized by NIST from an analog hard copy). The lines preceded by double hashtags (##) are metadata that provide information about the x-axis scale (minimum and maximum limits and increments between values), the y-axis scale (minimum and maximum values), and the number of data points. This is followed by multiple lines of digitized data. Each line of data contains one value of x and five values of y. The R package readJDX was used to extract the information from the .jdx file and to store it in a variable given the name methanol (see upper right panel). Code written in R (see lower left panel) was used to plot (see lower right panel) the spectrum.

    Analysis of a digitized spectrum.
    Figure \(\PageIndex{3}\): Screenshot from RStudio showing the analysis of a digitized spectrum. See text for details.

    Although the spectrum for methanol in Figure \(\PageIndex{4}\)—with its smooth, continuous line—looks like an analog spectrum, this is a result of choosing to plot the data as a sequence of lines that connect individual points without actually displaying the individual points themselves. Figure \(\PageIndex{4}\), in which we plot only the individual data points, shows us that the spectrum actually consists of discrete, digitized data.

    IR spectrum of methanol shown as digitized data.
    Figure \(\PageIndex{4}\). The IR spectrum for methanol from the .jdx data in Figure \(\PageIndex{2}\) plotted here using individual points instead of a line that connects the individual points.

    This page titled 4.1: Analog and Digital Data is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by David Harvey.

    • Was this article helpful?