To use this program, follow these steps:
Comment Package ID: knb-lter-vcr.16.3 Cataloging System:VCR.
Comment Data set title: A study of water quality conditions in the tidal creeks of Northampton County, Vs.
Comment Data set creator: Luis Lagera -
Comment Metadata Provider: - Virginia Coast Reserve Long-Term Ecological Research Project
Comment Contact: Dr Luis Lagera - -
Comment Contact: - Information manager - Virginia Coast Reserve Long-Term Ecological Research Project - jporter@lternet.edu
Title ' A study of water quality conditions in the tidal creeks of Northampton County, Vs' .
Comment You should replace 'PUT-LOCAL-PATH-TO-DATA-FILE-HERE' (below) with the appropriate path.
Comment to your data file (e.g., c:\mydata\datafile.txt).
GET DATA /TYPE=TXT/
/ FILE="PUT-LOCAL-PATH-TO-DATA-FILE-HERE"
/ARRANGEMENT=Fixed
/VARIABLES=
DATE 4-11 A TIME 13-17 A SITEID 19-21 A SCTT 24-27 F SCTSL 30-33 F SCTCO 38-42 F MERCT 47-48 F RSAL 53-54 F DOT 57-60 F DO 63-66 F SCDEP 70-73 F WDEP 76-79 F WSPD 86-87 F WDIR 89-91 A AIRT 97-98 F CLCOV 101-103 A pH 107-110 F .
execute.
MISSING VALUES SCTT('99').
MISSING VALUES SCTSL('99').
MISSING VALUES SCTCO('99999').
MISSING VALUES MERCT('99').
MISSING VALUES RSAL('99').
MISSING VALUES DOT('99').
MISSING VALUES DO('99').
MISSING VALUES SCDEP('999').
MISSING VALUES WSPD('99').
MISSING VALUES AIRT('99').
MISSING VALUES pH('99').
VAR LABELS DATE 'date when meaurements were taken- ' .
VAR LABELS TIME 'time when measurements were taken- ' .
VAR LABELS SITEID 'site/station when measurements where taken- ' .
VAR LABELS SCTT 'water temperature- deg C' .
VAR LABELS SCTSL 'salinity (temperature compensated)- per 1000' .
VAR LABELS SCTCO 'conductivity of water sample- umhos/cm' .
VAR LABELS MERCT 'water temperature- deg C' .
VAR LABELS RSAL 'salinity- per 1000' .
VAR LABELS DOT 'water temperature- deg C' .
VAR LABELS DO 'dissolved oxygen- mg/l' .
VAR LABELS SCDEP 'Secchi disk depth- cm' .
VAR LABELS WDEP 'WDEP- none' .
VAR LABELS WSPD 'estimated wind speed- knots' .
VAR LABELS WDIR 'estimated wind direction- ' .
VAR LABELS AIRT 'air temperature- deg C' .
VAR LABELS CLCOV 'cloud cover- ' .
VAR LABELS pH 'pH of water sample- pH units' .
comment The analyses below are basic descriptions of the variables. After testing, they should be replaced.
Frequencies variables=DATE /order=analysis.
Frequencies variables=TIME /order=analysis.
Frequencies variables=SITEID /order=analysis.
Frequencies variables=WDIR /order=analysis.
Frequencies variables=CLCOV /order=analysis.
Descriptives variables=SCTT .
Descriptives variables=SCTSL .
Descriptives variables=SCTCO .
Descriptives variables=MERCT .
Descriptives variables=RSAL .
Descriptives variables=DOT .
Descriptives variables=DO .
Descriptives variables=SCDEP .
Descriptives variables=WDEP .
Descriptives variables=WSPD .
Descriptives variables=AIRT .
Descriptives variables=pH .
Execute.
COMMENT List cases where data is out of range.
COMMENT Note: if no out of range cases are detected, the variable names will be listed, but no actual cases.
TEMPORARY .
STRING BADVARS (A255).
IF ((NOT MISSING(SCTT)) AND (SCTT LT -5)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "SCTT","-min").
IF ((NOT MISSING(SCTT)) AND (SCTT GT 45)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "SCTT","-max").
IF ((NOT MISSING(SCTSL)) AND (SCTSL LT 0)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "SCTSL","-min").
IF ((NOT MISSING(SCTSL)) AND (SCTSL GT 40)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "SCTSL","-max").
IF ((NOT MISSING(SCTCO)) AND (SCTCO LT 00)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "SCTCO","-min").
IF ((NOT MISSING(SCTCO)) AND (SCTCO GT 51000)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "SCTCO","-max").
IF ((NOT MISSING(MERCT)) AND (MERCT LT -5)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "MERCT","-min").
IF ((NOT MISSING(MERCT)) AND (MERCT GT 45)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "MERCT","-max").
IF ((NOT MISSING(RSAL)) AND (RSAL LT 0)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "RSAL","-min").
IF ((NOT MISSING(RSAL)) AND (RSAL GT 45)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "RSAL","-max").
IF ((NOT MISSING(DO)) AND (DO LT 0)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "DO","-min").
IF ((NOT MISSING(DO)) AND (DO GT 20)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "DO","-max").
IF ((NOT MISSING(SCDEP)) AND (SCDEP LT 0)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "SCDEP","-min").
IF ((NOT MISSING(SCDEP)) AND (SCDEP GT 300)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "SCDEP","-max").
IF ((NOT MISSING(WDEP)) AND (WDEP LT 0)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "WDEP","-min").
IF ((NOT MISSING(WDEP)) AND (WDEP GT 10)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "WDEP","-max").
IF ((NOT MISSING(WSPD)) AND (WSPD LT 0)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "WSPD","-min").
IF ((NOT MISSING(WSPD)) AND (WSPD GT 40)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "WSPD","-max").
IF ((NOT MISSING(AIRT)) AND (AIRT LT -5)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "AIRT","-min").
IF ((NOT MISSING(AIRT)) AND (AIRT GT 37)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "AIRT","-max").
IF ((NOT MISSING(pH)) AND (pH LT 1)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "pH","-min").
IF ((NOT MISSING(pH)) AND (pH GT 14)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "pH","-max").
SELECT IF (BADVARS NE "").
LIST VARIABLES=ALL.
Execute.