GNU-Compilation of the CALPUFF modeling system + sample run.
DISCLAMER: The official source code of CALPUFF and it's pre/post-processors has been developed and is manteined by scientists at Exponent, Inc. This repository is a tool to easily compile calpuff and run it on a UNIX environment using a GNU-compiler.
To build it:
gfortran
make
netcdf
library (> 4.4.0) (OPTIONAL, needed only by CALWRF)
To run it:
python
gdal
awk
Just enter to the src/
directory:
cd src/
Edit the variables inside the Makefile
file according to your environment, and then execute make
:
make
If the compilation is succesfull, you should see the executables in the exe/
directory.
First please check you have NetCDF installed on your personal computer or cluster before.
which nc-config
If you want to use a locally installed NetCDF library, add the paths to the environment variables:
export PATH=$PATH:/path/to/your/netcdf/bin
export LD_LIBRARY_PATH=$PATH:/path/to/your/netcdf/lib
In order to build CALWRF execute the following command inside the src/
directory:
make calwrf
The calwrf executable will be placed in the exe/
directory if compilation was succesfull.
Sample runs have been placed in the runs/
folder, please read the readme.md
inside it.