-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to README on how to setup PYTHONPATH and what scripts use depr…
…ecated units package. Small fixes to other python scripts so they run.
- Loading branch information
1 parent
862bb28
commit c8f627a
Showing
11 changed files
with
148 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,28 @@ | ||
# Install Python Dependencies | ||
The following instructions and dependecy files work for the core ICAR scripts. | ||
Tools in `make_domain.py` and ccsm, cesm, cmip, erai, and wrf directories will require Bunch and mygis packages as well. | ||
Tools in `make_domain.py` and ccsm, cesm, cmip, erai, and wrf directories will require the mygis packages as well. | ||
The Python script `ideal_linear.py` will require Nio to be installed with `pip install nio`. | ||
|
||
## Install With Conda | ||
## Setup Environment | ||
### Install With Conda | ||
```bash | ||
$ conda env create -f environment.yml --prefix /path/to/install/icar_env | ||
$ conda activate icar_env | ||
$ conda env config vars set PYTHONPATH=$(pwd)/lib:$PYTHONPATH | ||
|
||
reactivate environment, this will be saved for future use | ||
$ conda activate icar_env | ||
``` | ||
|
||
## Install With Pip | ||
### Install With Pip | ||
```bash | ||
$ pip install -r requirements.txt | ||
``` | ||
Make sure the `lib` directory is in the `PYTHONPATH`, add to `.bashrc` or other startup files for repeat use. | ||
```bash | ||
$ export PYTHONPATH=$(pwd)/lib:$PYTHONPATH | ||
``` | ||
|
||
|
||
## Deprecated Scripts | ||
The units package used in the `cmip/convert.py, cesm/bias_correct.py` and `gen_sounding.py` scripts has been deprecated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.