-
Notifications
You must be signed in to change notification settings - Fork 10
Installation
fernanqv edited this page May 18, 2022
·
4 revisions
WRF4G can be installed in any 64-bit linux operating systems. Before installing WRF4G, make sure that the gcc compiler, python3(>3.5) and pip3 are present in your environment.
WRF4G has been tested under the following operating systems:
- Ubuntu 16.04, 18.04, 20.04 : Issues not known.
- Centos 7: It is necesary to upgrade the default version of pip3 to the most recent. To do that you can run the following command:
sudo pip3 install --upgrade pip
The recommended way to install WRF4G is by using the command pip3 install wrf4g
Depending on your environment, you can choose different ways to install WRF4G:
- With root access: You can go ahead and run sudo
pip install drm4g
- Without root access: Run
pip install drm4g --user
- In a conda environment: Just run
pip install drm4g
If you want to try the newest versions of WRF4G, you can install the develop branch from the WRF4G github repository following these steps:
git clone https://github.com/SantanderMetGroup/WRF4G
pip install .
Developers who want to modify WRF4G features should install WRF4G in developer mode following these steps:
pip uninstall drm4g wrf4g
git clone https://github.com/SantanderMetGroup/DRM4G.git
git clone https://github.com/SantanderMetGroup/WRF4G.git
cd DRM4G
pip install -e .
cd ../WRF4G
pip install -e .
To check if WRF4G has been successfully installed you can run the following commands:
-
which wrf4g
- If it returns something, it means it has been installed.
- If the program doesn't exist, it won't show anything
-
drm4g start
- If there aren't any errors, it will show a message like this:
$ wrf4g start
Starting DRM4G ....
OK