Link to USGS home
Surface Water Information--Data Scripts

adaps2excel

Name:
adaps2excel - Create an MS-Excel 2003 spreadsheet of ADAPS unit or daily values

Information:

This script creates one or more spreadsheets (Excel 2003) for selected data sets from ADAPS. It is useful for data requests or your own data analysis work.

Usage:

Simply type "adaps2excel" and answer the prompts. The user is initially prompted for retrieval of either daily values or computed unit values. Next is date range selection (by water year or with a specific date range.) Then the user is prompted to enter site numbers one by one. For each site entered the user then selects a data descriptor from the list provided. If daily values were requested there is then a final selection of the DV stat code(s) (max, min, mean, etc.) from a list of available stat codes for that station/DD. The user can continue to enter additional stations/DDs to do multiple retrievals at one time. All retrievals, however, are put into separate Excel files, including each DV statistic for a given station/DD (e.g. a man/min/mean retrieval will be put in three output files.)

Output files are named as follows:

siteID.dates.DD.uvdata.xls - computed UV retrievals
siteID.dates.DD.statcode.DVdata.xls - DV retrievals

Note: Identically named tab-delimited rdb rext fiels are also included. These can be manually imported into Excel version new than 2003 if Excel 2003 row/column limits are exceeded by the data.

Script Language:
ksh

Requirements:

Original Author(s): Wade Walker, Colorado WSC

Note the original author is noted on this page for the purposes of giving credit only. Please address questions/comments to OSW (GS-W OSW Scripts@usgs.gov).

Known Problems/Limitations/Need Improvements:

Installation:

Scripts:

Version 5.0: (posted 9/27/12)
—Updated for NWIS 5.0/Oracle
adaps2excel download (Zip file = 4.4K)

Back to Scripts

USGS Home Water Resources Biology Geography Geology Geospatial

Accessibility FOIA Privacy Policies and Notices

Take Pride in America logo USA.gov logo U.S. Department of the Interior | U.S. Geological Survey
URL: http://water.usgs.gov/usgs/osw/adaps/adaps2excel.html
Page Contact Information: USGS Office of Surface Water
Page Last Modified: Monday, 25-Feb-2013 09:42:14 EST