To use this program, follow these steps:
Comment Package ID: knb-lter-vcr.7.4 Cataloging System:VCR.
Comment Data set title: LTER hurricane record for the Virginia Coast Reserve..
Comment Data set creator: Dr. Bruce Hayden -
Comment Metadata Provider: - Virginia Coast Reserve Long-Term Ecological Research Project
Comment Contact: Dr. Bruce Hayden - - bph@virginia.edu
Comment Contact: Dr. Bruce Hayden - - bph@virginia.edu
Comment Contact: - Information manager - Virginia Coast Reserve Long-Term Ecological Research Project - jporter@lternet.edu
Title ' LTER hurricane record for the Virginia Coast Reserve.' .
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=
YEAR 0-3 F4.0 MONTH 9-10 F2.0 DAY 16-17 F2.0 CLASS 23-24 A TRACK 29-29 A CROSS 35-44 A NAME 48-84 A .
execute.
VAR LABELS YEAR 'Year of occurence of the storm- none' .
VAR LABELS MONTH 'Month of occurrence of the storm- none' .
VAR LABELS DAY 'Day in the month the storm occurred- none' .
VAR LABELS CLASS 'Classification of the storm based on wind speed- ' .
VAR LABELS TRACK 'The path of the storm- ' .
VAR LABELS CROSS 'Coastal location of storm crossing- ' .
VAR LABELS NAME 'Name of the storm- ' .
VALUE LABELS CLASS
'EX' 'Extratropical - No longer a tropical storm (associated with fronts)'
'H' 'Hurricane (72 mph or greater)'
'TS' 'Tropical Storm (less than 72 miles per hour)' .
VALUE LABELS TRACK
'A' 'Along the shore track. Produces storm surge.'
'I' 'Inland of Virginia Coast Reserve'
'L' 'Landfall: produces storm surge'
'O' 'Track Offshore: little storm surge if any' .
comment The analyses below are basic descriptions of the variables. After testing, they should be replaced.
Frequencies variables=CLASS /order=analysis.
Frequencies variables=TRACK /order=analysis.
Frequencies variables=CROSS /order=analysis.
Frequencies variables=NAME /order=analysis.
Descriptives variables=YEAR .
Descriptives variables=MONTH .
Descriptives variables=DAY .
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(MONTH)) AND (MONTH LT 1)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "MONTH","-min").
IF ((NOT MISSING(MONTH)) AND (MONTH GT 12)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "MONTH","-max").
IF ((NOT MISSING(DAY)) AND (DAY LT 1)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "DAY","-min").
IF ((NOT MISSING(DAY)) AND (DAY GT 31)) BADVARS=CONCAT(RTRIM(BADVARS)," ", "DAY","-max").
SELECT IF (BADVARS NE "").
LIST VARIABLES=ALL.
Execute.