link to main US Geological Survey website

Prepared in Cooperation with Earth Surface Dynamics ProgramEffects of Climate Variability on American Drylands Project

U.S. Geological Survey
Open-File Report 2006-1101

Software for Reduction and Analysis of Daily Weather and Surface-Water Data:

Tools for Time Series Analysis of Precipitation, Temperature, and Streamflow Data

By Richard Hereford


thumbnail of example graph
Annual cycle of maximum temperature, 1949-1996, Furnace Creek, Death Valley National Park (from figure 6)

Downloadable Files


The software and source described in the User's Guide are downloadable from this website. The programs are executable files with the ".exe" extension. Source code is the sequence of Fortran language statements comprising the program. These files have the ".f90" extension and they can be opened with any text editor. The user can examine the source code to check the computations or to modify the program. If the program is modified, it must be recompiled with a Fortran 90/95 compiler. To run a program, open the program directory and double click on the executable file.


Each downloadable program directory, except the utility program Date_Calculator_v2, has an Example subdirectory containing data and solutions. In addition, program directories Annual_Cycle_v2, Day_Cli_Ann_v5.3, Month_from_Day_v2.1, and NCDC_v4 contain a routine (aaaTestOnYourSystem.bat) that tests the software on your system using data in the Example subdirectory. The input and output files are displayed in Notepad. Double click on the program file name (aaaTestOnYourSystem.bat) and follow the instructions on the console.

The examples include data files and, where appropriate, the batch files used to process multiple files. The processed files are also listed with the examples. These are easily identified because the file size is smaller, usually less than 30 kb, than the daily data files and the file names identify the accounting period of the output, i.e., "ANN" (annual cycle), "cal" (calendar year), cool (cool season), "mth (monthly table), "tmax" (maximum temperature), "tmin" (minimum temperature), "warm" (warm season), and "wy" (water year). The one exception to the size of the files is the file (DailyTable.txt) output by SetUpDailyTable, which is much larger than any of the input files. The examples for SetUpTable_v1.1 include the daily temperature (Temperature subdirectory), precipitation (WYPpt subdirectory), and streamflow (WYQw subdirectory) data that were processed with Day_Cli_Ann_v5.3. These files were then combined into tables using SetUpTable_v1.1 that are named "table[n]" where n is the name of the column selected for output.

Download the User's Guide as an 896-KB PDF file. A copy of this guide is also included in the software bundle linked below.

Download the software bundle as a7.9-MB Zip file. This file contains about 200 files and folders that total 53 MB when cuncompressed.

For questions about the content of this report, contact Richard Hereford

Version history

Download a current version of Adobe Reader for free

| Help | PDF help | USGS Publications main page | Western Open-File Reports for 2006 |
| Privacy Statement | Disclaimer | Accessibility | Western Earth Surface Processes Team |

| Department of the Interior | U.S. Geological Survey |
| Privacy Statement | Disclaimer | Accessibility |

This report is available only on the Web
| Department of the Interior | U.S. Geological Survey |
URL of this page:

Maintained by: Michael Diggles
Created: June 19, 2006
Last modified: June 19, 2006 (mfd)