This repository contains the source code for the StateCU consumptive use model. StateCU is part of Colorado's Decision Support Systems (CDSS). Open source CDSS is referred to as OpenCDSS. CDSS is supported by the Colorado Water Conservation Board and Colorado Division of Water Resources.
The developer documentation and guidelines will be updated as the development environment is used.
- Background
- Repository Folder Structure
- Development Environment
- Compiling
- License
- Contributing
- Contact
- Release Notes
The StateCU software estimates crop consumptive use. Input for StateCU consists of locations (stations or structures), crop characteristics, crop acreage, irrigation method, climate data, and other data. Output is irrigation water requirement and other information, which can be used as input to the StateMod water allocation model and other analysis tools.
The following folder structure is used for repository files. It is assumed that the repository folder name is the same as the repository name.
cdss-app-statecu-fortran/ Repository folder.
build-util/ Useful utility scripts for software developers.
doc-dev-doxygen-project/ Doxygen project to auto-generate code documentation.
.git Git repository internal files (do not modify directly!).
.gitattributes Standard Git configuration file for repository properties.
.gitignore Standard Git configuration file for ignoring files.
.github Files used by GitHub, such as issues template.
LICENSE.md Software license.
README.md This file.
resources/ Various resources used by this project.
src/ StateCU source code.
main/ Source code for main program.
fortran/ Fortran source code for main program.
The following folder structure is recommended for top-level folders to organize OpenCDSS software projects and is consistent with other OpenCDSS projects. Top-level folders should be created as necessary.
C:\User\users\ Windows user files.
/home/user/ Linux user files.
cdss-dev/ Software for Colorado's Decision Support Systems.
StateCU/ Work related to the StateCU product.
git-repos/ Git repositories for StateCU.
---------- above line is recommended, below is required -----------------
cdss-app-statecu-fortran/ StateCU code and documentation repository (see above).
cdss-app-statecu-fortran-doc-dev/ StateCU developer documentation.
cdss-app-statecu-fortran-doc-user/ StateCU user documentation.
cdss-app-statecu-fortran-test/ StateCU tests.
Software for the development environment should be installed and configured as per the StateCU Developer Documentation.
The basic instructions to compile StateCU on the command line are as follows:
- Open a MSYS2 MinGW 64-bit terminal window.
- In that window, change to the main repository folder based on folder structure above.
- In that window, change to the source code folder:
cd src/main/fortran
- View
make
command targets:make help
- Compile StateCU using the
make
command:make statecu_prog
- The executable program will have a name similar to
statecu-14.0.0-gfortran-win-64bit.exe
on Windows andstatecu-14.0.0-gfortran-lin-64bit
on Linux. - Use the executable in testing.
The Eclipse Photran integrated development environment can be used to develop StateCU; however, this is not actively used or supported.
The software is licensed under GPL v3+. See the LICENSE.md file.
Contributions to this project can be submitted using the following options:
- StateCU software developers with commit privileges can write to this repository as per normal CDSS development protocols.
- Post an issue on GitHub with suggested change (preferred for small changes).
- Fork the repository, make changes, and do a pull request (preferred for large changes). Contents of the current master branch should be merged with the fork to minimize code review before committing the pull request.
The developers/maintainers for StateCU that actively monitor repository issues are listed below. Questions can be posted using the GitHub issues feature.
- @kelleythompson, Kelley Thompson, Colorado Division of Water Resources
- @macphersonbr, Brian Macpherson, Colorado Water Conservation Board
- Erin Wilson, Wilson Water Group (StateCU modeler)
- @smalers, Steve Malers, Open Water Foundation
Release note comments are currently included in the gcommon.inc
source file.