Link to USGS home

setGeneric

Name:
setGeneric - Move all sensors that use a station ID as the serial number (and their readings) to the new generic sensors released with NWIS 4.10

This script was retired from active support in December 2011. Script was only designed to be used in NWIS 4.10 as a one time use script, so it is not longer supported as all WSC's have upgraded to as least NWIS 4.11. This page is available for historical reference only. Use of local versions of the old script without extensive testing is not recommended and the consequences are your own. If you feel this script was retired prematurely and would like to see it restored send email to GS-W OSW Scripts@usgs.gov.

Information:

Initially the ADAPS SiteVisit application required all sensors to have unique serial number. As the tracking of specific serial numbers was not recommended, many people used the station ID as a 'generic' serial number. In the version of SiteVisit released with NWIS 4.10 there are now true generic sensors (serial number 'generic') that can be used anywhere. This script was written to to facilitate the transfer of replacement of sensors and their readings that use the station ID serial number with true generic sensors.

Only sensors that use exactly the station ID are affected. If anything else in the serial number exists in addition to the station ID the sensor will be unchanged.

This script can only be run as user "nwis."

Usage:

To run type:

setGeneric.ksh

without arguments when logged in as user "nwis." You will be given a list of the sensors that will be changed and prompted for a confirmation. No other user input is required.

Installation:
The scripts can be installed by unzipping the files in any Sun directory and making sure the script is executable (chmod +x setGeneric.ksh).

Script Language:
ksh

Requirements:

Original Author(s): Scott Bartholoma, NWIS

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 7/16/10)
download setGeneric.zip

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