|
Name:
corrlist/shiftlist - Admin utilities to inventory data corrections or shifts from the database
Information:
These scripts were born out of the bugs that have cropped up in ADAPS related to data corrections and shifts. They retrieve the data corrections or shifts using a direct query of the database, and are thus useful if there is any question regarding what a user is seeing from within the ADAPS programs dc_edit and sv_edit or what is being used by primary computations.
Usage:
Example Output (corrlist):
agency_cd site_no dd_nu corr_nu aging start_dt end_dt expcd seq stage corr
--------- --------------- ----- -------- ----- -------------------- -------------------- ----- --- ------------ ------------
comment
--------------------------------------------------------------------------------------------------------------------------------
USGS 01010000 8 1 A 2001-10-01 04:00:00 2001-10-25 11:19:00 LINR 1 0 0
prorate -.01 from 10/25 to 1/8/02
USGS 01010000 8 1 A 2002-01-08 18:53:00 2002-08-13 14:17:00 LINR 1 0 -0.00999999978
DCP should have been reset -.04, not -.03
USGS 01010000 8 1 A 2002-08-13 14:18:00 2002-10-01 03:59:00 LINR 1 0 -0.00999999978
hold on corr. thru year
USGS 01010000 8 2 A 2001-10-01 04:00:00 2002-04-10 03:59:00 LINR 1 0 0
no corrections needed
USGS 01010000 8 2 A 2002-04-10 04:00:00 LINR 1 0 0
prorate -.03 due to orifice movement over rise
USGS 01010000 8 2 A 2002-04-13 04:00:00 2002-08-13 14:17:00 LINR 1 0 -0.0299999993
DCP reset on 8/13 at 1017
Script Language:
ksh, accessing the database through tsql statements
Original Author(s): Scott Barthaolma, NWIS
Known Problems/Limitations/Need Improvements:
Installation:
This script is part of the OSW Scripts Installation package and should be installed as part of that package. Users needing the script outside of the package should send email to GS-W OSW Scripts@usgs.gov.
NWIS 5.00 OSW Scripts package installation instructions:
http://water.usgs.gov/usgs/osw/adaps/OSW_scripts_pkg.5.00.html
Latest Version Release Notes:
Shiftlist version 5.00: Included as part of OSW Scripts package for NWIS 5.00+
-updated for NWIS 5.00+ releases (not compatible with NWSI 4.11 or prior)