cdss-lib-dmi-nwsrfs-java
This repository contains Colorado's Decision Support Systems (CDSS) Java library for the National Weather Service River Forecast System (NWSRFS) database and file formats. This library will be phased out because the NWSRFS system is no longer used by the NWS. The library is hard-linked to TSTool to support working with NWSRFS data files; however this functionality is not core to CDSS. If necessary, the functionality can be added again as needed such as using plugin capabilities.
Eclipse is used for development and repositories currently contain Eclipse project files to facilitate setting up the Eclipse development environment. Development on library code usually occurs while developing an application such as TSTool, rather than the library alone, because software requirements come from application development.
See the following online resources:
- Colorado's Decision Support Systems
- OpenCDSS - currently hosted on the Open Water Foundation while the OpenCDSS server is being configured
- TSTool Developer Documentation - example of application that uses this library, currently hosted on the Open Water Foundation while the OpenCDSS server is being configured
See the following sections in this page:
- Repository Folder Structure
- Repository Dependencies
- Development Environment Folder Structure
- Version
- Contributing
- License
- Contact
Repository Folder Structure
The following are the main folders and files in this repository, listed alphabetically. See also the Development Environment Folder Structure for overall folder structure recommendations.
cdss-lib-dmi-nwsrfs-java/ Source code and development working files.
.classpath Eclipse configuration file.
.git/ Git repository folder (DO NOT MODIFY THIS except with Git tools).
.gitattributes Git configuration file for repository.
.gitignore Git configuration file for repository.
.project Eclipse configuration file.
bin/ Eclipse folder for compiled files (dynamic so ignored from repo).
conf/ Configuration files for installer build tools.
dist/ Folder used to build distributable installer (ignored from repo).
doc/ Working folder for Javadoc (contents ignored from repo).
externals/ Third-party libraries.
graphics/ Graphics used by software.
LICENSE.txt Library license file.
nbproject/ NetBeans project files (may be removed in the future).
README.md This file.
src/ Source code.
test/ Unit tests using JUnit.
Repository Dependencies
Repository dependencies fall into two categories as indicated below.
Repository Dependencies for this Repository
This library depends on other repositories listed in the following table. The repository contains Eclipse configuration files that describe the dependencies so that this repository and others can be cloned when setting up a development environment, with minimal additional configuration (for example see TSTool Developer documentation).
Repository | Description |
---|---|
cdss-lib-common-java |
Library of core utility code used by multiple repos. |
Repositories that Depend on this Repository
The following repositories are known to depend on this repository:
Repository | Description |
---|---|
cdss-app-tstool-main |
Main TSTool application code. |
cdss-lib-processor-ts-java |
Library of processing code used by TSTool. |
Development Environment Folder Structure
The following folder structure is recommended for software development. Top-level folders should be created as necessary. Repositories are expected to be on the same folder level to allow cross-referencing scripts in those repositories to work. TSTool is used as an example, and normally use of this repository will occur through development of the main CDSS applications. See the application's developer documentation for more information.
C:\Users\user\ Windows user home folder (typical development environment).
/home/user/ Linux user home folder (not tested).
/cygdrive/C/Users/user Cygdrive home folder (not tested).
cdss-dev/ Projects that are part of Colorado's Decision Support Systems.
TSTool/ TSTool product folder (will be similar for other applications).
eclipse-workspace/ Folder for Eclipse workspace, which references Git repository folders.
The workspace folder is not maintained in Git.
git-repos/ Git repositories for TSTool.
cdss-lib-dmi-nwsrfs-java/ This repository.
...others... See application developer documenation and README for full list.
Version
A version for the library is typically not defined. Instead, tags are used to cross-reference the library version with commit of application code such as TSTool. This allows checking out a version of the library consistent with an application version. This approach might need to change if the library is seen as an independent resource that is used by many third-party applications.
Contributing
Contributions to this project can be submitted using the following options:
- Software developers with commit privileges can write to this repository as per normal OpenCDSS development protocols.
- Post an issue on GitHub with suggested change. Provide information using the issue template.
- Fork the repository, make changes, and do a pull request. Contents of the current master branch should be merged with the fork to minimize code review before committing the pull request.
See also the OpenCDSS / protocols for each software application.
License
Copyright Colorado Department of Natural Resources.
The software is licensed under GPL v3+. See the LICENSE.md file. Because the code is being phased out, copyright/license notice has not been added to each source file.
Contact
See the OpenCDSS information for overall contacts and contacts for each software product.