6.8 Accessing Metadata Associated with Imported Files

Metadata are data that in some way identify or describe other data. Within the context of data file import, metadata might include such things as the date and time of data acquisition and the data-file format. Origin is able to extract various bits of metadata and save this information when importing ASCII, binary and third party files. Some metadata are extracted by default -- the filename, path, file type, creation time and time of file import, for instance.

Other bits of metadata need to be specifically identified by you prior to file import. When importing data via the Import Wizard, you can extract user-defined variables from the header portion of ASCII or binary files and store them in the target workbook. For some third party files such as the NI DIAdem data files, specific information (for instance, time format, missing values, etc.) is automatically obtained and saved by the specific X-Function that handles file import (which, in the case of NI Diadem files, is impNIDIAdem).

Metadata can be saved in two places in the workbook:

You may want to use variables linked to the metadata saved in these two areas in your project. You can retrieve information on some items -- filename, for instance -- from either area. Your decision may depend upon what you are trying to do with this information. For instance, if you wish to update a variable value with each new import into the workbook, you should link to the page.info area. On the other hand, if you want to store variable values permanently with information on the source file from which they were created, they should be linked to the binary storage area.

Topics covered in this section: