Scientific Spectrum CSV and JCAMP

Import a scientific spectrum from CSV or JCAMP into GX-TXT and check quantities, units, and variables before publication.

acq.scientific_spectrum · Version 1.0.0

To import a scientific spectrum from a CSV into the Acquisition tab, set Source Format to csv or auto. For spettro-ir.csv use infrared, wavenumber, cm^-1, absorbance, absorbance, 1, columns 1 and 2, Header equal to 1 and Delimiter equal to auto. Check the row (1040 cm⁻¹, 0.44) and the physical nature of the axes in the spectrum.scientific result.

Source Format is textual. jcamp forces the JCAMP parser. With auto the parser can recognize double-hash headers. For JCAMP, start from the actual units and quantities in the source. If the file comes from Scientific Libraries, the Library path can attach options specific to the identified content. A file downloaded and added directly from the tab follows the current Acquisition settings.

Exercise files

Sources, licenses, and SHA-256

Screenshots

Open a screenshot to view it at full size.

spettro-ir.csv added in Acquisition with Dataset ID spettro_ir. The row shows the import settings.
spettro-ir.csv added in Acquisition with Dataset ID spettro_ir. The row shows the import settings.
Pending Preview of spettro-ir.csv with wavenumber in cm⁻¹ and absorbance.
Pending Preview of spettro-ir.csv with wavenumber in cm⁻¹ and absorbance.
After Import, the browser shows Active Dataset: spettro_ir. The Metadata tab describes the recorded result.
After Import, the browser shows Active Dataset: spettro_ir. The Metadata tab describes the recorded result.
Canonical table of spettro_ir, with five points and the units declared for the two variables.
Canonical table of spettro_ir, with five points and the units declared for the two variables.

Controls and settings

Scrollbar

Use the horizontal or vertical scrollbar to reach fields, entries, or text outside the visible area.

Dataset Id

Sets a proposed ID for the sources you add with this importer. Check the actual ID in each row before Import. The Dataset browser uses the published ID to find the result.

Default value in the basic configuration scientific.spectrum.

Source Format

Text field. auto detects the format from the data, csv forces CSV, jcamp forces JCAMP. A Scientific Libraries context can supply options related to the original.

Default value in the basic configuration auto.

Spectrum Kind

Declares the physical family of the spectrum. Use the type that matches the measurement, for example infrared for IR absorbance.

The field is initially blank.

X Quantity

Declares the quantity on the x-axis. wavenumber indicates wavenumber and wavelength wavelength. The two quantities require consistent units.

The field is initially blank.

X Unit

Indicates the x-axis unit, for example cm^-1 for wavenumber or nm for a wavelength. The declaration describes the coordinates supplied.

The field is initially blank.

Y Quantity

Declares the quantity on the y-axis, for example absorbance.

The field is initially blank.

Y Representation

Indicates the numeric representation of the y-axis, for example absorbance. Choose the actual representation, because quantity, scale, and unit all affect interpretation.

The field is initially blank.

Y Unit

Indicates the y-axis unit. For absorbance use 1. For a scientific CSV this field is required.

The field is initially blank.

X Column

Position of X in a CSV, starting from 1.

Default value in the basic configuration 1.

Y Column

Position of Y in a CSV, starting from 1.

Default value in the basic configuration 2.

Header

Use 1 when the first row contains the names and 0 for data rows only.

Default value in the basic configuration 1.

Delimiter

Choose the separator actually used in the source. auto estimates it from a sample. comma uses comma, semicolon semicolon, tab tab, and whitespace whitespace where available. Check that Preview returns the expected number of columns.

Default value in the basic configuration auto.

Scrollbar

Use the horizontal or vertical scrollbar to reach fields, entries, or text outside the visible area.