To use this program, follow these steps:
* Package ID: knb-lter-vcr.47.5;
* Cataloging System:VCR;
* Data set title: Morphometry of Atlantic Barrier Islands, Lagoons and Marshes;
* Data set creator: Dr. Bruce Hayden - ;
* Metadata Provider: - Virginia Coast Reserve Long-Term Ecological Research Project ;
* Contact: Dr. Bruce Hayden - - bph@virginia.edu;
* Contact: - Information manager - Virginia Coast Reserve Long-Term Ecological Research Project - jporter@lternet.edu;
Title1 ' Morphometry of Atlantic Barrier Islands, Lagoons and Marshes' ;
/* You should replace 'PUT-LOCAL-PATH-TO-DATA-FILE-HERE' (below) with the appropriate path;
to your data file (e.g., c:\mydata\datafile.txt). If you want to create a permanent SAS dataset, replace the WORK. specification
in the DATA statement (and SET statement in section for range checking) with a valid SAS Library reference. */
DATA WORK.data1;
%let _EFIERR_ = 0; /* set the ERROR detection macro variable */
infile 'PUT-LOCAL-PATH-TO-DATA-FILE-HERE' delimiter=","
TRUNCOVER DSD lrecl=32767 ;
input NAME
LENGTH
LAGOON_AREA
MARSH_PERCENT
COMPLEXITY
MEAN_DIST
MAX_DIST
MIN_DIST
MAX_DEPTH
FRINGE
SCATTTERED
CONTINUOUS
NORTH_END
SOUTH_END
Area_Marsh_land
TOTAL_AREA
MARSH_LAND_PERCENT
NUM_MARGINS
;
if _ERROR_ then call symputx('_EFIERR_',1); /* set ERROR detection macro variable */
LABEL NAME ='Name of the barrier island reach-' ;
LABEL LENGTH ='Length of the barrier island-km' ;
LABEL LAGOON_AREA ='Lagoon area behind island-km^2' ;
LABEL MARSH_PERCENT ='% of lagoon surface in marsh-%' ;
LABEL COMPLEXITY ='Marsh complexity-none' ;
LABEL MEAN_DIST ='Mean distance from barrier island to mainland
-km' ;
LABEL MAX_DIST ='Maximum distance from barrier island to mainland-km' ;
LABEL MIN_DIST ='Minimum distance from barrier island to mainland-km' ;
LABEL MAX_DEPTH ='Maximu water depth of the lagoon-m' ;
LABEL FRINGE ='Presence of fringe marsh-' ;
LABEL SCATTTERED ='Presence of scattered marsh in lagoon-' ;
LABEL CONTINUOUS ='Presence of continuous marsh from island to mainland1-' ;
LABEL NORTH_END ='Coordinate for North end of island-km' ;
LABEL SOUTH_END ='Coordinate for South end of island-km' ;
LABEL Area_Marsh_land ='Area of marsh and land in lagoon-km^2' ;
LABEL TOTAL_AREA ='Total area behind barrier island-km^2' ;
LABEL MARSH_LAND_PERCENT ='% of marsh + land in lagoon-%' ;
LABEL NUM_MARGINS ='# of land-water margins crossed
-none' ;
/* Codes for FRINGE are:
'0' 'does not occur'
'1' 'did occur' .
*/
/* Codes for SCATTTERED are:
'0' 'did not occur'
'1' 'did occur' .
*/
/* Codes for CONTINUOUS are:
'0' 'did not occur'
'1' 'did occur' .
*/
run;
/* The analyses below are basic descriptions of the variables.
After testing, they should be replaced. */
PROC FREQ;
TABLES NAME;
PROC FREQ;
TABLES FRINGE;
PROC FREQ;
TABLES SCATTTERED;
PROC FREQ;
TABLES CONTINUOUS;
PROC MEANS;
VAR LENGTH ;
PROC MEANS;
VAR LAGOON_AREA ;
PROC MEANS;
VAR MARSH_PERCENT ;
PROC MEANS;
VAR COMPLEXITY ;
PROC MEANS;
VAR MEAN_DIST ;
PROC MEANS;
VAR MAX_DIST ;
PROC MEANS;
VAR MIN_DIST ;
PROC MEANS;
VAR MAX_DEPTH ;
PROC MEANS;
VAR NORTH_END ;
PROC MEANS;
VAR SOUTH_END ;
PROC MEANS;
VAR Area_Marsh_land ;
PROC MEANS;
VAR TOTAL_AREA ;
PROC MEANS;
VAR MARSH_LAND_PERCENT ;
PROC MEANS;
VAR NUM_MARGINS ;
RUN;
TITLE2 'Observations with one or more out of range values';
DATA bad1;
SET WORK.data1;
* List cases where data is out of range;
* Note: if no out of range cases are detected, the variable names will be listed, but no actual cases;
LENGTH BADVARS $ 255;
IF (BADVARS NE '');
PROC PRINT data=bad1;
RUN;