Skip to content

TSTool / Datastore Reference / Overview


Introduction

This reference section of the documentation provides information about datastores:

  • databases - must be accessible via ODBC/JDBC connection, typically through database driver software distributed with TSTool (support for additional database software can be added)
  • file databases - typically optimized for a use, such as HEC-DSS used with Army Corps and other software
  • files - simple files, including model files such as the State of Colorado's StateMod model
  • web services - SOAP and REST web services

A "datastore" is a data management component that saves time series and other data. TSTool originally used the term "input type" for some formats such as data files and HydroBase database. However, the newer "datastore" design has since been implemented to provide more flexibility in configuring data access. Newer databases and web services are treated as "datastores", whereas older files are treated as "input types". The "input type" notation is retained in the software, pending a full migration to datastores. Datastores and input types can be selected in the TSTool interface when browsing data. A software design goal is to move all input types to "file datastores" so that terminology is consistent.

Time series, tables, and other data objects can be read from datastores using Read commands. Some datastores can also be written to, using Write commands. Datastores containing time series have general characteristics that can be handled with general software features. For example time series identifier commands (TSIDs) are used to uniquely identify time series in a datastore and result in an automatic data read from the datastore. However, some datastores have specific characteristics that are difficult to support in a general way, in which case Read command parameters or datastore configuration properties are used to control software behavior.

Datastore List

The following datastores (and input types) are listed in alphabetical order by datastore name. Any datastores or other features that are obsolete may have already been removed from TSTool or may be removed in the future. If necessary, such features can be reimplemented as a plugin datastore and used on specific installations of TSTool.

Datastore (link to documentation) Technology Spatial Extent Contents Documentation Status
ColoradoHydroBaseRest Web service (REST) Colorado Historical and real-time data Migrated
Colorado SMS (legacy)
OBSOLETE - replaced with ColoradoHydroBaseRest web services
Database (SQL Server) Colorado Real-time data not yet migrated - no longer used
ColoradoWaterHBGuest
OBSOLETE - replaced with ColoradoHydroBaseRest web services
Web service (SOAP) Colorado Historical data Migrated - for reference
ColoradoWaterSMS
OBSOLETE - replaced with ColoradoHydroBaseRest web services
Web service (SOAP) Colorado Real-time data Migrated - for reference
DateValue File (text) No limit General time series format Migrated
Delft FEWS PI XML File (text) No limit Delft FEWS software file Migrated
GenericDatabase Database (any ODBC) No limit Any SQL database Migrated
HEC-DSS File File database (binary) No limit General time series database Migrated
HydroBase Database (SQL Server) Colorado Colorado water resources (datastore version) Migrated
HydroBase (legacy, input type version) Database (SQL Server) Colorado Colorado water resources (input type version) Use HydroBase datastore documentation.
HydroJSON File (text) No limit HydroJSON time series format Migrated
MODSIM File (text) No limit MODSIM modeling software data file Migrated
NRCS AWDB Web service (SOAP) USA Snow, reservoir, climate, other Migrated
NDFD
OBSOLETE - need new equivalent
File (text) No limit National Digital Forecast Database Migrated
NWS Card
OBSOLETE - NWS uses other formats
File (text) No limit General time series format (hour interval) Migrated
NWSRFS ESP Trace Ensemble
OBSOLETE
File (binary) No limit Ensembles of time series (hour interval) Migrated
NWSRFS FS5Files
OBSOLETE
File database (binary) No limit National Weather Service River Forecast System Migrated
RCC ACIS Web service (REST) USA Precipitation, temperature, other climate Migrated
Reclamation HDB Database (Oracle) USA Water resources Migrated
Reclamation Pisces Database (MySQL) USA Water resources Migrated
RiversideDB
OBSOLETE
Database (SQL Server) No limit Hydrologic modeling database. Has been removed from TSTool as of version 13
RiverWare File (text) No limit RiverWare modeling software data file Migrated
StateCU File (text) No limit StateCU modeling software data file Migrated
StateCUB - StateCU Output File (binary) No limit StateCU modeling software data file Migrated
StateMod File (text) No limit StateMod modeling software data file Migrated
StateModB - StateMod Output File (binary) No limit StateMod modeling software data file Migrated
USGS NWIS Daily Web service (REST) No limit Water and other data (day interval) Migrated
USGS NWIS Groundwater Web service (REST) No limit Groundwater and other data Migrated
USGS NWIS Instantaneous Web service (REST) No limit Water and other data (instantaneous interval) Migrated
USGS NWIS RDB File (text) No limit RDB format for USGS data (see USGS above) Migrated
WaterML File (text) No limit WaterML format for USGS data (see USGS above) Migrated
WaterML2 File (text) No limit WaterML format for USGS data (see USGS above) Migrated
WaterOneFlow
prototype
Web service (SOAP) No limit Web service for CUAHSI Migrated

Datastore Configuration

Datastores are configured using datastore configuration files, which are described in the specific appendix. The system/TSTool.cfg file located in the software installation folder provides properties to enable/disable datastores globally, which turns off software features (such as Commands menu for commands related to the datastore). A similar file can be created in users's files (.tstool/NN/system/TSTool.cfg) to configure TSTool for each major version.

Built-in (installation) datastore configuration files are located in the software installation system/datastores folder. User datastore configuration files are located in the .tstool/NN/datastores folder. The user configuration files override the installation configuration files. For example, the State of Colorado HydroBase datastore configuration file .tstool/13/datastores/HydroBase.cfg defining a datastore named HydroBase will override a similarly-named datastore in configuration file C:\Users\user\CDSS\TSTool-13.00.00\datastores\HydroBase.cfg. Note that the Name property in the datastore configuration file defines the name, not the file name. User datastore configuration files allow providing a more specific configuration for:

  • database version for HydroBase datastore database installed on user's computer
  • API key for ColoradoHydroBaseRest web services for the specific user
  • user-specific datastore files used by software developers

Use the View / Datastores menu in TSTool to view datastores that are enabled, in particular to review configuration errors and to see which configuration file was used for a datastore.

Use the Tools / Options menu in TSTool to change TSTool configuration properties. If necessary, edit configuration files with a text editor.