Skip to content

Installation

Valvanuz Fernandez edited this page Nov 19, 2021 · 4 revisions

Installation

Requirements

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.

Platform notes

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

Install

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:

  1. With root access: You can go ahead and run sudo pip install drm4g
  2. Without root access: Run pip install drm4g --user
  3. 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 .

Verifying the installation

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
Clone this wiki locally