Skip to content

NREL/rex

Repository files navigation

Welcome to The REsource eXtraction (rex) tool!

Docs Tests Linter PyPi PythonV Conda Licence CodeCov Zeonodo

rex command line tools

Using Eagle Env

If you would like to run rex on Eagle (NREL's HPC) you can use a pre-compiled conda env:

conda activate /shared-projects/rev/modulefiles/conda/envs/rev/

or

source activate /shared-projects/rev/modulefiles/conda/envs/rev/

Installing rex

NOTE: The installation instruction below assume that you have python installed on your machine and are using conda as your package/environment manager.

  1. Create a new environment:

    conda create --name rex

  2. Activate directory:

    conda activate rex

  3. Install rex:
    1. pip install NREL-rex or
    2. conda install nrel-rex --channel=nrel
      • NOTE: If you install using conda and want to use HSDS you will also need to install h5pyd manually: pip install h5pyd
  1. from home dir, git clone git@github.com:NREL/rex.git
  2. Create rex environment and install package
    1. Create a conda env: conda create -n rex
    2. Run the command: conda activate rex
    3. cd into the repo cloned in 1.
    4. prior to running pip below, make sure the branch is correct (install from main!)
    5. Install rex and its dependencies by running: pip install . (or pip install -e . if running a dev branch or working on the source code)
  3. Check that rex was installed successfully
    1. From any directory, run the following commands. This should return the help pages for the CLI's.

      • rex
      • NSRDBX
      • WINDX
      • US-wave

Update with current version and DOI:

Michael Rossol, Grant Buster. The REsource Extraction Tool (rex). https://github.com/NREL/rex (version v0.2.43), 2021. https://doi.org/10.5281/zenodo.4499033.