1	Make sure all necessary packages are installed
For all this to work we require the python modules: os and subprocess. Additionally the bash-modules: dpuser, python (and convert)
 
	2	Compile the Metrology Reduction routine called: metred
This is the reduction from Stefan that reduces the GRAVITY files in smart way, extracting phases, volts, time etc and returns single files for further analysis. You have all the necessary files in the zip “Metred_SVN.rar” – simply unzip that, make sure that the “reduce.sh” can be read and executed (chmod u+x reduce.sh) and compile with: gcc -o metred process.c ini.c metred.c main.c -lm -lcfitsio. Lastly also make sure that the resulting “metred” program can be read and executed (chmod u+x metred). The name metred is needed because my bash-routine will call it like that.
 
	3	Obtain the MetroPy-Routine
For this I have attached the “MetroPy.rar” folder, this contains all the scripts creating 5 different plots and a header. Additionally it contains the file “MetroPy_SVN.sh“ that I also attached explicitely this is the important file, because this will parallelize all the MetroPy-scripts and save a factor 5 in time like this. Additionally this will run the metred reduction which requires dpuser to be available. Unzip it and put it in the same directory as the Metred_SVN folder.
 
	4	Fix paths
Eventhough I have kept my scripts as much path-independent as possible, there are two paths that need to be set individually. This allowed me to be a bit flexible during troubleshooting and also made other things much easier. In general I would not get rid of these, they are easily set and allow the script to be integrated anywhere.
	1	Where to put the folders Metred_SVN and MetroPy: I’m calling the “gravi_visual_raw.py” routine to create my checkplots hence I have put both folders in the gravi_visual/ directory. The absolute path is not crucial, but you should put both folders in the same absolute path.
	2	MetroPy_SVN.sh: The MetroPy_SVN.sh routine is calling the metred program and the MetrPy_SVN.sh routine (which is why both should be in the same path). You set the absolute path by modifying the “BASEPATH” variable in the third line of the script. This is for now my home directory on gvraid and my copy of the routine. Set this to wherever the two folders Metred_SVN and MetroPy are located.
	3	Gravi_visual_raw.py: In the produce_raw_report() function you simply set the absolute path of the MetroPy folder in the “metropy_path” variable. It is located in line 908 in the section called MetroPy. This requires then that the MetroPy_SVN.sh is located in the MetroPy folder. Then replace the previous gravi_visual_raw.py with my updated one.