Link to USGS home
Surface Water Information--Data Scripts

Arkive

This script is not yet supported (and may never be), but is provided in the interim because many users may find it valuable. Questions about this script should be referred to the script author. The status of the script is noted.

Name:
Arkive - A utility to facilitate copying datalogger files to the ADAPS archival directory.

Status:
This is a pretty straightforward script. The only reason it is not supported is that each District that uses this script will like modify it slightly to add their own naming conventions, file paths, or other whistles and bells.

Information:

The NWIS directory structure includes a directory /usr/opt/nwis/data/to_tape that is used to store files for archival onto long-term storage tapes. For example, all data loaded through std_store is automatically copied into to_tape. This directory structure can also be used as a means to archive original datalogger files. This utility is one way to facilitate that by providing a mechanism to consistently label and move datalogger files into to_tape.

Specifically, this utility:

  1. Prompts for the file in the current directory that you want to sent to the 'to_tape' directory
  2. Checks to see if it has already been sent
  3. Prompts for the station number and data start date
  4. Copies to the to_tape directory under a file name using the station number and date (edlraw.station#.date)
  5. Appends an 'A' to the file name in the original directory to indicate that was archived to 'to_tape.'

In order to use the script, simply download and make it executable (chmod +x arkive). In order to make it usable by all users, it is recommended that it be installed on NWIS server, as in /usr/opt/nwis/local/util.

You will also need to decide on a directory structure for these files within to_tape. As written the files are copied to a directory called 'datalogger' under the to_tape directory. This directory does not exist but must be created. A District can either create this directory within to_tape, or decide on their own directory structure and change the script accordingly.

Script Language:
ksh

Requirements:
None.

Original Author(s): (for unsupport scripts, please address questions to the author)
Joel Johnson, (jdjohnsn@usgs.gov), Sacramento, California

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:

Scripts:

Version 1.0 (Posted 10/15/03):
arkive download (Zip file = 1.5K)

Back to Scripts
[an error occurred while processing this directive]