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 rex install:
pip install NREL-rex
or conda install nrel-rex --channel=nrel
- 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 by hsds is Python 3.11.
Option 2: Clone repo (recommended for developers)
from home dir, git clone git@github.com:NREL/rex.git
- Create rex environment and install package
Create a conda env: conda create -n rex
Run the command: conda activate rex
cd into the repo cloned in 1.
prior to running pip below, make sure the branch is correct (install from main!)
Install rex and its dependencies by running: pip install . (or pip install -e . if running a dev branch or working on the source code)
- Check that rex was installed successfully
From any directory, run the following commands. This should return the help pages for the CLI’s.
rex
NSRDBX
WINDX
US-wave
rex command line tools
Release files for NREL-rex 0.4.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nrel_rex-0.4.3.tar.gz | 152.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nrel_rex-0.4.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 329.7 kB
Release files / nrel_rex-0.4.3.tar.gz
| Download URL | nrel_rex-0.4.3.tar.gz |
|---|---|
| Size | 152.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
64d99795e7c9a901252321af288000c6d5bccea8e80fa47ad540f39b2a507ba7
|
|
BLAKE2b-256 checksum How to use checksums |
4c4e28f828fb5999f9d495a68b4705422747a3641a536667fbc9b97c57662437
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 11, 2025.
Transparency logRelease files / nrel_rex-0.4.3-py3-none-any.whl
| Download URL | nrel_rex-0.4.3-py3-none-any.whl |
|---|---|
| Size | 177.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9e44813f5f022990d3d33a7aab0685522b40c651539b227e29ce9aaa239ac886
|
|
BLAKE2b-256 checksum How to use checksums |
a066404e1cea32ebd39f519d757b7c0c9e5a71e0ce2bac4a70d2098d3ab248f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 11, 2025.
Transparency log