Purpose: familiarisation with the prototype Python FLEXPART modeling system I have created.
These exercises utilise data and programs that have been pre-packaged for this course. In the following,
<path to course>
refers to the path
/home/kurs/donmor/CourseFiles/
For this exercise, you should copy the following from
<path to course>/WorkingSystem/
into your $HOME working directory (I recommend you create a new directory, separate from the ones you've used so far):
FIRMS.py
FLEXPARTSetup.py
flexpartTemplates/ (this is a directory - copy the whole thing recursively with cp -a)
GFSDataInfo.py
pfProbe.py
quickFLEXVis.py
RunFlex.py
You should then edit the following variable definitions in RunFlex.py
FLEX_RUN_DIR - this is where you want FLEXPART to run. The directory will be created for you, assuming that the entire path, up to the name of the new directory, exists. If the directory already exists, the program will abort.
FLEX_SRC_TEMPLATES_DIR - <path to your working directory>/flexpartTemplates
FLEX_BINARY - I have already created a compiled FLEXPART for this case, avaiable at <path to course>/FLEXPART/FLEXPART_GFS_FORTRAN
MET_DATA_DIR - <path to course>/LabExerciseData/GFS1p0/2013040400
FIRMS_DATA_SOURCE - <path to course>/LabExerciseData/FIRMS/FIRMS-Europe_24h-20130404.csv
NUM_PARTICLES_PER_RELEASE - The current value of 10000 takes about six minutes to run. You can still get results with a value of 1000, so you might want to try this first.
This should be everything you need. Run the script like
./RunFlex.py
As the only user on the computer, this run has taken me about six minutes and utilised about 10% of the memory. With more of you on the machine, things may slow down, and you may need to take turns running this in small groups. For something quick
When the run has completed, you should find your output files in the output subdirectory of your FLEXPART run directory.
You can take a quick look at the concentration from an individual output file by using the provided program, quickFLEXVis.py
./quickFLEXVis.py <path to FLEXPART output dir> <timestamp>
where <timestamp> is in the format YYYYMMDDHH
Be sure that the timestamp you specify corresponds to one of the FLEXPART output files. If this is successful, the output will be a new file named quickFLEX.png.
If you have been unsuccessful in running the FLEXPART case and/or want to skip ahead to start looking at the output files, an output directory from a working instance of this case is available at
<path to course>/LabExerciseData/flexout/20130404_00/