Installation
Dependencies
Install
conda
Python package manager (pick one from the following installers)Set up NASA EARTHDATA
Register an account at https://urs.earthdata.nasa.gov.
After registration, please specify environment variable
EARTHDATA_USERNAME
andEARTHDATA_PASSWORD
(assume you had a username ofabc
with password of123
).For example, if you are using
bash
shell, add the following line to the shell source file (e.g.,~/.bashrc
):export EARTHDATA_USERNAME="abc" export EARTHDATA_PASSWORD="123"
Request a token (instructions here) for your EARTHDATA account and assign it to environment variable
EARTHDATA_TOKEN
.For example, if you are using
bash
shell, add the following line to the shell source file (e.g.,~/.bashrc
):export EARTHDATA_TOKEN="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
Install MCARaTS through the official installation guide (or a step-by-step informal installation guide)
After installation, please specify environment variable
MCARATS_V010_EXE
.For example, if you are using
bash
shell, add the following line to the shell source file (e.g.,~/.bashrc
):export MCARATS_V010_EXE="/system/path/to/mcarats-0.10.4/src/mcarats"
When the installation processes are complete,
er3t.rtm.mca
can be used to perform IPA/3D radiance/irradiance simulation (details seeexamples/00_er3t_mca.py
).
Tip
If you encountered any error, please feel free to reach out at Discord SUPPORT/mcarats for community support.
(optional) Install libRadtran through the official installation guide (or a step-by-step informal installation guide)
After installation, please specify environment variable
LIBRADTRAN_V2_DIR
for the directory that contains compiled libRadtran (the directory should containbin/
,lib/
,src/
etc.).For example, if you are using
bash
shell, add the following line to the shell source file (e.g.,~/.bashrc
):export LIBRADTRAN_V2_DIR="/system/path/to/libradtran/v2.0.1"
When the installation processes are complete,
er3t.rtm.lrt
can be used to perform IPA radiance/irradiance simulation (details seeexamples/00_er3t_lrt.py
).
Tip
If you encountered any error, please feel free to reach out at Discord SUPPORT/libradtran for community support.
(optional) Install SHDOM
Unavailable yet (under development)
EaR³T Python Package - er3t
Warning
You will need to have the dependency steps 1 and 2 completed for accessing/processing satellite data.
Warning
You will need to have the dependency steps 1 and 3 completed for running radiative transfer simulations.
Open a terminal, type in the following
git clone https://github.com/hong-chen/er3t.git
Under newly cloned
er3t/
, where it containser3t-env.yml
, type in the followingconda env create -f er3t-env.yml conda activate er3t
A Python package version reference list (available to Mac and Linux users) is provided for diagnosing dependency version conflicts.
Under newly cloned
er3t/
, where it containsinstall.sh
, type in the followingbash install.sh
If
install.sh
fails to download the data from Google Drive for any reason, you can download the required data manually from here.After you download the file (
er3t-data.tar.gz
), put it underer3t/
, where it containsinstall.sh
, then run the commandbash install.sh
through a terminal again.
Tip
If you encountered any error, please feel free to reach out at Discord SUPPORT/installation for community support.