This code compute a set parameters which allow to estimate the concentration levels produced by any given emission scenario.
Diffusion SRR - Source receptor relationship (master)
Recent Commits
Recent Commits
Commit | Author | Details | Committed | ||||
---|---|---|---|---|---|---|---|
900b64533547 | madrazo | parameters file added | Feb 21 2017 | ||||
00474a85d118 | madrazo | codes file of v.0.JMB added | Feb 21 2017 | ||||
9ec230628a52 | madrazo | README file added | Feb 21 2017 |
README
README
You need the following libraries:
(Mandatory)
- dlib-18.12: it is included in the SR_CODE directory
- dislin This library requires OpenMotif.You can install it from Ubuntu Software center or with the command: sudo apt-get install libmotif4 How to Install DLISIN from tar.gz distribution >> > Download dlisin library here: ftp://ftp.gwdg.de/pub/grafik/dislin/linux/i586_64/dislin-10.6.linux.i586_64.tar.gz > Uncompress the tar.gz file with the command: gzip -d dislin-10.6.linux.i586_64.tar.gz > Restore files from the tar file with the command: tar xvf dislin-10.6.linux.i586_64.tar > Change to the installation directory of DISLIN: cd dislin-10.6 > Change the root access: sudo su > Choose a directory in the file structure where DISLIN should be installed and define the environment variable DISLIN with it: For example: DISLIN=/usr/local/dislin (for sh, ksh) export DISLIN > Run the install program with the command (This program copies files to $DISLIN and sets protections) ./INSTALL > To make DISLIN available for general use, write the following commands to your .profile
sudo gedit /etc/profile
then, copy paste and save the following commands: export DISLIN=dislin_directory PATH=${PATH}:${DISLIN}/bin LD_LIBRARY_PATH=$DISLIN:$LD_LIBRARY_PATH export LD_LIBRARY_PATH > You can delete the installation directory 'dislin-10.6'. > Check the correct location of dislin into the SR_CODE i.e. in the file writeResults.cc #include "/usr/local/dislin/discpp.h" > More details in ftp://ftp.gwdg.de/pub/grafik/dislin/README ftp://ftp.gwdg.de/pub/grafik/dislin/linux/i586_64/README.I586_64
(Optional)
- netcdf
For compiling:
- In SR_CODE directory, check and/or edit the makefile, two codes are available (1) using netcdf library, you'll use it if your input data is store in netcdf files. (2) for input data stored in txt files
- from terminal go to SR_CODE directory "cd <SR_CODE>"
- use "make" command line from the terminal to compile the code. (1) If you compiled with netcdf options, an executable named "SR_main_NC_TXT" is created (2) If you compiled for data in txt files, an executable named "SR_main_onlyTXT" is created
For runing:
- edit the .par file (1) "filename_nc.par" (2) "filename_txt.par"
- use the command line (1) ./SR_main_NC_TXT ../<filename>_nc.par or ./SR_main_NC_TXT ../<filename>_txt.par (2) ./SR_main_onlyTXT ../<filename>_txt.par
c4science · Help