Skip to content

Commit

Permalink
Merge pull request #53 from JGCRI/no-lfs
Browse files Browse the repository at this point in the history
remove git lfs and travis
  • Loading branch information
crvernon authored Apr 29, 2021
2 parents f743131 + 116e839 commit bb956d6
Show file tree
Hide file tree
Showing 77 changed files with 130 additions and 607 deletions.
8 changes: 0 additions & 8 deletions .gitattributes

This file was deleted.

10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

65 changes: 37 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,52 @@
[![DOI](https://zenodo.org/badge/88797535.svg)](https://zenodo.org/badge/latestdoi/88797535) [![Build Status](https://travis-ci.org/JGCRI/xanthos.svg?branch=master)](https://travis-ci.org/JGCRI/xanthos)
[![DOI](https://zenodo.org/badge/88797535.svg)](https://zenodo.org/badge/latestdoi/88797535)

# Xanthos
Xanthos is an open-source hydrologic model, written in Python, designed to quantify and analyze global water availability. Xanthos simulates historical and future global water availability on a monthly time step at a spatial resolution of 0.5 geographic degrees. Xanthos was designed to be extensible and used by scientists that study global water supply and work with the Global Change Analysis Model (GCAM). Xanthos uses a user-defined configuration file to specify model inputs, outputs and parameters. Xanthos has been tested using actual global data sets and the model is able to provide historical observations and future estimates of renewable freshwater resources in the form of total runoff, average streamflow, potential evapotranspiration, actual evapotranspiration, accessible water, hydropower potential, and more.

# Contact Us
For questions, technical supporting and user contribution, please contact:

Vernon, Chris R <Chris.Vernon@pnnl.gov>

Li, Xinya <Xinya.Li@pnnl.gov>

Link, Robert P <Robert.Link@pnnl.gov>

Hejazi, Mohamad I <Mohamad.Hejazi@pnnl.gov>
# Get Started with Xanthos
Set up Xanthos using the following steps:
1. Install Xanthos from GitHub using:
```bash
python -m pip install git+https://github.com/JGCRI/xanthos.git
```
2. Download the example data using the following in a Python prompt:
```python
import xanthos
# the directory that you want to download and extract the example data to
data_dir = "<my data download location>"
# download and unzip the package data to your local machine
xanthos.get_package_data(data_dir)
```
3. Setup your configuration file (.ini). Examples are located in the "example" directory that you just downloaded. Be sure to change the following variables to represent the local path to your example data: `RootDir`, `TempMinFile`, `PrecipitationFile`.
4. To run Xanthos:

```python
import xanthos
# the path and file name that my example configuration (.ini) file was downloaded to
config_file = '<path to my example config file>/pm_abcd_mrtm.ini'
# run Xanthos
xanthos.run_model(config_file)
```

# Setting up a Xanthos run
A detailed Wiki set up to describe how to set up a Xanthos run can be viewed here: https://github.com/JGCRI/xanthos/wiki/Tutorial-1:--Setting-up-a-Xanthos-run

# Notice
Xanthos currently supports both Python 2.7 and Python 3.3+, however future support for Python 2 is not guaranteed. This repository also uses the Git Large File Storage (LFS) extension (see https://git-lfs.github.com/ for details). Please run the following command before cloning if you do not already have Git LFS installed:
`git lfs install`.
# Available Modules
A detailed Wiki set up to describe available modules, as well as their associated configuration settings, can be viewed here: https://github.com/JGCRI/xanthos/wiki/Available-modules

# Xanthos 2 - Upgrades
With the ability to simulate historical and future global water availability on a monthly time step at a spatial resolution of 0.5 geographic degrees, Xanthos version 1.0 provided a solid foundation for continued advancements in global water dynamics science. The goal of Xanthos version 2 was to build upon previous investments by creating an accessible computing environment where core components of the model (potential evapotranspiration (PET), runoff generation, and river routing) could be interchanged or added to without having to start from scratch. Xanthos 2 utilizes a component-style architecture which enables researchers to quickly incorporate and test cutting-edge research in a stable modeling environment prebuilt with a diagnostics module. Major advancements for Xanthos 2.0 were also achieved by creating a more robust default configuration for the model that is now available to the scientific community. These advancements include the addition of: the Penman-Monteith PET module to capture the impacts of evolving land cover, the ABCD water balance module to account for groundwater recharge and discharge in runoff projections, improved water velocity considerations for the Modified River Transport Model (MRTM) routing module, a built-in differential evolution optimization module to calibrate ABCD parameters to modeled global runoff, and hydropower production assessment and potential capacity modules. The figure below demonstrates the optimization module’s ability to calibrate Xanthos 2 runoff to the complex Variable Infiltration Capacity (VIC) model runoff projections when forced by the same climate data. Xanthos can be calibrated against other land surface models and Earth system models.

![Xanthos to VIC](https://github.com/JGCRI/xanthos/blob/master/docs/xanthos2_to_vic_watch_basins.png)
Figure: Xanthos 2.0 performance when calibrated to the VIC model forced by WATCH observational climate data. Each point represents the mean annual runoff for each of the 235 river basins in GCAM.

# Get Started (Xanthos 2)
Set up Xanthos using the following steps:
1. This repository uses the Git Large File Storage (LFS) extension (see https://git-lfs.github.com/ for details). Please install GitLFS and run the following command before cloning if you do not already have Git LFS initialized:
`git lfs install`.
2. Clone Xanthos into your desired location `git clone https://github.com/JGCRI/xanthos.git`. Some Windows users have had better luck with `git lfs clone https://github.com/JGCRI/xanthos.git`
3. Make sure that `setuptools` is installed for your Python version. This is what will be used to support the installation of the Xanthos package.
4. From the directory you cloned Xanthos into run `python setup.py install` . This will install Xanthos as a Python package on your machine and install of the needed dependencies. If installing in an HPC environment, a community user advised that it is best to install the anaconda environment before running the installation command. HPC environments may also require the use of the `--user` flag in the install command to avoid permissions errors.
5. Setup your configuration file (.ini). Examples are located in the "example" directory. Be sure to change the root directory to the directory that holds your data (use the `xanthos/example` directory as an example).
6. If running Xanthos from an IDE: Be sure to include the path to your config file. See the "xanthos/example/example.py" script as a reference.
7. If running Xanthos from terminal: Run model.py found in xanthos/xanthos/model.py passing the full path to the config file as the only argument. (e.g., `python model.py <dirpath>/config.ini`).
# Contact Us
For questions, technical supporting and user contribution, please contact:

# Setting up a Xanthos run
A detailed Wiki set up to describe how to set up a Xanthos run can be viewed here: https://github.com/JGCRI/xanthos/wiki/Tutorial-1:--Setting-up-a-Xanthos-run
Chris Vernon <chris.vernon@pnnl.gov>

# Available Modules
A detailed Wiki set up to describe available modules, as well as their associated configuration settings, can be viewed here: https://github.com/JGCRI/xanthos/wiki/Available-modules
Zarrar Khan <zarrar.khan@pnnl.gov>
Binary file removed docs/InstallationRequirements.pdf
Binary file not shown.
Binary file modified docs/diag_basin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/flowchart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/structure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/workflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/xanthos2_to_vic_watch_basins.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 0 additions & 28 deletions example/example.py

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/ReadMe_Input_Data.txt

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/accessible_water/bfi_per_basin.csv

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/climate/tasmin_watch_monthly_degc_1971_2001.npy

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/diagnostics/wbm_qestimates.csv

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/diagnostics/wbmc_qestimates.csv

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/hydropower_actual/gridData.csv

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/hydropower_actual/resData_1593.csv

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/hydropower_actual/rule_curves_1593.npy

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/hydropower_actual/simulated_cap_by_country.csv

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/pet/penman_monteith/elev.npy

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/pet/penman_monteith/gcam_ET_para.csv

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/pet/penman_monteith/gcam_albedo.csv

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/pet/penman_monteith/gcam_lai.csv

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/pet/penman_monteith/gcam_laimax.csv

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/pet/penman_monteith/gcam_laimin.csv

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/pet/penman_monteith/lucc1901_2010_lump.npy

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/reference/BasinNames235.txt

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/reference/Grid_Areas_ID.csv

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/reference/Rgn32Names.csv

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/reference/basin.csv

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/reference/coordinates.csv

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/reference/country-names.csv

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/reference/country.csv

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/reference/region32_grids.csv

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/routing/mrtm/DRT_half_FDISTANCE_globe.txt

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/routing/mrtm/DRT_half_FDR_globe_bystr50.txt

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/routing/mrtm/velocity_half_degree.npy

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/runoff/abcd/pars_watch_1971_1990_decadal_lc.npy

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/runoff/gwam/Addit_water421.csv

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/runoff/gwam/Lakes_wo_casp.csv

This file was deleted.

3 changes: 0 additions & 3 deletions example/input/runoff/gwam/soil_moisture.csv

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit bb956d6

Please sign in to comment.