rex documentation
Welcome to The REsource eXtraction (rex) tool!
What is rex?
rex stands for REsource eXtraciton tool.
rex enables the efficient and scalable extraction, manipulation, and
computation with NRELs flagship renewable resource datasets such as: the Wind
Integration National Dataset (WIND Toolkit), the National Solar Radiation
Database (NSRDB), the Ocean Surface Wave Hindcast (US Wave) Data, and the
High-resolution downscaled climate change data (Sup3rCC).
To get started accessing NREL’s datasets, see the primer on NREL Renewable Energy Resource Data or the installation instructions.
You might also want to check out the basic Resource Class that can be used to efficiently query NREL data, or our various example use cases.
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.
Option 1: Install from PIP or Conda (recommended for analysts):
- Create a new environment:
conda create --name rex
- Activate directory:
conda activate rex
- Basic
rexinstall: pip install NREL-rexor
conda install nrel-rex --channel=nrel
- Basic
- Install for users outside of NREL that want to access data via HSDS or S3 as per the instructions here:
pip install NREL-rex[hsds]for more performant access of the data on HSDS with slightly more setup as per this hsds example. Note that the highest version of Python currently supported byhsdsis Python 3.11.
Option 2: Clone repo (recommended for developers)
from home dir,
git clone git@github.com:NREL/rex.git- Create
rexenvironment and install package Create a conda env:
conda create -n rexRun the command:
conda activate rexcd into the repo cloned in 1.
prior to running
pipbelow, make sure the branch is correct (install from main!)Install
rexand its dependencies by running:pip install .(orpip install -e .if running a dev branch or working on the source code)
- Create
- Check that
rexwas installed successfully From any directory, run the following commands. This should return the help pages for the CLI’s.
rexNSRDBXWINDXUS-wave
- Check that