elog2labfolder/importing_from_elog.rst
author weiher
Thu, 11 Jan 2018 12:10:42 +0100
changeset 3 b71be85a294c
child 11 ccfe3c7fa0d2
permissions -rw-r--r--
Initial commit of labfolder at FHI documentation

Importing projects from e.g. the ELOGbook to Labfolder at the FHI
=================================================================

The ELOG entries of a certain project need to be exported as *Raw* which looks like this::

	$@MID@$: 12
	Date: Tue, 03 Dec 2013 12:15:14 +0100
	Author: Wieland Schöllkopf
	Author Email: mailto:wschoell@fhi-berlin.mpg.de
	Category: Shift summary
	Subject: 1st solid-state experiment with FHI FEL
	Severity: DOCU
	Keywords:
	Record date: 1386069171
	Attachment:
	Encoding: HTML
	========================================
	<p>Today Alex Paarmann and Marc Herzog are measuring in the wavelength range from 10 to 20 micron with a 0.5 mm thick GGG (Gadolinium Gallium Garnet, <a title="Gadolinium" href="http://en.wikipedia.org/wiki/Gadolinium">Gd</a><sub>3</sub><a title="Gallium" href="http://en.wikipedia.org/wiki/Gallium">Ga</a><sub>5</sub><a title="Oxygen" href="http://en.wikipedia.org/wiki/Oxygen">O</a><sub>12</sub>). Electron energy is set to 26 MeV.</p>

This ASCII export looks like this in the ELOG webinterface:

.. image:: _static/elog_entry.png
   :width: 100 %
   :align: center

What is noticeable is that the ELOG export comes with a "ö" instead of an "ö". Interestingly, if only entries done by Wieland are exported the export file has UTF-8 encoding which can actually print German "Umlaute" (ö, ä, ü). If all entries are exported the encoding changes to an encoding that cannot handle e.g. "ö". 

After importing the above ELOG entry into labfolder this entry appears like that:

.. image:: _static/entry_after_import.png
   :width: 100 %
   :align: center