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.
NOTE: The installation instruction below assume that you have python installed on your machine and are using conda as your package/environment manager.
- 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
- 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[s3]
for easy no-setup direct access of the data on S3 viafsspec
as per this s3 example- or
pip install NREL-rex[hsds]
for more performant access of the data on HSDS with slightly more setup as per this hsds example
from home dir,
git clone [email protected]: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 .
(orpip install -e .
if running a dev branch or working on the source code)
- Create a conda env:
- Create
- 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
- Check that