-
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. README updated to say that the Nio package is not installed as a dependency here
- Loading branch information
1 parent
862bb28
commit e26251f
Showing
11 changed files
with
151 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,31 @@ | ||
# 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 | ||
|
||
set PYTHONPATH, this will be saved for future use by the environment | ||
$ conda env config vars set PYTHONPATH=$(pwd)/lib:$PYTHONPATH | ||
|
||
reactivate environment | ||
$ 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. | ||
The [Nio package](https://www.pyngl.ucar.edu/Nio.shtml) used in `create_geo_testfiles.py` is not installed as a dependency. |
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.