/\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

Table Creation Scripts for CASTNET Schema

Note: The following tables are actually materialized views:

TOTAL_DEPOSITION

NADP_ANNUAL

WET_CONCENTRATION_ANNUAL

OZONE_8HR_DMAX

NADP_SEASON

OZONE_W126

OZONE

OZONE_W126_MONTH

OZONE_8HR_AVG

MODEL_OUTPUT_QUARTER

MODEL_OUTPUT_ANNUAL

NADP_NTN

NADP_MDN

NADP_AIRMON

MODEL_OUTPUT_SEASON

See end of file for materialized view scripts

\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/

\--

\-- ASSUMED_FLOW (Table)

\--

\-- Row count:114

CREATE TABLE ASSUMED_FLOW

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

FLOW NUMBER(12,8) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_ASSUMED_FLOW

PRIMARY KEY

(SITE_ID)

);

COMMENT ON TABLE ASSUMED_FLOW IS \'Assumed hourly flow rates for each
site. Used by CASTNet Data Management Application.\';

COMMENT ON COLUMN ASSUMED_FLOW.UPDATE_DATE IS \'Date and time of last
record update\';

COMMENT ON COLUMN ASSUMED_FLOW.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN ASSUMED_FLOW.FLOW IS \'Assumed flow rate used to
calculate estimated atmospheric concentrations; lpm.\';

\--

\-- CALIBRATION_CRITERIA (Table)

\--

\-- Row count:16

CREATE TABLE CALIBRATION_CRITERIA

(

PARAMETER VARCHAR2(30 BYTE) NOT NULL,

CAL_MIN NUMBER(12,8) NULL,

CAL_MAX NUMBER(12,8) NULL,

VAL_MIN NUMBER(12,8) NULL,

VAL_MAX NUMBER(12,8) NULL,

CAL_CRITERIA_STRING VARCHAR2(50 BYTE) NULL,

VAL_CRITERIA_STRING VARCHAR2(50 BYTE) NULL,

PERCENT_DIFFERENCE NUMBER(1) NOT NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_CALIBRATION_CRITERIA

PRIMARY KEY

(PARAMETER)

);

COMMENT ON TABLE CALIBRATION_CRITERIA IS \'Calibration and validation
criteria for continuous data. Used by CASTNet Data Management
Application.\';

COMMENT ON COLUMN CALIBRATION_CRITERIA.VAL_MIN IS \'Minimum calibration
value according to CASTNet measurement criteria.\';

COMMENT ON COLUMN CALIBRATION_CRITERIA.VAL_MAX IS \'Maximum calibration
value according to CASTNet measurement criteria.\';

COMMENT ON COLUMN CALIBRATION_CRITERIA.CAL_CRITERIA_STRING IS
\'Calibration criteria text for report.\';

COMMENT ON COLUMN CALIBRATION_CRITERIA.VAL_CRITERIA_STRING IS
\'Validation criteria text for report.\';

COMMENT ON COLUMN CALIBRATION_CRITERIA.PERCENT_DIFFERENCE IS \'Indicates
that comparisons for the parameter are percent differences instead of
actual differences.\';

COMMENT ON COLUMN CALIBRATION_CRITERIA.UPDATE_DATE IS \'Date and time of
last record update\';

COMMENT ON COLUMN CALIBRATION_CRITERIA.PARAMETER IS \'Parameter with
which minimum and maximum calibration and validation values are
associated.\';

COMMENT ON COLUMN CALIBRATION_CRITERIA.CAL_MIN IS \'Minimum calibration
value according to CASTNet field calibration criteria.\';

COMMENT ON COLUMN CALIBRATION_CRITERIA.CAL_MAX IS \'Maximum calibration
value according to CASTNet field calibration criteria.\';

\--

\-- CALIBRATION_SUMMARY (Table)

\--

\-- Dependencies:

\-- CALIB_UACODE_CD (Table)

\--

\-- Row count:5964

CREATE TABLE CALIBRATION_SUMMARY

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

CALIBRATION_DATE DATE NOT NULL,

UA_CODE VARCHAR2(1 BYTE) NOT NULL,

TEMP_STD_ZERO NUMBER(12,8) NULL,

TEMP_STD_AMBIENT NUMBER(12,8) NULL,

TEMP_STD_MAXERR NUMBER(12,8) NULL,

TEMP_SENSOR_ZERO NUMBER(12,8) NULL,

TEMP_SENSOR_AMBIENT NUMBER(12,8) NULL,

TEMP_SENSOR_MAXERR NUMBER(12,8) NULL,

DTEMP_SENSOR_ZERO NUMBER(12,8) NULL,

DTEMP_SENSOR_AMBIENT NUMBER(12,8) NULL,

DTEMP_SENSOR_MAXERR NUMBER(12,8) NULL,

RH_STD_ABOVE85 NUMBER(12,8) NULL,

RH_STD_BELOW50 NUMBER(12,8) NULL,

RH_STD_OTHER NUMBER(12,8) NULL,

RH_SENSOR_ABOVE85 NUMBER(12,8) NULL,

RH_SENSOR_BELOW50 NUMBER(12,8) NULL,

RH_SENSOR_OTHER NUMBER(12,8) NULL,

SR_STD_MEAN NUMBER(11) NULL,

SR_SENSOR_MEAN NUMBER(11) NULL,

WS_STD_BELOW5 NUMBER(12,8) NULL,

WS_STD_ABOVE5 NUMBER(12,8) NULL,

WS_STD_MAXERR NUMBER(12,8) NULL,

WS_SENSOR_BELOW5 NUMBER(12,8) NULL,

WS_SENSOR_ABOVE5 NUMBER(12,8) NULL,

WS_SENSOR_MAXERR NUMBER(12,8) NULL,

WD_ACTUAL_NORTH NUMBER(11) NULL,

WD_ACTUAL_EAST NUMBER(11) NULL,

WD_ACTUAL_SOUTH NUMBER(11) NULL,

WD_ACTUAL_WEST NUMBER(11) NULL,

WD_SENSOR_NORTH NUMBER(11) NULL,

WD_SENSOR_EAST NUMBER(11) NULL,

WD_SENSOR_SOUTH NUMBER(11) NULL,

WD_SENSOR_WEST NUMBER(11) NULL,

PRECIP_INCHES NUMBER(12,8) NULL,

WET_SENSOR_DRY NUMBER(12,8) NULL,

WET_SENSOR_WET NUMBER(12,8) NULL,

FLOW_STD NUMBER(12,8) NULL,

FLOW_SLPM NUMBER(12,8) NULL,

O3_SLOPE NUMBER(12,8) NULL,

O3_INTERCEPT NUMBER(12,8) NULL,

O3_CORR_COEFF NUMBER(12,8) NULL,

O3_MAX_PCT_DIFF NUMBER(12,8) NULL,

MAGNETIC_DECLINATION VARCHAR2(30 BYTE) NULL,

COMMENTS VARCHAR2(255 BYTE) NULL,

TECHNICIAN VARCHAR2(3 BYTE) NULL,

REVIEWER VARCHAR2(3 BYTE) NULL,

REVIEW_DATE DATE NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_CALIBRATION_SUMMARY

PRIMARY KEY

(SITE_ID, CALIBRATION_DATE, UA_CODE),

CONSTRAINT FK_CALSUM_UACODE

FOREIGN KEY (UA_CODE)

REFERENCES CALIB_UACODE_CD (CODE)

);

COMMENT ON TABLE CALIBRATION_SUMMARY IS \'Summary of calibration results
from the semi-annual calibrations of EPA sites conducted by Field
Operations personnel.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.UPDATE_DATE IS \'Date and time of
last record update.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.SITE_ID IS \'Site identification
code.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.CALIBRATION_DATE IS \'Date of
calibration.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.UA_CODE IS \'Designates values as
unadjusted or adjusted.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.TEMP_STD_ZERO IS \'Temperature
standard reading at zero degrees; degrees C.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.TEMP_STD_AMBIENT IS \'Temperature
standard reading for ambient conditions; degrees C.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.TEMP_STD_MAXERR IS \'Temperature
standard reading for conditions where maximum error was found; degrees
C.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.TEMP_SENSOR_ZERO IS \'Temperature
site sensor reading at zero degrees; degrees C.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.TEMP_SENSOR_AMBIENT IS
\'Temperature site sensor reading for ambient conditions; degrees C.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.TEMP_SENSOR_MAXERR IS
\'Temperature site sensor reading for conditions where maximum error was
found; degrees C.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.DTEMP_SENSOR_ZERO IS \'Delta
temperature site sensor reading at zero degrees; degrees C.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.DTEMP_SENSOR_AMBIENT IS \'Delta
temperature site sensor reading for ambient conditions; degrees C.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.DTEMP_SENSOR_MAXERR IS \'Delta
temperature site sensor reading for conditions where maximum error was
found; degrees C.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.RH_STD_ABOVE85 IS \'Relative
humidity standard reading for conditions above 85 percent; %.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.RH_STD_BELOW50 IS \'Relative
humidity standard reading for conditions below 50 percent; %.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.RH_STD_OTHER IS \'Relative
humidity standard reading for conditions where maximum error was found;
%.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.RH_SENSOR_ABOVE85 IS \'Relative
humidity site sensor reading for conditions above 85 percent; %.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.RH_SENSOR_BELOW50 IS \'Relative
humidity site sensor reading for conditions below 50 percent; %.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.RH_SENSOR_OTHER IS \'Relative
humidity site sensor reading for conditions where maximum error was
found; %.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.SR_STD_MEAN IS \'Mean of solar
radiation standard readings; watt/square meter.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.SR_SENSOR_MEAN IS \'Mean of solar
radiation site sensor readings; watt/square meter.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.WS_STD_BELOW5 IS \'Wind speed
standard reading for conditions below 5 m/sec; m/sec.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.WS_STD_ABOVE5 IS \'Wind speed
standard reading for conditions above 5 m/sec; m/sec.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.WS_STD_MAXERR IS \'Wind speed
standard reading for conditions where maximum error was found; m/sec.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.WS_SENSOR_BELOW5 IS \'Wind speed
site sensor reading for conditions below 5 m/sec; m/sec.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.WS_SENSOR_ABOVE5 IS \'Wind speed
site sensor reading for conditions above 5 m/sec; m/sec.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.WS_SENSOR_MAXERR IS \'Wind speed
site sensor reading for conditions where maximum error was found;
m/sec.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.WD_ACTUAL_NORTH IS \'Actual wind
direction measured for conditions near due north, assumed to be 360
prior to August 2001; degrees.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.WD_ACTUAL_EAST IS \'Actual wind
direction measured for conditions near due east; degrees.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.WD_ACTUAL_SOUTH IS \'Actual wind
direction measured for conditions near due south, assumed to be 180
prior to August 2001; degrees.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.WD_ACTUAL_WEST IS \'Actual wind
direction measured for conditions near due west; degrees.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.WD_SENSOR_NORTH IS \'Wind
direction measured by site sensor for conditions near due north;
degrees.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.WD_SENSOR_EAST IS \'Wind direction
measured by site sensor for conditions near due east; degrees.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.WD_SENSOR_SOUTH IS \'Wind
direction measured by site sensor for conditions near due south;
degrees.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.WD_SENSOR_WEST IS \'Wind direction
measured by site sensor for conditions near due west; degrees.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.PRECIP_INCHES IS \'Precipitation
corresponding to 50 tips of the tipping bucket, 0.50 inches is the
expected value; inches.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.WET_SENSOR_DRY IS \'Wetness value
when sensor is dry, 0.0 is the expected value.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.WET_SENSOR_WET IS \'Wetness value
when sensor is wet, 1.0 is the expected value.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.FLOW_STD IS \'Flow rate of the
flow pump; m/sec.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.FLOW_SLPM IS \'Flow rate site
sensor reading; m/sec.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.O3_SLOPE IS \'Slope of best fit
line between calibration points.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.O3_INTERCEPT IS \'Y-intercept of
best fit line between calibration points.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.O3_CORR_COEFF IS \'Correlation
coefficient of best fit line between calibration points.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.O3_MAX_PCT_DIFF IS \'Maximum
percent difference between calibration points.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.MAGNETIC_DECLINATION IS \'Magnetic
declination of the site.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.COMMENTS IS \'Comments provided by
the calibration technician or reviewer concerning calibration
findings.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.TECHNICIAN IS \'Field operations
technician who performed the calibration.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.REVIEWER IS \'Field operations
representative who reviewed the calibration findings.\';

COMMENT ON COLUMN CALIBRATION_SUMMARY.REVIEW_DATE IS \'Date calibration
findings were reviewed.\';

\--

\-- CALIB_UACODE_CD (Table)

\--

\-- Row count:2

CREATE TABLE CALIB_UACODE_CD

(

CODE VARCHAR2(10 BYTE) NOT NULL,

DESCRIPTION VARCHAR2(255 BYTE) NULL,

VALID CHAR(1 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_CALIB_UACODE_CD

PRIMARY KEY

(CODE)

);

COMMENT ON TABLE CALIB_UACODE_CD IS \'Foreign key table for UACODE in
CALIBRATION_SUMMARY\';

COMMENT ON COLUMN CALIB_UACODE_CD.UPDATE_DATE IS \'Date and time of last
record update\';

COMMENT ON COLUMN CALIB_UACODE_CD.CODE IS \'Code\';

COMMENT ON COLUMN CALIB_UACODE_CD.DESCRIPTION IS \'Description of
code.\';

COMMENT ON COLUMN CALIB_UACODE_CD.VALID IS \'Does this code indicate a
valid (V) or invalid (I) data record?\';

\--

\-- CODES_OTHER_CD (Table)

\--

\-- Row count:315

CREATE TABLE CODES_OTHER_CD

(

TABLE_NAME VARCHAR2(25 BYTE) NOT NULL,

COLUMN_NAME VARCHAR2(25 BYTE) NOT NULL,

CODE VARCHAR2(10 BYTE) NOT NULL,

DESCRIPTION VARCHAR2(255 BYTE) NULL,

VALID CHAR(1 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_CODES_OTHER_CD

PRIMARY KEY

(TABLE_NAME, COLUMN_NAME, CODE)

);

COMMENT ON TABLE CODES_OTHER_CD IS \'Data quality codes used in other
tables which are not used in foreign key enforcement\';

COMMENT ON COLUMN CODES_OTHER_CD.UPDATE_DATE IS \'Date and time of last
record update\';

COMMENT ON COLUMN CODES_OTHER_CD.TABLE_NAME IS \'Table name.\';

COMMENT ON COLUMN CODES_OTHER_CD.COLUMN_NAME IS \'Column name.\';

COMMENT ON COLUMN CODES_OTHER_CD.CODE IS \'Code\';

COMMENT ON COLUMN CODES_OTHER_CD.DESCRIPTION IS \'Description of
code.\';

COMMENT ON COLUMN CODES_OTHER_CD.VALID IS \'Does this code indicate a
valid (V) or invalid (I) data record?\';

\--

\-- DAILY_UPDATE (Table)

\--

\-- Row count:250

CREATE TABLE DAILY_UPDATE

(

UPDATE_DATE DATE NULL,

STAGE VARCHAR2(100 BYTE) NULL,

MESSAGE NUMBER NULL

);

\--

\-- DAYNIGHT_FLOW (Table)

\--

\-- Dependencies:

\-- METDA_F_CD (Table)

\--

\-- Row count:68470

CREATE TABLE DAYNIGHT_FLOW

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

DATE_TIME DATE NOT NULL,

DAY_FLOW NUMBER(12,8) NULL,

DAY_FLOW_F VARCHAR2(1 BYTE) NULL,

NIGHT_FLOW NUMBER(12,8) NULL,

NIGHT_FLOW_F VARCHAR2(1 BYTE) NULL,

QA_CODE VARCHAR2(2 BYTE) NULL,

UPDATE_DATE DATE DEFAULT sysdate NULL,

CONSTRAINT PK_DAYNIGHT_FLOW

PRIMARY KEY

(SITE_ID, DATE_TIME),

CONSTRAINT FK_DAYNIGHT_DAYF

FOREIGN KEY (DAY_FLOW_F)

REFERENCES METDA_F_CD (CODE),

CONSTRAINT FK_DAYNIGHT_NIGHTF

FOREIGN KEY (NIGHT_FLOW_F)

REFERENCES METDA_F_CD (CODE)

);

COMMENT ON TABLE DAYNIGHT_FLOW IS \'Day and night hourly flow data
associated with day/night filter pack measurements.\';

COMMENT ON COLUMN DAYNIGHT_FLOW.SITE_ID IS \'Site identification
code.\';

COMMENT ON COLUMN DAYNIGHT_FLOW.DATE_TIME IS \'Date and time sample
collection began, Local Standard Time; mm/dd/yyyy hh:mm:ss.\';

COMMENT ON COLUMN DAYNIGHT_FLOW.DAY_FLOW IS \'Flow rate associated with
daytime operation of day and night sampling system; lpm.\';

COMMENT ON COLUMN DAYNIGHT_FLOW.DAY_FLOW_F IS \'Data quality code for
DAY_FLOW.\';

COMMENT ON COLUMN DAYNIGHT_FLOW.NIGHT_FLOW IS \'Flow rate associated
with nighttime operation of day and night sampling system; lpm.\';

COMMENT ON COLUMN DAYNIGHT_FLOW.NIGHT_FLOW_F IS \'Data quality code for
NIGHT_FLOW.\';

COMMENT ON COLUMN DAYNIGHT_FLOW.QA_CODE IS \'Quality assurance level of
the record. (see QAPP for definition of quality assurance levels)\';

COMMENT ON COLUMN DAYNIGHT_FLOW.UPDATE_DATE IS \'Date and time of last
record update.\';

\--

\-- DRYCHEM (Table)

\--

\-- Dependencies:

\-- DRYCH_F_CD (Table)

\-- DRYCH_TEMPSRCE_CD (Table)

\-- DRYCH_TYPE_CD (Table)

\-- METDA_QACODE_CD (Table)

\-- SAMPLE_REFERENCE (Table)

\--

\-- Row count:74259

CREATE TABLE DRYCHEM

(

LAB_KEY VARCHAR2(15 BYTE) NOT NULL,

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

TYPE VARCHAR2(1 BYTE) NOT NULL,

DATEON DATE NOT NULL,

DATEOFF DATE NOT NULL,

TSO4 NUMBER(16,4) NULL,

TSO4_F VARCHAR2(1 BYTE) NULL,

TNO3 NUMBER(16,4) NULL,

TNO3_F VARCHAR2(1 BYTE) NULL,

TNH4 NUMBER(16,4) NULL,

TNH4_F VARCHAR2(1 BYTE) NULL,

CA NUMBER(16,4) NULL,

CA_F VARCHAR2(1 BYTE) NULL,

MG NUMBER(16,4) NULL,

MG_F VARCHAR2(1 BYTE) NULL,

NA NUMBER(16,4) NULL,

NA_F VARCHAR2(1 BYTE) NULL,

K NUMBER(16,4) NULL,

K_F VARCHAR2(1 BYTE) NULL,

CL NUMBER(16,4) NULL,

CL_F VARCHAR2(1 BYTE) NULL,

NSO4 NUMBER(16,4) NULL,

NSO4_F VARCHAR2(1 BYTE) NULL,

NHNO3 NUMBER(16,4) NULL,

NHNO3_F VARCHAR2(1 BYTE) NULL,

WSO2 NUMBER(16,4) NULL,

WSO2_F VARCHAR2(1 BYTE) NULL,

WNO3 NUMBER(16,4) NULL,

WNO3_F VARCHAR2(1 BYTE) NULL,

TOTAL_SO2 NUMBER(16,4) NULL,

TOTAL_NO3 NUMBER(16,4) NULL,

FLOW_VOLUME NUMBER(16,4) NULL,

FLOW_VOLUME_F VARCHAR2(1 BYTE) NULL,

VALID_HOURS NUMBER(16,4) NULL,

VALID_HOURS_F VARCHAR2(1 BYTE) NULL,

COMMENT_CODES VARCHAR2(50 BYTE) NULL,

STD2LOCAL_CF NUMBER(12,8) NULL,

TEMP_SOURCE VARCHAR2(2 BYTE) NULL,

QA_CODE VARCHAR2(2 BYTE) NULL,

UPDATE_DATE DATE DEFAULT NULL NOT NULL,

CONSTRAINT CK_DRYCHEM_TYPE

CHECK (TYPE IN (\'A\',\'B\',\'C\',\'D\',\'N\')),

CONSTRAINT PK_DRYCHEM

PRIMARY KEY

(LAB_KEY),

CONSTRAINT FK_DRYCHEM_VALHOURSF

FOREIGN KEY (VALID_HOURS_F)

REFERENCES DRYCH_F_CD (CODE),

CONSTRAINT FK_DRYCHEM_WNO3F

FOREIGN KEY (WNO3_F)

REFERENCES DRYCH_F_CD (CODE),

CONSTRAINT FK_DRYCHEM_WSO2F

FOREIGN KEY (WSO2_F)

REFERENCES DRYCH_F_CD (CODE),

CONSTRAINT FK_DRY_QACODE

FOREIGN KEY (QA_CODE)

REFERENCES METDA_QACODE_CD (CODE),

CONSTRAINT REFSAMPLE_REFERENCE233

FOREIGN KEY (LAB_KEY)

REFERENCES SAMPLE_REFERENCE (LAB_KEY) DISABLE,

CONSTRAINT FK_DRYCHEM_NAF

FOREIGN KEY (NA_F)

REFERENCES DRYCH_F_CD (CODE),

CONSTRAINT FK_DRYCHEM_CAF

FOREIGN KEY (CA_F)

REFERENCES DRYCH_F_CD (CODE),

CONSTRAINT FK_DRYCHEM_CLF

FOREIGN KEY (CL_F)

REFERENCES DRYCH_F_CD (CODE),

CONSTRAINT FK_DRYCHEM_FLOWVOLF

FOREIGN KEY (FLOW_VOLUME_F)

REFERENCES DRYCH_F_CD (CODE),

CONSTRAINT FK_DRYCHEM_KF

FOREIGN KEY (K_F)

REFERENCES DRYCH_F_CD (CODE),

CONSTRAINT FK_DRYCHEM_MGF

FOREIGN KEY (MG_F)

REFERENCES DRYCH_F_CD (CODE),

CONSTRAINT FK_DRYCHEM_NHNO3F

FOREIGN KEY (NHNO3_F)

REFERENCES DRYCH_F_CD (CODE),

CONSTRAINT FK_DRYCHEM_NSO4F

FOREIGN KEY (NSO4_F)

REFERENCES DRYCH_F_CD (CODE),

CONSTRAINT FK_DRYCHEM_TEMPSOURCE

FOREIGN KEY (TEMP_SOURCE)

REFERENCES DRYCH_TEMPSRCE_CD (CODE),

CONSTRAINT FK_DRYCHEM_TNH4F

FOREIGN KEY (TNH4_F)

REFERENCES DRYCH_F_CD (CODE),

CONSTRAINT FK_DRYCHEM_TNO3F

FOREIGN KEY (TNO3_F)

REFERENCES DRYCH_F_CD (CODE),

CONSTRAINT FK_DRYCHEM_TSO4F

FOREIGN KEY (TSO4_F)

REFERENCES DRYCH_F_CD (CODE),

CONSTRAINT FK_DRYCHEM_TYPE

FOREIGN KEY (TYPE)

REFERENCES DRYCH_TYPE_CD (CODE)

);

COMMENT ON TABLE DRYCHEM IS \'Weekly ambient concentrations of SO2 and
HNO3 gases, and SO4, NO3, NH4 and base cation concentrations for
particles as measured by open-face filter packs.\';

COMMENT ON COLUMN DRYCHEM.NSO4 IS \'Sulfate (SO4) concentration from
Nylon filter; ug/m\^3.\';

COMMENT ON COLUMN DRYCHEM.NSO4_F IS \'Data quality code for NSO4.\';

COMMENT ON COLUMN DRYCHEM.NHNO3 IS \'Nitric acid (NO3) concentration
from Nylon filter; ug/m\^3.\';

COMMENT ON COLUMN DRYCHEM.NHNO3_F IS \'Data quality code for NHNO3.\';

COMMENT ON COLUMN DRYCHEM.WSO2 IS \'Sulfur dioxide (SO2) concentration
from Whatman filter; ug/m\^3.\';

COMMENT ON COLUMN DRYCHEM.WSO2_F IS \'Data quality code for WSO2.\';

COMMENT ON COLUMN DRYCHEM.WNO3 IS \'Nitrate (NO3) concentration from
Whatman filter; ug/m\^3.\';

COMMENT ON COLUMN DRYCHEM.WNO3_F IS \'Data quality code for WNO3.\';

COMMENT ON COLUMN DRYCHEM.TOTAL_SO2 IS \'Total sulfur dioxide (SO2)
concentration calculated from \[wso2\]+0.667\*nso4\]; ug/m\^3.\';

COMMENT ON COLUMN DRYCHEM.TOTAL_NO3 IS \'Total nitrate (NO3)
concentration calculated from \[tno3\]+0.9841\*\[nhno3\]; ug/m\^3.\';

COMMENT ON COLUMN DRYCHEM.FLOW_VOLUME IS \'Flow volume; lpm.\';

COMMENT ON COLUMN DRYCHEM.FLOW_VOLUME_F IS \'Data quality code for
FLOW_VOLUME.\';

COMMENT ON COLUMN DRYCHEM.VALID_HOURS IS \'Valid hours during sampling
period.\';

COMMENT ON COLUMN DRYCHEM.VALID_HOURS_F IS \'Data quality code for
VALID_HOURS.\';

COMMENT ON COLUMN DRYCHEM.COMMENT_CODES IS \'Comment codes separated by
spaces.\';

COMMENT ON COLUMN DRYCHEM.STD2LOCAL_CF IS \'Factor used to convert
atmospheric concentrations from standard to local conditions.\';

COMMENT ON COLUMN DRYCHEM.TEMP_SOURCE IS \'Source of mean temperature
used in conversion factor.\';

COMMENT ON COLUMN DRYCHEM.QA_CODE IS \'Quality assurance level of the
record. (see QAPP for definition of quality assurance levels)\';

COMMENT ON COLUMN DRYCHEM.UPDATE_DATE IS \'Date and time of last record
update.\';

COMMENT ON COLUMN DRYCHEM.LAB_KEY IS \'Laboratory sample identification
number.\';

COMMENT ON COLUMN DRYCHEM.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN DRYCHEM.TYPE IS \'Sample type code.\';

COMMENT ON COLUMN DRYCHEM.DATEON IS \'Date and time sample collection
began, Local Standard Time; mm/dd/yyyy hh:mm:ss.\';

COMMENT ON COLUMN DRYCHEM.DATEOFF IS \'Date and time sample collection
ended, Local Standard Time; mm/dd/yyyy hh:mm:ss.\';

COMMENT ON COLUMN DRYCHEM.TSO4 IS \'Sulfate (SO4) concentration from
Teflon filter; ug/m\^3.\';

COMMENT ON COLUMN DRYCHEM.TSO4_F IS \'Data quality code for TSO4.\';

COMMENT ON COLUMN DRYCHEM.TNO3 IS \'Nitrate (NO3) concentration from
Teflon filter; ug/m\^3.\';

COMMENT ON COLUMN DRYCHEM.TNO3_F IS \'Data quality code for TNO3.\';

COMMENT ON COLUMN DRYCHEM.TNH4 IS \'Ammonium (NH4) concentration from
Teflon filter; ug/m\^3.\';

COMMENT ON COLUMN DRYCHEM.TNH4_F IS \'Data quality code for TNH4.\';

COMMENT ON COLUMN DRYCHEM.CA IS \'Calcium (Ca) concentration from Teflon
filter; ug/m\^3.\';

COMMENT ON COLUMN DRYCHEM.CA_F IS \'Data quality code for CA.\';

COMMENT ON COLUMN DRYCHEM.MG IS \'Magnesium (Mg) concentration from
Teflon filter; ug/m\^3.\';

COMMENT ON COLUMN DRYCHEM.MG_F IS \'Data quality code for MG.\';

COMMENT ON COLUMN DRYCHEM.NA IS \'Sodium (Na) concentration from Teflon
filter; ug/m\^3.\';

COMMENT ON COLUMN DRYCHEM.NA_F IS \'Data quality code for NA.\';

COMMENT ON COLUMN DRYCHEM.K IS \'Potassium (K) concentration from Teflon
filter; ug/m\^3.\';

COMMENT ON COLUMN DRYCHEM.K_F IS \'Data quality code for K.\';

COMMENT ON COLUMN DRYCHEM.CL IS \'Chloride (Cl) concentration from
Teflon filter; ug/m\^3.\';

COMMENT ON COLUMN DRYCHEM.CL_F IS \'Data quality code for CL.\';

\--

\-- DRYCHEM_SUMMARY (Table)

\--

\-- Row count:0

CREATE TABLE DRYCHEM_SUMMARY

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

PERIOD VARCHAR2(31 BYTE) NOT NULL,

PARAMETER VARCHAR2(15 BYTE) NOT NULL,

MIN_VALUE NUMBER(12,4) NULL,

MAX_VALUE NUMBER(12,4) NULL,

MEAN_VALUE NUMBER(12,4) NULL,

STDEV_VALUE NUMBER(12,4) NULL,

RECORDS NUMBER(11) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_DRYCHEM_SUMMARY

PRIMARY KEY

(SITE_ID, PERIOD, PARAMETER)

);

COMMENT ON TABLE DRYCHEM_SUMMARY IS \'Summary of min, mean, standard
deviation, and max atmospheric concentration values for each analyte and
site-month or site-quarter.\';

COMMENT ON COLUMN DRYCHEM_SUMMARY.SITE_ID IS \'Site identification
code.\';

COMMENT ON COLUMN DRYCHEM_SUMMARY.PERIOD IS \'Period of aggregation.\';

COMMENT ON COLUMN DRYCHEM_SUMMARY.PARAMETER IS \'Atmospheric
concentration analyte used in aggregation.\';

COMMENT ON COLUMN DRYCHEM_SUMMARY.MIN_VALUE IS \'Minimum value for
analyte during period.\';

COMMENT ON COLUMN DRYCHEM_SUMMARY.MAX_VALUE IS \'Maximum value for
analyte during period.\';

COMMENT ON COLUMN DRYCHEM_SUMMARY.MEAN_VALUE IS \'Mean value for analyte
during period.\';

COMMENT ON COLUMN DRYCHEM_SUMMARY.STDEV_VALUE IS \'Standard deviation of
values for analyte during period.\';

COMMENT ON COLUMN DRYCHEM_SUMMARY.RECORDS IS \'Number of records
included in aggregation.\';

COMMENT ON COLUMN DRYCHEM_SUMMARY.UPDATE_DATE IS \'Date and time of last
record update.\';

\--

\-- DRYCH_F_CD (Table)

\--

\-- Row count:10

CREATE TABLE DRYCH_F_CD

(

CODE VARCHAR2(10 BYTE) NOT NULL,

DESCRIPTION VARCHAR2(255 BYTE) NULL,

VALID CHAR(1 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_DRYCH_F_CD

PRIMARY KEY

(CODE)

);

COMMENT ON TABLE DRYCH_F_CD IS \'Foreign key table for all data quality
codes for columns ending in %\_F in DRYCHEM\';

COMMENT ON COLUMN DRYCH_F_CD.UPDATE_DATE IS \'Date and time of last
record update\';

COMMENT ON COLUMN DRYCH_F_CD.CODE IS \'Code\';

COMMENT ON COLUMN DRYCH_F_CD.DESCRIPTION IS \'Description of code.\';

COMMENT ON COLUMN DRYCH_F_CD.VALID IS \'Does this code indicate a valid
(V) or invalid (I) data record?\';

\--

\-- DRYCH_TEMPSRCE_CD (Table)

\--

\-- Row count:5

CREATE TABLE DRYCH_TEMPSRCE_CD

(

CODE VARCHAR2(10 BYTE) NOT NULL,

DESCRIPTION VARCHAR2(255 BYTE) NULL,

VALID CHAR(1 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_DRYCH_TEMPSRCE_CD

PRIMARY KEY

(CODE)

);

COMMENT ON TABLE DRYCH_TEMPSRCE_CD IS \'Foreign key table for
TEMP_SOURCE in DRYCHEM\';

COMMENT ON COLUMN DRYCH_TEMPSRCE_CD.UPDATE_DATE IS \'Date and time of
last record update\';

COMMENT ON COLUMN DRYCH_TEMPSRCE_CD.CODE IS \'Code\';

COMMENT ON COLUMN DRYCH_TEMPSRCE_CD.DESCRIPTION IS \'Description of
code.\';

COMMENT ON COLUMN DRYCH_TEMPSRCE_CD.VALID IS \'Does this code indicate a
valid (V) or invalid (I) data record?\';

\--

\-- DRYCH_TYPE_CD (Table)

\--

\-- Row count:5

CREATE TABLE DRYCH_TYPE_CD

(

CODE VARCHAR2(10 BYTE) NOT NULL,

DESCRIPTION VARCHAR2(255 BYTE) NULL,

VALID CHAR(1 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_DRYCH_TYPE_CD

PRIMARY KEY

(CODE)

);

COMMENT ON TABLE DRYCH_TYPE_CD IS \'Foreign key table for TYPE in
DRYCHEM\';

COMMENT ON COLUMN DRYCH_TYPE_CD.CODE IS \'Code\';

COMMENT ON COLUMN DRYCH_TYPE_CD.DESCRIPTION IS \'Description of code.\';

COMMENT ON COLUMN DRYCH_TYPE_CD.VALID IS \'Does this code indicate a
valid (V) or invalid (I) data record?\';

COMMENT ON COLUMN DRYCH_TYPE_CD.UPDATE_DATE IS \'Date and time of last
record update\';

\--

\-- EQUIPMENT_INVENTORY (Table)

\--

\-- Dependencies:

\-- EQUIP_BEGINST_CD (Table)

\-- EQUIP_COND_CD (Table)

\-- EQUIP_CURRST_CD (Table)

\--

\-- Row count:21826

CREATE TABLE EQUIPMENT_INVENTORY

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

SEQUENCE_ID NUMBER(11) NOT NULL,

YR NUMBER(4) NOT NULL,

PURCHASE_ORDER VARCHAR2(15 BYTE) NULL,

EQUIP_DESCRIPTION VARCHAR2(50 BYTE) NULL,

PART_NAME VARCHAR2(40 BYTE) NULL,

SERIAL_NUMBER VARCHAR2(40 BYTE) NULL,

EPA_BARCODE VARCHAR2(10 BYTE) NULL,

CNET_NUMBER VARCHAR2(10 BYTE) NULL,

DATE_RECEIVED DATE NULL,

VOUCHER VARCHAR2(10 BYTE) NULL,

REPORT VARCHAR2(10 BYTE) NULL,

COST NUMBER(12,4) NULL,

FREIGHT NUMBER(12,4) NULL,

ESTIMATED_COST NUMBER(12,4) NULL,

TOTAL_COST NUMBER(12,4) NULL,

VENDOR VARCHAR2(40 BYTE) NULL,

CONDITION VARCHAR2(15 BYTE) NULL,

MANUFACTURER VARCHAR2(40 BYTE) NULL,

MODEL_NUMBER VARCHAR2(40 BYTE) NULL,

DOC VARCHAR2(10 BYTE) NULL,

NOAA VARCHAR2(10 BYTE) NULL,

DOE VARCHAR2(10 BYTE) NULL,

DISPOSITION VARCHAR2(10 BYTE) NULL,

UNIT_OF_MEASURE VARCHAR2(10 BYTE) NULL,

QUANTITY NUMBER(11) NULL,

EQUIP_TYPE VARCHAR2(40 BYTE) NULL,

BEGINNING_STATUS VARCHAR2(1 BYTE) NULL,

CURRENT_STATUS VARCHAR2(1 BYTE) NULL,

COMMENTS VARCHAR2(120 BYTE) NULL,

INVENTORY_DATE NUMBER(10) NULL,

UPDATE_DATE DATE DEFAULT sysdate NULL,

CONSTRAINT PK_EQUIPMENT_INVENTORY

PRIMARY KEY

(SITE_ID, SEQUENCE_ID, YR),

CONSTRAINT FK_EQUIPINV_BEGINST

FOREIGN KEY (BEGINNING_STATUS)

REFERENCES EQUIP_BEGINST_CD (CODE),

CONSTRAINT FK_EQUIPINV_COND

FOREIGN KEY (CONDITION)

REFERENCES EQUIP_COND_CD (CODE),

CONSTRAINT FK_EQUIPINV_CURRST

FOREIGN KEY (CURRENT_STATUS)

REFERENCES EQUIP_CURRST_CD (CODE)

);

COMMENT ON TABLE EQUIPMENT_INVENTORY IS \'Inventory of all CASTNet
equipment which is purchased, maintained, and utilized by the contractor
for the USEPA.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.SITE_ID IS \'Site identification
code.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.SEQUENCE_ID IS \'Sequence number
for inventory item.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.YR IS \'Year.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.PURCHASE_ORDER IS \'Purchase order
for inventory item.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.EQUIP_DESCRIPTION IS \'Description
of inventory item.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.PART_NAME IS \'Part name of
inventory item.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.SERIAL_NUMBER IS \'Serial number
of inventory item.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.EPA_BARCODE IS \'EPA bar code for
inventory item.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.CNET_NUMBER IS \'CASTNet number
for inventory item.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.DATE_RECEIVED IS \'Date inventory
item was received.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.VOUCHER IS \'Voucher number for
inventory item.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.REPORT IS \'Report number for
inventory item.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.COST IS \'Purchase cost of
inventory item.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.FREIGHT IS \'Shipping costs for
inventory item.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.ESTIMATED_COST IS \'Estimated cost
of inventory item.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.TOTAL_COST IS \'Total cost of
inventory item.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.VENDOR IS \'Vendor for inventory
item.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.CONDITION IS \'Condition code of
inventory item.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.MANUFACTURER IS \'Manufacturer of
inventory item.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.MODEL_NUMBER IS \'Model number of
inventory item.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.DOC IS \'Department of Commerce
number for inventory item.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.NOAA IS \'National Oceanic and
Atmospheric Association number for inventory item.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.DOE IS \'Department of Energy
number for inventory item.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.DISPOSITION IS \'Disposition of
inventory item.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.UNIT_OF_MEASURE IS \'Unit of
measure for inventory item.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.QUANTITY IS \'Quantity of
inventory item.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.EQUIP_TYPE IS \'Type of inventory
item.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.BEGINNING_STATUS IS \'Status of
item at the start of the fiscal year.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.CURRENT_STATUS IS \'Current status
of inventory item.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.COMMENTS IS \'Comments regarding
the inventory item.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.INVENTORY_DATE IS \'Date of last
inventory.\';

COMMENT ON COLUMN EQUIPMENT_INVENTORY.UPDATE_DATE IS \'Date and time of
last record update.\';

\--

\-- EQUIP_BEGINST_CD (Table)

\--

\-- Row count:2

CREATE TABLE EQUIP_BEGINST_CD

(

CODE VARCHAR2(10 BYTE) NOT NULL,

DESCRIPTION VARCHAR2(255 BYTE) NULL,

VALID CHAR(1 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_EQUIP_BEGINST_CD

PRIMARY KEY

(CODE)

);

COMMENT ON TABLE EQUIP_BEGINST_CD IS \'Foreign key table for
BEGINNING_STATUS in EQUIPMENT_INVENTORY\';

COMMENT ON COLUMN EQUIP_BEGINST_CD.CODE IS \'Code\';

COMMENT ON COLUMN EQUIP_BEGINST_CD.DESCRIPTION IS \'Description of
code.\';

COMMENT ON COLUMN EQUIP_BEGINST_CD.VALID IS \'Does this code indicate a
valid (V) or invalid (I) data record?\';

COMMENT ON COLUMN EQUIP_BEGINST_CD.UPDATE_DATE IS \'Date and time of
last record update\';

\--

\-- EQUIP_COND_CD (Table)

\--

\-- Row count:11

CREATE TABLE EQUIP_COND_CD

(

CODE VARCHAR2(10 BYTE) NOT NULL,

DESCRIPTION VARCHAR2(255 BYTE) NULL,

VALID CHAR(1 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_EQUIP_COND_CD

PRIMARY KEY

(CODE)

);

COMMENT ON TABLE EQUIP_COND_CD IS \'Foreign key table for CONDITION in
EQUIPMENT_INVENTORY\';

COMMENT ON COLUMN EQUIP_COND_CD.CODE IS \'Code\';

COMMENT ON COLUMN EQUIP_COND_CD.DESCRIPTION IS \'Description of code.\';

COMMENT ON COLUMN EQUIP_COND_CD.VALID IS \'Does this code indicate a
valid (V) or invalid (I) data record?\';

COMMENT ON COLUMN EQUIP_COND_CD.UPDATE_DATE IS \'Date and time of last
record update\';

\--

\-- EQUIP_CURRST_CD (Table)

\--

\-- Row count:4

CREATE TABLE EQUIP_CURRST_CD

(

CODE VARCHAR2(10 BYTE) NOT NULL,

DESCRIPTION VARCHAR2(255 BYTE) NULL,

VALID CHAR(1 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_EQUIP_CURRST_CD

PRIMARY KEY

(CODE)

);

COMMENT ON TABLE EQUIP_CURRST_CD IS \'Foreign key table for
CURRENT_STATUS in EQUIPMENT_INVENTORY\';

COMMENT ON COLUMN EQUIP_CURRST_CD.CODE IS \'Code\';

COMMENT ON COLUMN EQUIP_CURRST_CD.DESCRIPTION IS \'Description of
code.\';

COMMENT ON COLUMN EQUIP_CURRST_CD.VALID IS \'Does this code indicate a
valid (V) or invalid (I) data record?\';

COMMENT ON COLUMN EQUIP_CURRST_CD.UPDATE_DATE IS \'Date and time of last
record update\';

\--

\-- FILTER_PACK (Table)

\--

\-- Row count:74322

CREATE TABLE FILTER_PACK

(

LAB_KEY VARCHAR2(15 BYTE) NOT NULL,

SITE_ID VARCHAR2(6 BYTE) NULL,

DATEON DATE NOT NULL,

DATEOFF DATE NOT NULL,

FLOWCHECK_DATEON NUMBER(12,8) NULL,

FLOWCHECK_DATEOFF NUMBER(12,8) NULL,

LEAKCHECK_DATEON NUMBER(12,8) NULL,

LEAKCHECK_DATEOFF NUMBER(12,8) NULL,

DAS_FLOW_DATEON NUMBER(12,8) NULL,

DAS_FLOW_DATEOFF NUMBER(12,8) NULL,

ROTAMETER_DATEON NUMBER(12,8) NULL,

ROTAMETER_DATEOFF NUMBER(12,8) NULL,

ELAPSED_TIME NUMBER(12,4) NULL,

SHIPPED_BY VARCHAR2(25 BYTE) NULL,

SHIPPING_DATE DATE NULL,

LAB_TECH_RECEIPT VARCHAR2(25 BYTE) NULL,

RECEIPT_DATE DATE NULL,

OBSERVATION VARCHAR2(5 BYTE) NULL,

LEAVES_DROPPED VARCHAR2(6 BYTE) NULL,

LEAVES_FALL_COLOR VARCHAR2(6 BYTE) NULL,

LEAVES_GREEN VARCHAR2(6 BYTE) NULL,

COMMENT_LAB VARCHAR2(500 BYTE) NULL,

COMMENT_FIELD VARCHAR2(500 BYTE) NULL,

UPDATE_DATE DATE NOT NULL,

CONSTRAINT PK_FILTER_PACK

PRIMARY KEY

(LAB_KEY)

);

COMMENT ON TABLE FILTER_PACK IS \'Dry chemistry filter pack data. Data
input from SSRF.\';

COMMENT ON COLUMN FILTER_PACK.LAB_KEY IS \'Laboratory sample
identification number.\';

COMMENT ON COLUMN FILTER_PACK.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN FILTER_PACK.DATEON IS \'Date and time sample
collection began, Local Standard Time; mm/dd/yyyy hh:mm:ss.\';

COMMENT ON COLUMN FILTER_PACK.DATEOFF IS \'Date and time sample
collection ended, Local Standard Time; mm/dd/yyyy hh:mm:ss.\';

COMMENT ON COLUMN FILTER_PACK.FLOWCHECK_DATEON IS \'Flow controller
display with pump off at dateon.\';

COMMENT ON COLUMN FILTER_PACK.FLOWCHECK_DATEOFF IS \'Flow controller
display with pump off at dateoff.\';

COMMENT ON COLUMN FILTER_PACK.LEAKCHECK_DATEON IS \'Flow controller
display with pump on and filter removed at dateon.\';

COMMENT ON COLUMN FILTER_PACK.LEAKCHECK_DATEOFF IS \'Flow controller
display with pump on and filter removed at dateoff.\';

COMMENT ON COLUMN FILTER_PACK.DAS_FLOW_DATEON IS \'Output in units from
datalogger with pump on at dateon; units.\';

COMMENT ON COLUMN FILTER_PACK.DAS_FLOW_DATEOFF IS \'Output in units from
datalogger with pump on at dateoff; units.\';

COMMENT ON COLUMN FILTER_PACK.ROTAMETER_DATEON IS \'Reading on the
coarse flow indicator at dateon.\';

COMMENT ON COLUMN FILTER_PACK.ROTAMETER_DATEOFF IS \'Reading on the
coarse flow indicator at dateoff.\';

COMMENT ON COLUMN FILTER_PACK.ELAPSED_TIME IS \'Total on hourmeter when
filter is removed.\';

COMMENT ON COLUMN FILTER_PACK.SHIPPED_BY IS \'Site operator that
prepared filter for shipment.\';

COMMENT ON COLUMN FILTER_PACK.SHIPPING_DATE IS \'Date the filter is
expected to ship; mm/dd/yyyy.\';

COMMENT ON COLUMN FILTER_PACK.LAB_TECH_RECEIPT IS \'Lab tech that
received the filter.\';

COMMENT ON COLUMN FILTER_PACK.RECEIPT_DATE IS \'Date the filter is
received by the lab; mm/dd/yyyy.\';

COMMENT ON COLUMN FILTER_PACK.OBSERVATION IS \'Climate observation.\';

COMMENT ON COLUMN FILTER_PACK.LEAVES_DROPPED IS \'Percentage of leafed
that have dropped from the canopy.\';

COMMENT ON COLUMN FILTER_PACK.LEAVES_FALL_COLOR IS \'Percentage of the
leaves that are fall color.\';

COMMENT ON COLUMN FILTER_PACK.LEAVES_GREEN IS \'Percentage of the leaves
that are green.\';

COMMENT ON COLUMN FILTER_PACK.COMMENT_LAB IS \'Lab comments.\';

COMMENT ON COLUMN FILTER_PACK.COMMENT_FIELD IS \'Field comments.\';

COMMENT ON COLUMN FILTER_PACK.UPDATE_DATE IS \'Date and time of last
record update.\';

\--

\-- FORMATS (Table)

\--

\-- Row count:1375

CREATE TABLE FORMATS

(

TABLE_NAME VARCHAR2(25 BYTE) NOT NULL,

COLUMN_NAME VARCHAR2(25 BYTE) NOT NULL,

COLUMN_ID NUMBER(4) NULL,

DESCRIPTION VARCHAR2(255 BYTE) NULL,

UNITS VARCHAR2(20 BYTE) NULL,

TYPE CHAR(1 BYTE) NULL,

SQL_TYPE VARCHAR2(25 BYTE) NULL,

UPDATE_DATE DATE DEFAULT NULL NULL,

CONSTRAINT PK_FORMATS

PRIMARY KEY

(TABLE_NAME, COLUMN_NAME)

);

COMMENT ON TABLE FORMATS IS \'Data definitions for tables in the CASTNet
data repository.\';

COMMENT ON COLUMN FORMATS.TABLE_NAME IS \'Table name.\';

COMMENT ON COLUMN FORMATS.COLUMN_NAME IS \'Column name.\';

COMMENT ON COLUMN FORMATS.COLUMN_ID IS \'Column ID in respective
table\';

COMMENT ON COLUMN FORMATS.DESCRIPTION IS \'Description of code.\';

COMMENT ON COLUMN FORMATS.UNITS IS \'Units\';

COMMENT ON COLUMN FORMATS.TYPE IS \'Data type.\';

COMMENT ON COLUMN FORMATS.SQL_TYPE IS \'SQL data type.\';

COMMENT ON COLUMN FORMATS.UPDATE_DATE IS \'Date and time of last record
update.\';

\--

\-- GAS_CALIBRATION (Table)

\--

\-- Row count:94489

CREATE TABLE GAS_CALIBRATION

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

START_TIME DATE NOT NULL,

END_TIME DATE NOT NULL,

PARAMETER VARCHAR2(5 BYTE) NOT NULL,

UNITS VARCHAR2(5 BYTE) NULL,

CALIBRATION_VALUE NUMBER(12,4) NULL,

EXPECTED_VALUE NUMBER(12,4) NULL,

CALIBRATION_TYPE VARCHAR2(2 BYTE) NULL,

UPDATE_DATE DATE DEFAULT NULL NULL,

CONSTRAINT GAS_CALIBRATION_PK

PRIMARY KEY

(SITE_ID, START_TIME, PARAMETER)

);

COMMENT ON TABLE GAS_CALIBRATION IS \'Gas calibration data as polled
from sites; this includes ozone, SO2, NOy, and CO.\';

COMMENT ON COLUMN GAS_CALIBRATION.SITE_ID IS \'Site identification
code.\';

COMMENT ON COLUMN GAS_CALIBRATION.START_TIME IS \'Start time for
calibration, Local Standard Time.\';

COMMENT ON COLUMN GAS_CALIBRATION.END_TIME IS \'End time for
calibration, Local Standard Time.\';

COMMENT ON COLUMN GAS_CALIBRATION.PARAMETER IS \'Name of parameter being
calibrated.\';

COMMENT ON COLUMN GAS_CALIBRATION.UNITS IS \'Units of parameter being
calibrated.\';

COMMENT ON COLUMN GAS_CALIBRATION.CALIBRATION_VALUE IS \'Value measured
by site sensor.\';

COMMENT ON COLUMN GAS_CALIBRATION.EXPECTED_VALUE IS \'Expected value.\';

COMMENT ON COLUMN GAS_CALIBRATION.CALIBRATION_TYPE IS \'Type of
calibration performed.\';

COMMENT ON COLUMN GAS_CALIBRATION.UPDATE_DATE IS \'Date and time record
was last modified.\';

\--

\-- HOURLY_GAS (Table)

\--

\-- Dependencies:

\-- METDA_QACODE_CD (Table)

\-- HOURLY_GAS_PARAMETER (Table)

\-- HOURLY_GAS_CD (Table)

\--

\-- Row count:15600

CREATE TABLE HOURLY_GAS

(

SITE_ID CHAR(6 BYTE) NULL,

DATE_TIME DATE NULL,

PARAMETER VARCHAR2(10 BYTE) NULL,

VALUE NUMBER(16,4) NULL,

VALUE_F VARCHAR2(1 BYTE) NULL,

QA_CODE VARCHAR2(2 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_HOURLY_GAS

PRIMARY KEY

(SITE_ID, DATE_TIME, PARAMETER),

CONSTRAINT FK_HOURLY_GAS_CD

FOREIGN KEY (VALUE_F)

REFERENCES HOURLY_GAS_CD (CODE),

CONSTRAINT FK_HOURLY_GAS_PARAMETER

FOREIGN KEY (PARAMETER)

REFERENCES HOURLY_GAS_PARAMETER (CODE),

CONSTRAINT FK_GAS_QACODE

FOREIGN KEY (QA_CODE)

REFERENCES METDA_QACODE_CD (CODE)

);

COMMENT ON TABLE HOURLY_GAS IS \'Hourly SO2, NOy and CO values as
measured by gas analyzers.\';

COMMENT ON COLUMN HOURLY_GAS.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN HOURLY_GAS.DATE_TIME IS \'Date and time sample
collection began, Local Standard Time; mm/dd/yyyy hh:mm:ss.\';

COMMENT ON COLUMN HOURLY_GAS.PARAMETER IS \'Abbreviated chemical symbol
of parameter measured.\';

COMMENT ON COLUMN HOURLY_GAS.VALUE IS \'Numeric value of parameter
measured; ppb.\';

COMMENT ON COLUMN HOURLY_GAS.VALUE_F IS \'Data quality code for
VALUE.\';

COMMENT ON COLUMN HOURLY_GAS.QA_CODE IS \'Quality assurance level of the
record. (see QAPP for definition of quality assurance levels)\';

COMMENT ON COLUMN HOURLY_GAS.UPDATE_DATE IS \'Date and time of last
record update.\';

\--

\-- HOURLY_GAS_CD (Table)

\--

\-- Row count:9

CREATE TABLE HOURLY_GAS_CD

(

CODE VARCHAR2(10 BYTE) NULL,

DESCRIPTION VARCHAR2(100 BYTE) NULL,

VALID VARCHAR2(1 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_HOURLY_GAS_CD

PRIMARY KEY

(CODE)

);

COMMENT ON TABLE HOURLY_GAS_CD IS \'Foreign key table for VALUE_F in
HOURLY_GAS\';

COMMENT ON COLUMN HOURLY_GAS_CD.CODE IS \'Code\';

COMMENT ON COLUMN HOURLY_GAS_CD.DESCRIPTION IS \'Description of code.\';

COMMENT ON COLUMN HOURLY_GAS_CD.VALID IS \'Does this code indicate a
valid (V) or invalid (I) data record?\';

COMMENT ON COLUMN HOURLY_GAS_CD.UPDATE_DATE IS \'Date and time of last
record update\';

\--

\-- HOURLY_GAS_PARAMETER (Table)

\--

\-- Row count:5

CREATE TABLE HOURLY_GAS_PARAMETER

(

CODE VARCHAR2(10 BYTE) NULL,

DESCRIPTION VARCHAR2(100 BYTE) NULL,

VALID VARCHAR2(1 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_HOURLY_GAS_PARAMETER

PRIMARY KEY

(CODE)

);

COMMENT ON TABLE HOURLY_GAS_PARAMETER IS \'Foreign key table for
PARAMETER in HOURLY_GAS\';

COMMENT ON COLUMN HOURLY_GAS_PARAMETER.CODE IS \'Code\';

COMMENT ON COLUMN HOURLY_GAS_PARAMETER.DESCRIPTION IS \'Description of
code.\';

COMMENT ON COLUMN HOURLY_GAS_PARAMETER.VALID IS \'Does this code
indicate a valid (V) or invalid (I) data record?\';

COMMENT ON COLUMN HOURLY_GAS_PARAMETER.UPDATE_DATE IS \'Date and time of
last record update\';

\--

\-- LABDATA (Table)

\--

\-- Dependencies:

\-- LABDA_DMCQUAL_CD (Table)

\-- LABDA_METHOD_CD (Table)

\-- LABDA_QUALIF_CD (Table)

\-- LABDATA_ANALYTE (Table)

\-- SAMPLE_REFERENCE (Table)

\--

\-- Row count:1085091

CREATE TABLE LABDATA

(

LAB_KEY VARCHAR2(15 BYTE) NOT NULL,

STORET_KEY VARCHAR2(15 BYTE) NOT NULL,

BATCH VARCHAR2(25 BYTE) NOT NULL,

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

DATEON DATE NULL,

METHOD VARCHAR2(15 BYTE) NULL,

CONCENTRATION NUMBER(14,6) NULL,

ACTUAL_CONC NUMBER(14,6) NULL,

UNITS VARCHAR2(20 BYTE) NULL,

DILUTION NUMBER(14,6) NULL,

DETECTION_LIMIT NUMBER(14,6) NULL,

QUALIFIER VARCHAR2(5 BYTE) NULL,

DMC_QUALIFIER VARCHAR2(1 BYTE) NULL,

EXTRACTION_DATE DATE NULL,

ANALYSIS_DATE DATE NULL,

RUN NUMBER NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_LABDATA

PRIMARY KEY

(LAB_KEY, STORET_KEY, BATCH),

CONSTRAINT FK_LABDATA_DMC

FOREIGN KEY (DMC_QUALIFIER)

REFERENCES LABDA_DMCQUAL_CD (CODE),

CONSTRAINT FK_LABDATA_METHOD

FOREIGN KEY (METHOD)

REFERENCES LABDA_METHOD_CD (CODE),

CONSTRAINT FK_LABDATA_QUAL

FOREIGN KEY (QUALIFIER)

REFERENCES LABDA_QUALIF_CD (CODE),

CONSTRAINT REFPARAMETER_CODE230

FOREIGN KEY (STORET_KEY)

REFERENCES LABDATA_ANALYTE (STORET_KEY),

CONSTRAINT REFSAMPLE_REFERENCE229

FOREIGN KEY (LAB_KEY)

REFERENCES SAMPLE_REFERENCE (LAB_KEY) DISABLE

);

COMMENT ON TABLE LABDATA IS \'Laboratory analytical and QC data in total
micrograms.\';

COMMENT ON COLUMN LABDATA.LAB_KEY IS \'Laboratory sample identification
number.\';

COMMENT ON COLUMN LABDATA.STORET_KEY IS \'ESE assigned storet key.\';

COMMENT ON COLUMN LABDATA.BATCH IS \'Laboratory batch identification
number.\';

COMMENT ON COLUMN LABDATA.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN LABDATA.DATEON IS \'Date and time sample collection
began, Local Standard Time; mm/dd/yyyy.\';

COMMENT ON COLUMN LABDATA.METHOD IS \'Instrument method used for
analysis.\';

COMMENT ON COLUMN LABDATA.CONCENTRATION IS \'Concentration value for
parameter.\';

COMMENT ON COLUMN LABDATA.ACTUAL_CONC IS \'Actual concentration of
laboratory measurement; mg/l.\';

COMMENT ON COLUMN LABDATA.UNITS IS \'Units for the concentration
value\';

COMMENT ON COLUMN LABDATA.DILUTION IS \'Dilution factor for the
sample.\';

COMMENT ON COLUMN LABDATA.DETECTION_LIMIT IS \'Detection limit for the
sample.\';

COMMENT ON COLUMN LABDATA.QUALIFIER IS \'Data quality code for
laboratory codes.\';

COMMENT ON COLUMN LABDATA.DMC_QUALIFIER IS \'Data quality code for DMC
codes.\';

COMMENT ON COLUMN LABDATA.EXTRACTION_DATE IS \'Date filter was
extracted.\';

COMMENT ON COLUMN LABDATA.ANALYSIS_DATE IS \'Date filter was
analyzed.\';

COMMENT ON COLUMN LABDATA.RUN IS \'Incremental run number for laboratory
sample analysis\';

COMMENT ON COLUMN LABDATA.UPDATE_DATE IS \'Date and time of last record
update.\';

\--

\-- LABDATA_ANALYTE (Table)

\--

\-- Row count:85

CREATE TABLE LABDATA_ANALYTE

(

STORET_KEY VARCHAR2(15 BYTE) NOT NULL,

ANALYTE VARCHAR2(41 BYTE) NULL,

CAS VARCHAR2(10 BYTE) NULL,

MDL NUMBER(13) NULL,

MRL NUMBER(13) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_LABDATA_ANALYTE

PRIMARY KEY

(STORET_KEY)

);

COMMENT ON TABLE LABDATA_ANALYTE IS \'Analyte detection and reporting
limits used for laboratory analyses\';

COMMENT ON COLUMN LABDATA_ANALYTE.UPDATE_DATE IS \'Date and time of last
record update\';

COMMENT ON COLUMN LABDATA_ANALYTE.STORET_KEY IS \'ESE assigned storet
key.\';

COMMENT ON COLUMN LABDATA_ANALYTE.ANALYTE IS \'Analyte name.\';

COMMENT ON COLUMN LABDATA_ANALYTE.CAS IS \'Chemical Abstract Service
Number\';

COMMENT ON COLUMN LABDATA_ANALYTE.MDL IS \'Minimum Detection Limit.\';

COMMENT ON COLUMN LABDATA_ANALYTE.MRL IS \'Minimum Reporting Limit.\';

\--

\-- LABDATA_QC (Table)

\--

\-- Dependencies:

\-- LABDA_DMCQUAL_CD (Table)

\-- LABDA_METHOD_CD (Table)

\-- LABDA_QUALIF_CD (Table)

\-- LABDATA_ANALYTE (Table)

\-- SAMPLE_REFERENCE (Table)

\--

\-- Row count:481003

CREATE TABLE LABDATA_QC

(

LAB_KEY VARCHAR2(15 BYTE) NOT NULL,

STORET_KEY VARCHAR2(15 BYTE) NOT NULL,

BATCH VARCHAR2(25 BYTE) NOT NULL,

QC VARCHAR2(5 BYTE) NOT NULL,

LAB_NOTES VARCHAR2(15 BYTE) NULL,

DATEON DATE NULL,

METHOD VARCHAR2(15 BYTE) NULL,

CONCENTRATION NUMBER(14,6) NULL,

ACTUAL_CONC NUMBER(14,6) NULL,

UNITS VARCHAR2(20 BYTE) NULL,

TARGET NUMBER(14,6) NULL,

FOUND NUMBER(14,6) NULL,

RECOVERY NUMBER(14,6) NULL,

DIFFERENCE NUMBER(14,6) NULL,

DILUTION NUMBER(14,6) NULL,

DETECTION_LIMIT NUMBER(14,6) NULL,

QUALIFIER VARCHAR2(5 BYTE) NULL,

DMC_QUALIFIER VARCHAR2(1 BYTE) NULL,

EXTRACTION_DATE DATE NULL,

ANALYSIS_DATE DATE NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_LABDATA_QC

PRIMARY KEY

(LAB_KEY, STORET_KEY, BATCH, QC),

CONSTRAINT FK_LABDATAQC_DMC

FOREIGN KEY (DMC_QUALIFIER)

REFERENCES LABDA_DMCQUAL_CD (CODE),

CONSTRAINT FK_LABDATAQC_METHOD

FOREIGN KEY (METHOD)

REFERENCES LABDA_METHOD_CD (CODE),

CONSTRAINT FK_LABDATAQC_QUAL

FOREIGN KEY (QUALIFIER)

REFERENCES LABDA_QUALIF_CD (CODE),

CONSTRAINT REFPARAMETER_CODE242

FOREIGN KEY (STORET_KEY)

REFERENCES LABDATA_ANALYTE (STORET_KEY),

CONSTRAINT REFSAMPLE_REFERENCE237

FOREIGN KEY (LAB_KEY)

REFERENCES SAMPLE_REFERENCE (LAB_KEY) DISABLE

);

COMMENT ON TABLE LABDATA_QC IS \'Quality control samples from the
laboratory\';

COMMENT ON COLUMN LABDATA_QC.LAB_KEY IS \'Laboratory sample
identification number.\';

COMMENT ON COLUMN LABDATA_QC.STORET_KEY IS \'ESE assigned storet key.\';

COMMENT ON COLUMN LABDATA_QC.BATCH IS \'Laboratory batch identification
number.\';

COMMENT ON COLUMN LABDATA_QC.QC IS \'Laboratory QC Code.\';

COMMENT ON COLUMN LABDATA_QC.LAB_NOTES IS \'Site identification code.\';

COMMENT ON COLUMN LABDATA_QC.DATEON IS \'Date and time sample collection
began, Local Standard Time; mm/dd/yyyy.\';

COMMENT ON COLUMN LABDATA_QC.METHOD IS \'Instrument method used for
analysis.\';

COMMENT ON COLUMN LABDATA_QC.CONCENTRATION IS \'Concentration value for
parameter.\';

COMMENT ON COLUMN LABDATA_QC.ACTUAL_CONC IS \'Actual concentration of
laboratory measurement; mg/l.\';

COMMENT ON COLUMN LABDATA_QC.UNITS IS \'Units for the concentration
value\';

COMMENT ON COLUMN LABDATA_QC.TARGET IS \'Target concentration of QC
sample\';

COMMENT ON COLUMN LABDATA_QC.FOUND IS \'Actual concentration of QC
sample.\';

COMMENT ON COLUMN LABDATA_QC.RECOVERY IS \'Percent recovery of found vs
target QC sample.\';

COMMENT ON COLUMN LABDATA_QC.DIFFERENCE IS \'Percent difference.\';

COMMENT ON COLUMN LABDATA_QC.DILUTION IS \'Dilution factor for the
sample.\';

COMMENT ON COLUMN LABDATA_QC.DETECTION_LIMIT IS \'Detection limit for
the sample.\';

COMMENT ON COLUMN LABDATA_QC.QUALIFIER IS \'Data quality code for
laboratory codes.\';

COMMENT ON COLUMN LABDATA_QC.DMC_QUALIFIER IS \'Data quality code for
DMC codes.\';

COMMENT ON COLUMN LABDATA_QC.EXTRACTION_DATE IS \'Date filter was
extracted.\';

COMMENT ON COLUMN LABDATA_QC.ANALYSIS_DATE IS \'Date filter was
analyzed.\';

COMMENT ON COLUMN LABDATA_QC.UPDATE_DATE IS \'Date and time of last
record update.\';

\--

\-- LABDA_DMCQUAL_CD (Table)

\--

\-- Row count:2

CREATE TABLE LABDA_DMCQUAL_CD

(

CODE VARCHAR2(10 BYTE) NOT NULL,

DESCRIPTION VARCHAR2(255 BYTE) NULL,

VALID CHAR(1 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_LABDA_DMCQUAL_CD

PRIMARY KEY

(CODE)

);

COMMENT ON TABLE LABDA_DMCQUAL_CD IS \'Foreign key table for
DMC_QUALIFIER in LABDATA\';

COMMENT ON COLUMN LABDA_DMCQUAL_CD.CODE IS \'Code\';

COMMENT ON COLUMN LABDA_DMCQUAL_CD.DESCRIPTION IS \'Description of
code.\';

COMMENT ON COLUMN LABDA_DMCQUAL_CD.VALID IS \'Does this code indicate a
valid (V) or invalid (I) data record?\';

COMMENT ON COLUMN LABDA_DMCQUAL_CD.UPDATE_DATE IS \'Date and time of
last record update\';

\--

\-- LABDA_METHOD_CD (Table)

\--

\-- Row count:10

CREATE TABLE LABDA_METHOD_CD

(

CODE VARCHAR2(10 BYTE) NOT NULL,

DESCRIPTION VARCHAR2(255 BYTE) NULL,

VALID CHAR(1 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_LABDA_METHOD_CD

PRIMARY KEY

(CODE)

);

COMMENT ON TABLE LABDA_METHOD_CD IS \'Foreign key table for METHOD in
LABDATA\';

COMMENT ON COLUMN LABDA_METHOD_CD.CODE IS \'Code\';

COMMENT ON COLUMN LABDA_METHOD_CD.DESCRIPTION IS \'Description of
code.\';

COMMENT ON COLUMN LABDA_METHOD_CD.VALID IS \'Does this code indicate a
valid (V) or invalid (I) data record?\';

COMMENT ON COLUMN LABDA_METHOD_CD.UPDATE_DATE IS \'Date and time of last
record update\';

\--

\-- LABDA_QUALIF_CD (Table)

\--

\-- Row count:5

CREATE TABLE LABDA_QUALIF_CD

(

CODE VARCHAR2(10 BYTE) NOT NULL,

DESCRIPTION VARCHAR2(255 BYTE) NULL,

VALID CHAR(1 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_LABDA_QUALIF_CD

PRIMARY KEY

(CODE)

);

COMMENT ON TABLE LABDA_QUALIF_CD IS \'Foreign key table for QUALIFIER in
LABDATA\';

COMMENT ON COLUMN LABDA_QUALIF_CD.CODE IS \'Code\';

COMMENT ON COLUMN LABDA_QUALIF_CD.DESCRIPTION IS \'Description of
code.\';

COMMENT ON COLUMN LABDA_QUALIF_CD.VALID IS \'Does this code indicate a
valid (V) or invalid (I) data record?\';

COMMENT ON COLUMN LABDA_QUALIF_CD.UPDATE_DATE IS \'Date and time of last
record update\';

\--

\-- LEAF_ANGLE (Table)

\--

\-- Row count:9

CREATE TABLE LEAF_ANGLE

(

LEAF_CLASS NUMBER NOT NULL,

LEAF_FRACTION NUMBER(12,4) NULL,

LEAF_ANGLE_COSINE NUMBER(12,4) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_LEAF_ANGLE

PRIMARY KEY

(LEAF_CLASS)

);

COMMENT ON TABLE LEAF_ANGLE IS \'Leaf angle data used as input to the
MLM model.\';

COMMENT ON COLUMN LEAF_ANGLE.LEAF_CLASS IS \'Used by Multi-Layer Model
(MLM) - index used to order the leaf fraction and leaf angle cosine
values.\';

COMMENT ON COLUMN LEAF_ANGLE.LEAF_FRACTION IS \'Used by Multi-Layer
Model (MLM) - fraction of leaves at each angle.\';

COMMENT ON COLUMN LEAF_ANGLE.LEAF_ANGLE_COSINE IS \'Used by Multi-Layer
Model (MLM) - cosine of leaf normal vector to the zenith.\';

COMMENT ON COLUMN LEAF_ANGLE.UPDATE_DATE IS \'Date and time of last
record update\';

\--

\-- METDATA (Table)

\--

\-- Dependencies:

\-- METDA_F_CD (Table)

\-- OZONE_F_CD (Table)

\-- METDA_QACODE_CD (Table)

\--

\-- Row count:12432274

CREATE TABLE METDATA

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

DATE_TIME DATE NOT NULL,

TEMPERATURE NUMBER(16,4) NULL,

TEMPERATURE_F VARCHAR2(3 BYTE) NULL,

TEMPERATURE_DELTA NUMBER(16,4) NULL,

TEMPERATURE_DELTA_F VARCHAR2(3 BYTE) NULL,

RELATIVE_HUMIDITY NUMBER(16,4) NULL,

RELATIVE_HUMIDITY_F VARCHAR2(3 BYTE) NULL,

SOLAR_RADIATION NUMBER(16,4) NULL,

SOLAR_RADIATION_F VARCHAR2(3 BYTE) NULL,

OZONE NUMBER(16,4) NULL,

OZONE_F VARCHAR2(3 BYTE) NULL,

PRECIPITATION NUMBER(16,4) NULL,

PRECIPITATION_F VARCHAR2(3 BYTE) NULL,

WINDSPEED NUMBER(16,4) NULL,

WINDSPEED_F VARCHAR2(3 BYTE) NULL,

WIND_DIRECTION NUMBER(16,4) NULL,

WIND_DIRECTION_F VARCHAR2(3 BYTE) NULL,

SIGMA_THETA NUMBER(16,4) NULL,

SIGMA_THETA_F VARCHAR2(3 BYTE) NULL,

FLOW_RATE NUMBER(16,4) NULL,

FLOW_RATE_F VARCHAR2(3 BYTE) NULL,

WINDSPEED_SCALAR NUMBER(16,4) NULL,

WINDSPEED_SCALAR_F VARCHAR2(3 BYTE) NULL,

WETNESS NUMBER(16,4) NULL,

WETNESS_F VARCHAR2(3 BYTE) NULL,

QA_CODE VARCHAR2(2 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_METDATA

PRIMARY KEY

(SITE_ID, DATE_TIME),

CONSTRAINT FK_MET_DELTAF

FOREIGN KEY (TEMPERATURE_DELTA_F)

REFERENCES METDA_F_CD (CODE),

CONSTRAINT FK_MET_FLOWF

FOREIGN KEY (FLOW_RATE_F)

REFERENCES METDA_F_CD (CODE),

CONSTRAINT FK_MET_OZONEF

FOREIGN KEY (OZONE_F)

REFERENCES OZONE_F_CD (CODE),

CONSTRAINT FK_MET_PRECIPF

FOREIGN KEY (PRECIPITATION_F)

REFERENCES METDA_F_CD (CODE),

CONSTRAINT FK_MET_QACODE

FOREIGN KEY (QA_CODE)

REFERENCES METDA_QACODE_CD (CODE),

CONSTRAINT FK_MET_RHF

FOREIGN KEY (RELATIVE_HUMIDITY_F)

REFERENCES METDA_F_CD (CODE),

CONSTRAINT FK_MET_SIGMAF

FOREIGN KEY (SIGMA_THETA_F)

REFERENCES METDA_F_CD (CODE),

CONSTRAINT FK_MET_SOLRADF

FOREIGN KEY (SOLAR_RADIATION_F)

REFERENCES METDA_F_CD (CODE),

CONSTRAINT FK_MET_TEMPF

FOREIGN KEY (TEMPERATURE_F)

REFERENCES METDA_F_CD (CODE),

CONSTRAINT FK_MET_WETNESSF

FOREIGN KEY (WETNESS_F)

REFERENCES METDA_F_CD (CODE),

CONSTRAINT FK_MET_WINDDIRF

FOREIGN KEY (WIND_DIRECTION_F)

REFERENCES METDA_F_CD (CODE),

CONSTRAINT FK_MET_WINDSCALARF

FOREIGN KEY (WINDSPEED_SCALAR_F)

REFERENCES METDA_F_CD (CODE),

CONSTRAINT FK_MET_WINDSPEEDF

FOREIGN KEY (WINDSPEED_F)

REFERENCES METDA_F_CD (CODE)

)

PARTITION BY RANGE (DATE_TIME)

(

PARTITION Y1987 VALUES LESS THAN (TO_DATE(\' 1988-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y1988 VALUES LESS THAN (TO_DATE(\' 1989-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y1989 VALUES LESS THAN (TO_DATE(\' 1990-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y1990 VALUES LESS THAN (TO_DATE(\' 1991-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y1991 VALUES LESS THAN (TO_DATE(\' 1992-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y1992 VALUES LESS THAN (TO_DATE(\' 1993-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y1993 VALUES LESS THAN (TO_DATE(\' 1994-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y1994 VALUES LESS THAN (TO_DATE(\' 1995-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y1995 VALUES LESS THAN (TO_DATE(\' 1996-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y1996 VALUES LESS THAN (TO_DATE(\' 1997-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y1997 VALUES LESS THAN (TO_DATE(\' 1998-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y1998 VALUES LESS THAN (TO_DATE(\' 1999-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y1999 VALUES LESS THAN (TO_DATE(\' 2000-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y2000 VALUES LESS THAN (TO_DATE(\' 2001-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y2001 VALUES LESS THAN (TO_DATE(\' 2002-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y2002 VALUES LESS THAN (TO_DATE(\' 2003-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y2003 VALUES LESS THAN (TO_DATE(\' 2004-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y2004 VALUES LESS THAN (TO_DATE(\' 2005-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y2005 VALUES LESS THAN (TO_DATE(\' 2006-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y2006 VALUES LESS THAN (TO_DATE(\' 2007-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y2007 VALUES LESS THAN (TO_DATE(\' 2008-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y2008 VALUES LESS THAN (TO_DATE(\' 2009-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y2009 VALUES LESS THAN (TO_DATE(\' 2010-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y2010 VALUES LESS THAN (TO_DATE(\' 2011-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION OTHER VALUES LESS THAN (MAXVALUE)

);

COMMENT ON TABLE METDATA IS \'Hourly meteorological and ozone
concentration data.\';

COMMENT ON COLUMN METDATA.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN METDATA.DATE_TIME IS \'Date and time sample collection
began, Local Standard Time; mm/dd/yyyy hh:mm:ss.\';

COMMENT ON COLUMN METDATA.TEMPERATURE IS \'Temperature; degrees C.\';

COMMENT ON COLUMN METDATA.TEMPERATURE_F IS \'Data quality code for
TEMPERATURE.\';

COMMENT ON COLUMN METDATA.TEMPERATURE_DELTA IS \'Temperature difference
between 9m and 2m probes; Degrees C.\';

COMMENT ON COLUMN METDATA.TEMPERATURE_DELTA_F IS \'Data quality code for
TEMPERATURE_DELTA.\';

COMMENT ON COLUMN METDATA.RELATIVE_HUMIDITY IS \'Percent of relative
humidity.\';

COMMENT ON COLUMN METDATA.RELATIVE_HUMIDITY_F IS \'Data quality code for
RELATIVE_HUMIDITY.\';

COMMENT ON COLUMN METDATA.SOLAR_RADIATION IS \'Solar Radiation;
watt/square meter.\';

COMMENT ON COLUMN METDATA.SOLAR_RADIATION_F IS \'Data quality code for
SOLAR_RADIATION.\';

COMMENT ON COLUMN METDATA.OZONE IS \'Ozone concentration; ppb.\';

COMMENT ON COLUMN METDATA.OZONE_F IS \'Data quality code for OZONE.\';

COMMENT ON COLUMN METDATA.PRECIPITATION IS \'Precipitation; mm/hr.\';

COMMENT ON COLUMN METDATA.PRECIPITATION_F IS \'Data quality code for
PRECIPITATION.\';

COMMENT ON COLUMN METDATA.WINDSPEED IS \'Vector wind speed; m/sec.\';

COMMENT ON COLUMN METDATA.WINDSPEED_F IS \'Data quality code for
WINDSPEED.\';

COMMENT ON COLUMN METDATA.WIND_DIRECTION IS \'Wind direction; decimal
degrees.\';

COMMENT ON COLUMN METDATA.WIND_DIRECTION_F IS \'Data quality code for
WIND_DIRECTION.\';

COMMENT ON COLUMN METDATA.SIGMA_THETA IS \'Standard deviation of wind
direction; decimal degrees.\';

COMMENT ON COLUMN METDATA.SIGMA_THETA_F IS \'Data quality code for
SIGMA_THETA.\';

COMMENT ON COLUMN METDATA.FLOW_RATE IS \'Flow rate; lpm.\';

COMMENT ON COLUMN METDATA.FLOW_RATE_F IS \'Data quality code for
FLOW_RATE.\';

COMMENT ON COLUMN METDATA.WINDSPEED_SCALAR IS \'Scalar wind speed;
m/sec.\';

COMMENT ON COLUMN METDATA.WINDSPEED_SCALAR_F IS \'Data quality code for
WINDSPEED_SCALAR.\';

COMMENT ON COLUMN METDATA.WETNESS IS \'Wetness.\';

COMMENT ON COLUMN METDATA.WETNESS_F IS \'Data quality code for
WETNESS.\';

COMMENT ON COLUMN METDATA.QA_CODE IS \'Quality assurance level of the
record. (see QAPP for definition of quality assurance levels)\';

COMMENT ON COLUMN METDATA.UPDATE_DATE IS \'Date and time of last record
update.\';

\--

\-- METDA_F_CD (Table)

\--

\-- Row count:13

CREATE TABLE METDA_F_CD

(

CODE VARCHAR2(10 BYTE) NOT NULL,

DESCRIPTION VARCHAR2(255 BYTE) NULL,

VALID CHAR(1 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_METDA_F_CD

PRIMARY KEY

(CODE)

);

COMMENT ON TABLE METDA_F_CD IS \'Foreign key table for data quality
codes used in all %\_F columns in METDATA\';

COMMENT ON COLUMN METDA_F_CD.CODE IS \'Code\';

COMMENT ON COLUMN METDA_F_CD.DESCRIPTION IS \'Description of code.\';

COMMENT ON COLUMN METDA_F_CD.VALID IS \'Does this code indicate a valid
(V) or invalid (I) data record?\';

COMMENT ON COLUMN METDA_F_CD.UPDATE_DATE IS \'Date and time of last
record update\';

\--

\-- METDA_QACODE_CD (Table)

\--

\-- Row count:7

CREATE TABLE METDA_QACODE_CD

(

CODE VARCHAR2(10 BYTE) NOT NULL,

DESCRIPTION VARCHAR2(255 BYTE) NULL,

VALID CHAR(1 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_METDA_QACODE_CD

PRIMARY KEY

(CODE)

);

COMMENT ON TABLE METDA_QACODE_CD IS \'Foreign key table for QA_CODE in
METDATA\';

COMMENT ON COLUMN METDA_QACODE_CD.UPDATE_DATE IS \'Date and time of last
record update\';

COMMENT ON COLUMN METDA_QACODE_CD.CODE IS \'Code\';

COMMENT ON COLUMN METDA_QACODE_CD.DESCRIPTION IS \'Description of
code.\';

COMMENT ON COLUMN METDA_QACODE_CD.VALID IS \'Does this code indicate a
valid (V) or invalid (I) data record?\';

\--

\-- MODEL_OUTPUT (Table)

\--

\-- Dependencies:

\-- METDATA (Table)

\-- DRYCHEM (Table)

\-- MODEL_QA_CODE_CD (Table)

\--

\-- Row count:11291229

CREATE TABLE MODEL_OUTPUT

(

SITE_ID VARCHAR2(6 BYTE) NULL,

DATE_TIME DATE NULL,

LAB_KEY VARCHAR2(15 BYTE) NULL,

WEEK NUMBER(11) NULL,

OZONE_VD NUMBER(12,8) NULL,

OZONE_FLUX NUMBER(12,8) NULL,

OZONE_CONC NUMBER(12,8) NULL,

SO2_VD NUMBER(12,8) NULL,

SO2_FLUX NUMBER(12,8) NULL,

SO2_CONC NUMBER(12,8) NULL,

HNO3_VD NUMBER(12,8) NULL,

HNO3_FLUX NUMBER(12,8) NULL,

HNO3_CONC NUMBER(12,8) NULL,

PARTICULATE_VD NUMBER(12,8) NULL,

SO4_FLUX NUMBER(12,8) NULL,

SO4_CONC NUMBER(12,8) NULL,

NO3_FLUX NUMBER(12,8) NULL,

NO3_CONC NUMBER(12,8) NULL,

NH4_FLUX NUMBER(12,8) NULL,

NH4_CONC NUMBER(12,8) NULL,

CA_FLUX NUMBER(12,8) NULL,

CA_CONC NUMBER(12,8) NULL,

MG_FLUX NUMBER(12,8) NULL,

MG_CONC NUMBER(12,8) NULL,

NA_FLUX NUMBER(12,8) NULL,

NA_CONC NUMBER(12,8) NULL,

K_FLUX NUMBER(12,8) NULL,

K_CONC NUMBER(12,8) NULL,

CL_FLUX NUMBER(12,8) NULL,

CL_CONC NUMBER(12,8) NULL,

VERSION_NUMBER VARCHAR2(7 BYTE) NULL,

QA_CODE VARCHAR2(2 BYTE) NULL,

UPDATE_DATE DATE NULL,

CHECK (\"DATE_TIME\" IS NOT NULL) DISABLE,

CHECK (\"SITE_ID\" IS NOT NULL) DISABLE,

CONSTRAINT PK_MODEL_OUTPUT

PRIMARY KEY

(SITE_ID, DATE_TIME) DISABLE,

CONSTRAINT REFDRYCHEM

FOREIGN KEY (LAB_KEY)

REFERENCES DRYCHEM (LAB_KEY) DISABLE,

CONSTRAINT MODEL_OUTPUT_R01

FOREIGN KEY (SITE_ID, DATE_TIME)

REFERENCES METDATA (SITE_ID,DATE_TIME) DISABLE,

CONSTRAINT MODEL_OUTPUT_R02

FOREIGN KEY (QA_CODE)

REFERENCES MODEL_QA_CODE_CD (CODE) DISABLE

);

COMMENT ON TABLE MODEL_OUTPUT IS \'Multi Layer Model (MLM) output
providing hourly estimates for concentration, dry deposition velocity,
and dry deposition flux.\';

COMMENT ON COLUMN MODEL_OUTPUT.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN MODEL_OUTPUT.DATE_TIME IS \'Date and time sample
collection began, Local Standard Time; mm/dd/yyyy hh:mm:ss.\';

COMMENT ON COLUMN MODEL_OUTPUT.LAB_KEY IS \'Laboratory sample
identification number.\';

COMMENT ON COLUMN MODEL_OUTPUT.WEEK IS \'Week containing sample period,
Tuesday 0900-Tuesday 0800 in sequential order.\';

COMMENT ON COLUMN MODEL_OUTPUT.OZONE_VD IS \'Ozone (O3) deposition
velocity; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT.OZONE_FLUX IS \'Total ozone (O3) flux;
kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT.OZONE_CONC IS \'Ozone (O3) concentration;
ppb.\';

COMMENT ON COLUMN MODEL_OUTPUT.SO2_VD IS \'Sulfur dioxide (SO2)
deposition velocity; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT.SO2_FLUX IS \'Total sulfur dioxide (SO2)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT.SO2_CONC IS \'Sulfur dioxide (SO2)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT.HNO3_VD IS \'Nitric acid (HNO3)
deposition velocity; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT.HNO3_FLUX IS \'Total nitric acid (HNO3)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT.HNO3_CONC IS \'Nitric acid (HNO3)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT.PARTICULATE_VD IS \'Particulate
deposition velocity, used for SO4_FLUX, NO3_FLUX and NH4_FLUX;
cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT.SO4_FLUX IS \'Total sulfate (SO4) flux;
kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT.SO4_CONC IS \'Sulfate (SO4)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT.NO3_FLUX IS \'Particulate nitrate (NO3)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT.NO3_CONC IS \'Particulate nitrate (NO3)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT.NH4_FLUX IS \'Total ammonium (NH4) flux;
kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT.NH4_CONC IS \'Ammonium (NH4)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT.CA_FLUX IS \'Total calcium (Ca) flux;
kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT.CA_CONC IS \'Calcium (Ca) concentration;
ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT.MG_FLUX IS \'Total magnesium (Mg) flux;
kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT.MG_CONC IS \'Magnesium (Mg)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT.NA_FLUX IS \'Total sodium (Na) flux;
kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT.NA_CONC IS \'Sodium (Na) concentration;
ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT.K_FLUX IS \'Total potassium (K) flux;
kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT.K_CONC IS \'Potassium (K) concentration;
ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT.CL_FLUX IS \'Total chloride (Cl) flux;
kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT.CL_CONC IS \'Chloride (Cl) concentration;
ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT.VERSION_NUMBER IS \'Version number of the
deposition model, as described in the MODEL_VERSION table.\';

COMMENT ON COLUMN MODEL_OUTPUT.QA_CODE IS \'Quality assurance level of
the record. (see QAPP for definition of quality assurance levels)\';

COMMENT ON COLUMN MODEL_OUTPUT.UPDATE_DATE IS \'Date and time of last
record update.\';

\--

\-- MODEL_OUTPUT_ANNUAL (Table)

\--

\-- Row count:1404

CREATE TABLE MODEL_OUTPUT_ANNUAL

(

SITE_ID VARCHAR2(6 BYTE) NULL,

DATEON DATE NULL,

DATEOFF DATE NULL,

YEAR INTEGER NOT NULL,

OZONE_VD NUMBER NULL,

OZONE_VD_PCT NUMBER NULL,

OZONE_FLUX NUMBER NULL,

OZONE_FLUX_PCT NUMBER NULL,

OZONE_CONC NUMBER NULL,

OZONE_CONC_PCT NUMBER NULL,

SO2_VD NUMBER NULL,

SO2_VD_PCT NUMBER NULL,

SO2_FLUX NUMBER NULL,

SO2_FLUX_PCT NUMBER NULL,

SO2_CONC NUMBER NULL,

SO2_CONC_PCT NUMBER NULL,

HNO3_VD NUMBER NULL,

HNO3_VD_PCT NUMBER NULL,

HNO3_FLUX NUMBER NULL,

HNO3_FLUX_PCT NUMBER NULL,

HNO3_CONC NUMBER NULL,

HNO3_CONC_PCT NUMBER NULL,

PARTICULATE_VD NUMBER NULL,

PARTICULATE_VD_PCT NUMBER NULL,

SO4_FLUX NUMBER NULL,

SO4_FLUX_PCT NUMBER NULL,

SO4_CONC NUMBER NULL,

SO4_CONC_PCT NUMBER NULL,

NO3_FLUX NUMBER NULL,

NO3_FLUX_PCT NUMBER NULL,

NO3_CONC NUMBER NULL,

NO3_CONC_PCT NUMBER NULL,

NH4_FLUX NUMBER NULL,

NH4_FLUX_PCT NUMBER NULL,

NH4_CONC NUMBER NULL,

NH4_CONC_PCT NUMBER NULL,

CA_FLUX NUMBER NULL,

CA_FLUX_PCT NUMBER NULL,

CA_CONC NUMBER NULL,

CA_CONC_PCT NUMBER NULL,

MG_FLUX NUMBER NULL,

MG_FLUX_PCT NUMBER NULL,

MG_CONC NUMBER NULL,

MG_CONC_PCT NUMBER NULL,

NA_FLUX NUMBER NULL,

NA_FLUX_PCT NUMBER NULL,

NA_CONC NUMBER NULL,

NA_CONC_PCT NUMBER NULL,

K_FLUX NUMBER NULL,

K_FLUX_PCT NUMBER NULL,

K_CONC NUMBER NULL,

K_CONC_PCT NUMBER NULL,

CL_FLUX NUMBER NULL,

CL_FLUX_PCT NUMBER NULL,

CL_CONC NUMBER NULL,

CL_CONC_PCT NUMBER NULL,

VERSION_NUMBER VARCHAR2(8 BYTE) NULL,

UPDATE_DATE DATE NULL

);

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.SITE_ID IS \'Site identification
code.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.DATEON IS \'Date and time of first
hourly measurement in year, Local Standard Time; mm/dd/yyyy hh:mm:ss.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.DATEOFF IS \'Date and time of
final hourly measurement in year, Local Standard Time; mm/dd/yyyy
hh:mm:ss.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.YEAR IS \'Year of data, using
standard Tuesday to Tuesday weeks.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.OZONE_VD IS \'Mean ozone (O3)
deposition velocity; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.OZONE_VD_PCT IS \'Percent
completeness of hourly values aggregated to OZONE_VD, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.OZONE_FLUX IS \'Total ozone (O3)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.OZONE_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to OZONE_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.OZONE_CONC IS \'Mean ozone (O3)
concentration; ppb.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.OZONE_CONC_PCT IS \'Percent
completeness of hourly records aggregated to OZONE_CONC, advised
criteria is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.SO2_VD IS \'Mean sulfur dioxide
(SO2) deposition velocity; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.SO2_VD_PCT IS \'Percent
completeness of hourly values aggregated to SO2_VD, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.SO2_FLUX IS \'Total sulfur dioxide
(SO2) flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.SO2_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to SO2_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.SO2_CONC IS \'Mean sulfur dioxide
(SO2) concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.SO2_CONC_PCT IS \'Percent
completeness of hourly values aggregated to SO2_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.HNO3_VD IS \'Mean nitric acid
(HNO3) deposition velocity; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.HNO3_VD_PCT IS \'Percent
completeness of hourly values aggregated to HNO3_VD, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.HNO3_FLUX IS \'Total nitric acid
(HNO3) flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.HNO3_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to HNO3_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.HNO3_CONC IS \'Mean nitric acid
(HNO3) concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.HNO3_CONC_PCT IS \'Percent
completeness of hourly values aggregated to HNO3_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.PARTICULATE_VD IS \'Mean
particulate deposition velocity, used for SO4_FLUX, NO3_FLUX and
NH4_FLUX; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.PARTICULATE_VD_PCT IS \'Percent
completeness of hourly values aggregated to PARTICULATE_VD, advised
criteria is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.SO4_FLUX IS \'Total sulfate (SO4)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.SO4_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to SO4_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.SO4_CONC IS \'Mean sulfate (SO4)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.SO4_CONC_PCT IS \'Percent
completeness of hourly values aggregated to SO4_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.NO3_FLUX IS \'Particulate nitrate
(NO3) flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.NO3_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to NO3_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.NO3_CONC IS \'Particulate nitrate
(NO3) concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.NO3_CONC_PCT IS \'Percent
completeness of hourly values aggregated to NO3_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.NH4_FLUX IS \'Total ammonium (NH4)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.NH4_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to NH4_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.NH4_CONC IS \'Mean ammonium (NH4)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.NH4_CONC_PCT IS \'Percent
completeness of hourly values aggregated to NH4_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.CA_FLUX IS \'Total calcium (Ca)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.CA_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to CA_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.CA_CONC IS \'Mean calcium (Ca)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.CA_CONC_PCT IS \'Percent
completeness of hourly values aggregated to CA_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.MG_FLUX IS \'Total magnesium (Mg)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.MG_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to MG_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.MG_CONC IS \'Mean magnesium (Mg)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.MG_CONC_PCT IS \'Percent
completeness of hourly values aggregated to MG_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.NA_FLUX IS \'Total sodium (Na)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.NA_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to NA_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.NA_CONC IS \'Mean sodium (Na)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.NA_CONC_PCT IS \'Percent
completeness of hourly values aggregated to NA_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.K_FLUX IS \'Total potassium (K)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.K_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to K_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.K_CONC IS \'Mean potassium (K)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.K_CONC_PCT IS \'Percent
completeness of hourly values aggregated to K_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.CL_FLUX IS \'Total chloride (Cl)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.CL_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to CL_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.CL_CONC IS \'Mean chloride (Cl)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.CL_CONC_PCT IS \'Percent
completeness of hourly values aggregated to CL_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.VERSION_NUMBER IS \'Version number
of the deposition model, as described in the MODEL_VERSION table.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.UPDATE_DATE IS \'Date and time of
last record update.\';

\--

\-- MODEL_OUTPUT_QUARTER (Table)

\--

\-- Row count:5393

CREATE TABLE MODEL_OUTPUT_QUARTER

(

SITE_ID VARCHAR2(6 BYTE) NULL,

DATEON DATE NULL,

DATEOFF DATE NULL,

QUARTER NUMBER NULL,

YEAR INTEGER NOT NULL,

OZONE_VD NUMBER NULL,

OZONE_VD_PCT NUMBER NULL,

OZONE_FLUX NUMBER NULL,

OZONE_FLUX_PCT NUMBER NULL,

OZONE_CONC NUMBER NULL,

OZONE_CONC_PCT NUMBER NULL,

SO2_VD NUMBER NULL,

SO2_VD_PCT NUMBER NULL,

SO2_FLUX NUMBER NULL,

SO2_FLUX_PCT NUMBER NULL,

SO2_CONC NUMBER NULL,

SO2_CONC_PCT NUMBER NULL,

HNO3_VD NUMBER NULL,

HNO3_VD_PCT NUMBER NULL,

HNO3_FLUX NUMBER NULL,

HNO3_FLUX_PCT NUMBER NULL,

HNO3_CONC NUMBER NULL,

HNO3_CONC_PCT NUMBER NULL,

PARTICULATE_VD NUMBER NULL,

PARTICULATE_VD_PCT NUMBER NULL,

SO4_FLUX NUMBER NULL,

SO4_FLUX_PCT NUMBER NULL,

SO4_CONC NUMBER NULL,

SO4_CONC_PCT NUMBER NULL,

NO3_FLUX NUMBER NULL,

NO3_FLUX_PCT NUMBER NULL,

NO3_CONC NUMBER NULL,

NO3_CONC_PCT NUMBER NULL,

NH4_FLUX NUMBER NULL,

NH4_FLUX_PCT NUMBER NULL,

NH4_CONC NUMBER NULL,

NH4_CONC_PCT NUMBER NULL,

CA_FLUX NUMBER NULL,

CA_FLUX_PCT NUMBER NULL,

CA_CONC NUMBER NULL,

CA_CONC_PCT NUMBER NULL,

MG_FLUX NUMBER NULL,

MG_FLUX_PCT NUMBER NULL,

MG_CONC NUMBER NULL,

MG_CONC_PCT NUMBER NULL,

NA_FLUX NUMBER NULL,

NA_FLUX_PCT NUMBER NULL,

NA_CONC NUMBER NULL,

NA_CONC_PCT NUMBER NULL,

K_FLUX NUMBER NULL,

K_FLUX_PCT NUMBER NULL,

K_CONC NUMBER NULL,

K_CONC_PCT NUMBER NULL,

CL_FLUX NUMBER NULL,

CL_FLUX_PCT NUMBER NULL,

CL_CONC NUMBER NULL,

CL_CONC_PCT NUMBER NULL,

VERSION_NUMBER VARCHAR2(8 BYTE) NULL,

UPDATE_DATE DATE NULL

);

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.SITE_ID IS \'Site identification
code.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.DATEON IS \'Date and time of
first hourly measurement in quarter, Local Standard Time; mm/dd/yyyy
hh:mm:ss.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.DATEOFF IS \'Date and time of
final hourly measurement in quarter, Local Standard Time; mm/dd/yyyy
hh:mm:ss.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.QUARTER IS \'Quarter of year.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.YEAR IS \'Year of data, using
standard Tuesday to Tuesday weeks.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.OZONE_VD IS \'Mean ozone (O3)
deposition velocity; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.OZONE_VD_PCT IS \'Percent
completeness of hourly values aggregated to OZONE_VD, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.OZONE_FLUX IS \'Total ozone (O3)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.OZONE_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to OZONE_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.OZONE_CONC IS \'Mean ozone (O3)
concentration; ppb.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.OZONE_CONC_PCT IS \'Percent
completeness of hourly records aggregated to OZONE_CONC, advised
criteria is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.SO2_VD IS \'Mean sulfur dioxide
(SO2) deposition velocity; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.SO2_VD_PCT IS \'Percent
completeness of hourly values aggregated to SO2_VD, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.SO2_FLUX IS \'Total sulfur
dioxide (SO2) flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.SO2_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to SO2_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.SO2_CONC IS \'Mean sulfur dioxide
(SO2) concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.SO2_CONC_PCT IS \'Percent
completeness of hourly values aggregated to SO2_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.HNO3_VD IS \'Mean nitric acid
(HNO3) deposition velocity; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.HNO3_VD_PCT IS \'Percent
completeness of hourly values aggregated to HNO3_VD, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.HNO3_FLUX IS \'Total nitric acid
(HNO3) flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.HNO3_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to HNO3_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.HNO3_CONC IS \'Mean nitric acid
(HNO3) concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.HNO3_CONC_PCT IS \'Percent
completeness of hourly values aggregated to HNO3_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.PARTICULATE_VD IS \'Mean
particulate deposition velocity, used for SO4_FLUX, NO3_FLUX and
NH4_FLUX; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.PARTICULATE_VD_PCT IS \'Percent
completeness of hourly values aggregated to PARTICULATE_VD, advised
criteria is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.SO4_FLUX IS \'Total sulfate (SO4)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.SO4_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to SO4_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.SO4_CONC IS \'Mean sulfate (SO4)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.SO4_CONC_PCT IS \'Percent
completeness of hourly values aggregated to SO4_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.NO3_FLUX IS \'Particulate nitrate
(NO3) flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.NO3_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to NO3_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.NO3_CONC IS \'Particulate nitrate
(NO3) concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.NO3_CONC_PCT IS \'Percent
completeness of hourly values aggregated to NO3_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.NH4_FLUX IS \'Total ammonium
(NH4) flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.NH4_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to NH4_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.NH4_CONC IS \'Mean ammonium (NH4)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.NH4_CONC_PCT IS \'Percent
completeness of hourly values aggregated to NH4_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.CA_FLUX IS \'Total calcium (Ca)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.CA_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to CA_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.CA_CONC IS \'Mean calcium (Ca)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.CA_CONC_PCT IS \'Percent
completeness of hourly values aggregated to CA_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.MG_FLUX IS \'Total magnesium (Mg)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.MG_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to MG_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.MG_CONC IS \'Mean magnesium (Mg)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.MG_CONC_PCT IS \'Percent
completeness of hourly values aggregated to MG_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.NA_FLUX IS \'Total sodium (Na)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.NA_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to NA_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.NA_CONC IS \'Mean sodium (Na)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.NA_CONC_PCT IS \'Percent
completeness of hourly values aggregated to NA_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.K_FLUX IS \'Total potassium (K)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.K_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to K_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.K_CONC IS \'Mean potassium (K)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.K_CONC_PCT IS \'Percent
completeness of hourly values aggregated to K_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.CL_FLUX IS \'Total chloride (Cl)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.CL_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to CL_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.CL_CONC IS \'Mean chloride (Cl)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.CL_CONC_PCT IS \'Percent
completeness of hourly values aggregated to CL_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.VERSION_NUMBER IS \'Version
number of the deposition model, as described in the MODEL_VERSION
table.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.UPDATE_DATE IS \'Date and time of
last record update.\';

\--

\-- MODEL_OUTPUT_SEASON (Table)

\--

\-- Row count:5465

CREATE TABLE MODEL_OUTPUT_SEASON

(

SITE_ID VARCHAR2(6 BYTE) NULL,

DATEON DATE NULL,

DATEOFF DATE NULL,

SEASON VARCHAR2(2 BYTE) NULL,

YEAR NUMBER NULL,

OZONE_VD NUMBER NULL,

OZONE_VD_PCT NUMBER NULL,

OZONE_FLUX NUMBER NULL,

OZONE_FLUX_PCT NUMBER NULL,

OZONE_CONC NUMBER NULL,

OZONE_CONC_PCT NUMBER NULL,

SO2_VD NUMBER NULL,

SO2_VD_PCT NUMBER NULL,

SO2_FLUX NUMBER NULL,

SO2_FLUX_PCT NUMBER NULL,

SO2_CONC NUMBER NULL,

SO2_CONC_PCT NUMBER NULL,

HNO3_VD NUMBER NULL,

HNO3_VD_PCT NUMBER NULL,

HNO3_FLUX NUMBER NULL,

HNO3_FLUX_PCT NUMBER NULL,

HNO3_CONC NUMBER NULL,

HNO3_CONC_PCT NUMBER NULL,

PARTICULATE_VD NUMBER NULL,

PARTICULATE_VD_PCT NUMBER NULL,

SO4_FLUX NUMBER NULL,

SO4_FLUX_PCT NUMBER NULL,

SO4_CONC NUMBER NULL,

SO4_CONC_PCT NUMBER NULL,

NO3_FLUX NUMBER NULL,

NO3_FLUX_PCT NUMBER NULL,

NO3_CONC NUMBER NULL,

NO3_CONC_PCT NUMBER NULL,

NH4_FLUX NUMBER NULL,

NH4_FLUX_PCT NUMBER NULL,

NH4_CONC NUMBER NULL,

NH4_CONC_PCT NUMBER NULL,

CA_FLUX NUMBER NULL,

CA_FLUX_PCT NUMBER NULL,

CA_CONC NUMBER NULL,

CA_CONC_PCT NUMBER NULL,

MG_FLUX NUMBER NULL,

MG_FLUX_PCT NUMBER NULL,

MG_CONC NUMBER NULL,

MG_CONC_PCT NUMBER NULL,

NA_FLUX NUMBER NULL,

NA_FLUX_PCT NUMBER NULL,

NA_CONC NUMBER NULL,

NA_CONC_PCT NUMBER NULL,

K_FLUX NUMBER NULL,

K_FLUX_PCT NUMBER NULL,

K_CONC NUMBER NULL,

K_CONC_PCT NUMBER NULL,

CL_FLUX NUMBER NULL,

CL_FLUX_PCT NUMBER NULL,

CL_CONC NUMBER NULL,

CL_CONC_PCT NUMBER NULL,

VERSION_NUMBER VARCHAR2(8 BYTE) NULL,

UPDATE_DATE DATE NULL

);

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.SITE_ID IS \'Site identification
code.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.DATEON IS \'Date and time of first
hourly measurement in season, Local Standard Time; mm/dd/yyyy
hh:mm:ss.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.DATEOFF IS \'Date and time of
final hourly measurement in season, Local Standard Time; mm/dd/yyyy
hh:mm:ss.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.SEASON IS \'Season of year.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.YEAR IS \'Year of data, using
standard Tuesday to Tuesday weeks.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.OZONE_VD IS \'Mean ozone (O3)
deposition velocity; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.OZONE_VD_PCT IS \'Percent
completeness of hourly values aggregated to OZONE_VD, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.OZONE_FLUX IS \'Total ozone (O3)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.OZONE_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to OZONE_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.OZONE_CONC IS \'Mean ozone (O3)
concentration; ppb.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.OZONE_CONC_PCT IS \'Percent
completeness of hourly records aggregated to OZONE_CONC, advised
criteria is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.SO2_VD IS \'Mean sulfur dioxide
(SO2) deposition velocity; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.SO2_VD_PCT IS \'Percent
completeness of hourly values aggregated to SO2_VD, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.SO2_FLUX IS \'Total sulfur dioxide
(SO2) flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.SO2_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to SO2_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.SO2_CONC IS \'Mean sulfur dioxide
(SO2) concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.SO2_CONC_PCT IS \'Percent
completeness of hourly values aggregated to SO2_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.HNO3_VD IS \'Mean nitric acid
(HNO3) deposition velocity; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.HNO3_VD_PCT IS \'Percent
completeness of hourly values aggregated to HNO3_VD, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.HNO3_FLUX IS \'Total nitric acid
(HNO3) flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.HNO3_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to HNO3_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.HNO3_CONC IS \'Mean nitric acid
(HNO3) concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.HNO3_CONC_PCT IS \'Percent
completeness of hourly values aggregated to HNO3_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.PARTICULATE_VD IS \'Mean
particulate deposition velocity, used for SO4_FLUX, NO3_FLUX and
NH4_FLUX; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.PARTICULATE_VD_PCT IS \'Percent
completeness of hourly values aggregated to PARTICULATE_VD, advised
criteria is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.SO4_FLUX IS \'Total sulfate (SO4)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.SO4_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to SO4_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.SO4_CONC IS \'Mean sulfate (SO4)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.SO4_CONC_PCT IS \'Percent
completeness of hourly values aggregated to SO4_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.NO3_FLUX IS \'Particulate nitrate
(NO3) flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.NO3_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to NO3_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.NO3_CONC IS \'Particulate nitrate
(NO3) concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.NO3_CONC_PCT IS \'Percent
completeness of hourly values aggregated to NO3_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.NH4_FLUX IS \'Total ammonium (NH4)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.NH4_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to NH4_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.NH4_CONC IS \'Mean ammonium (NH4)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.NH4_CONC_PCT IS \'Percent
completeness of hourly values aggregated to NH4_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.CA_FLUX IS \'Total calcium (Ca)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.CA_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to CA_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.CA_CONC IS \'Mean calcium (Ca)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.CA_CONC_PCT IS \'Percent
completeness of hourly values aggregated to CA_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.MG_FLUX IS \'Total magnesium (Mg)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.MG_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to MG_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.MG_CONC IS \'Mean magnesium (Mg)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.MG_CONC_PCT IS \'Percent
completeness of hourly values aggregated to MG_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.NA_FLUX IS \'Total sodium (Na)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.NA_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to NA_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.NA_CONC IS \'Mean sodium (Na)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.NA_CONC_PCT IS \'Percent
completeness of hourly values aggregated to NA_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.K_FLUX IS \'Total potassium (K)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.K_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to K_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.K_CONC IS \'Mean potassium (K)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.K_CONC_PCT IS \'Percent
completeness of hourly values aggregated to K_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.CL_FLUX IS \'Total chloride (Cl)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.CL_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to CL_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.CL_CONC IS \'Mean chloride (Cl)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.CL_CONC_PCT IS \'Percent
completeness of hourly values aggregated to CL_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.VERSION_NUMBER IS \'Version number
of the deposition model, as described in the MODEL_VERSION table.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.UPDATE_DATE IS \'Date and time of
last record update.\';

\--

\-- MODEL_OUTPUT_WEEK (Table)

\--

\-- Row count:69622

CREATE TABLE MODEL_OUTPUT_WEEK

(

SITE_ID VARCHAR2(6 BYTE) NULL,

DATEON DATE NULL,

DATEOFF DATE NOT NULL,

MONTH INTEGER NOT NULL,

YEAR INTEGER NOT NULL,

OZONE_VD NUMBER(12,8) NULL,

OZONE_VD_PCT INTEGER NULL,

OZONE_FLUX NUMBER(12,8) NULL,

OZONE_FLUX_PCT INTEGER NULL,

OZONE_CONC NUMBER(12,8) NULL,

OZONE_CONC_PCT INTEGER NULL,

SO2_VD NUMBER(12,8) NULL,

SO2_VD_PCT INTEGER NULL,

SO2_FLUX NUMBER(12,8) NULL,

SO2_FLUX_PCT INTEGER NULL,

SO2_CONC NUMBER(12,8) NULL,

SO2_CONC_PCT INTEGER NULL,

HNO3_VD NUMBER(12,8) NULL,

HNO3_VD_PCT INTEGER NULL,

HNO3_FLUX NUMBER(12,8) NULL,

HNO3_FLUX_PCT INTEGER NULL,

HNO3_CONC NUMBER(12,8) NULL,

HNO3_CONC_PCT INTEGER NULL,

PARTICULATE_VD NUMBER(12,8) NULL,

PARTICULATE_VD_PCT INTEGER NULL,

SO4_FLUX NUMBER(12,8) NULL,

SO4_FLUX_PCT INTEGER NULL,

SO4_CONC NUMBER(12,8) NULL,

SO4_CONC_PCT INTEGER NULL,

NO3_FLUX NUMBER(12,8) NULL,

NO3_FLUX_PCT INTEGER NULL,

NO3_CONC NUMBER(12,8) NULL,

NO3_CONC_PCT INTEGER NULL,

NH4_FLUX NUMBER(12,8) NULL,

NH4_FLUX_PCT INTEGER NULL,

NH4_CONC NUMBER(12,8) NULL,

NH4_CONC_PCT INTEGER NULL,

CA_FLUX NUMBER(12,8) NULL,

CA_FLUX_PCT INTEGER NULL,

CA_CONC NUMBER(12,8) NULL,

CA_CONC_PCT INTEGER NULL,

MG_FLUX NUMBER(12,8) NULL,

MG_FLUX_PCT INTEGER NULL,

MG_CONC NUMBER(12,8) NULL,

MG_CONC_PCT INTEGER NULL,

NA_FLUX NUMBER(12,8) NULL,

NA_FLUX_PCT INTEGER NULL,

NA_CONC NUMBER(12,8) NULL,

NA_CONC_PCT INTEGER NULL,

K_FLUX NUMBER(12,8) NULL,

K_FLUX_PCT INTEGER NULL,

K_CONC NUMBER(12,8) NULL,

K_CONC_PCT INTEGER NULL,

CL_FLUX NUMBER(12,8) NULL,

CL_FLUX_PCT INTEGER NULL,

CL_CONC NUMBER(12,8) NULL,

CL_CONC_PCT INTEGER NULL,

VERSION_NUMBER VARCHAR2(8 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_MODEL_OUTPUT_WEEK

PRIMARY KEY

(SITE_ID, DATEON)

);

COMMENT ON TABLE MODEL_OUTPUT_WEEK IS \'Aggregated Multi Layer Model
(MLM) output providing weekly estimates for concentration, dry
deposition velocity, and dry deposition flux.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.SITE_ID IS \'Site identification
code.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.DATEON IS \'Date and time of first
hourly measurement in week, Local Standard Time; mm/dd/yyyy hh:mm:ss.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.DATEOFF IS \'Date and time of final
hourly measurement in week, Local Standard Time; mm/dd/yyyy hh:mm:ss.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.MONTH IS \'Month of year\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.YEAR IS \'Year of data, using
standard Tuesday to Tuesday weeks.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.OZONE_VD IS \'Mean ozone (O3)
deposition velocity; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.OZONE_VD_PCT IS \'Percent
completeness of hourly values aggregated to OZONE_VD, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.OZONE_FLUX IS \'Total ozone (O3)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.OZONE_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to OZONE_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.OZONE_CONC IS \'Mean ozone (O3)
concentration; ppb.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.OZONE_CONC_PCT IS \'Percent
completeness of hourly records aggregated to OZONE_CONC, advised
criteria is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.SO2_VD IS \'Mean sulfur dioxide
(SO2) deposition velocity; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.SO2_VD_PCT IS \'Percent completeness
of hourly values aggregated to SO2_VD, advised criteria is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.SO2_FLUX IS \'Total sulfur dioxide
(SO2) flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.SO2_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to SO2_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.SO2_CONC IS \'Mean sulfur dioxide
(SO2) concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.SO2_CONC_PCT IS \'Percent
completeness of hourly values aggregated to SO2_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.HNO3_VD IS \'Mean nitric acid (HNO3)
deposition velocity; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.HNO3_VD_PCT IS \'Percent
completeness of hourly values aggregated to HNO3_VD, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.HNO3_FLUX IS \'Total nitric acid
(HNO3) flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.HNO3_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to HNO3_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.HNO3_CONC IS \'Mean nitric acid
(HNO3) concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.HNO3_CONC_PCT IS \'Percent
completeness of hourly values aggregated to HNO3_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.PARTICULATE_VD IS \'Mean particulate
deposition velocity, used for SO4_FLUX, NO3_FLUX and NH4_FLUX;
cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.PARTICULATE_VD_PCT IS \'Percent
completeness of hourly values aggregated to PARTICULATE_VD, advised
criteria is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.SO4_FLUX IS \'Total sulfate (SO4)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.SO4_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to SO4_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.SO4_CONC IS \'Mean sulfate (SO4)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.SO4_CONC_PCT IS \'Percent
completeness of hourly values aggregated to SO4_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.NO3_FLUX IS \'Particulate nitrate
(NO3) flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.NO3_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to NO3_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.NO3_CONC IS \'Particulate nitrate
(NO3) concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.NO3_CONC_PCT IS \'Percent
completeness of hourly values aggregated to NO3_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.NH4_FLUX IS \'Total ammonium (NH4)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.NH4_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to NH4_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.NH4_CONC IS \'Mean ammonium (NH4)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.NH4_CONC_PCT IS \'Percent
completeness of hourly values aggregated to NH4_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.CA_FLUX IS \'Total calcium (Ca)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.CA_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to CA_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.CA_CONC IS \'Mean calcium (Ca)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.CA_CONC_PCT IS \'Percent
completeness of hourly values aggregated to CA_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.MG_FLUX IS \'Total magnesium (Mg)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.MG_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to MG_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.MG_CONC IS \'Mean magnesium (Mg)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.MG_CONC_PCT IS \'Percent
completeness of hourly values aggregated to MG_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.NA_FLUX IS \'Total sodium (Na) flux;
kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.NA_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to NA_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.NA_CONC IS \'Mean sodium (Na)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.NA_CONC_PCT IS \'Percent
completeness of hourly values aggregated to NA_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.K_FLUX IS \'Total potassium (K)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.K_FLUX_PCT IS \'Percent completeness
of hourly values aggregated to K_FLUX, advised criteria is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.K_CONC IS \'Mean potassium (K)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.K_CONC_PCT IS \'Percent completeness
of hourly values aggregated to K_CONC, advised criteria is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.CL_FLUX IS \'Total chloride (Cl)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.CL_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to CL_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.CL_CONC IS \'Mean chloride (Cl)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.CL_CONC_PCT IS \'Percent
completeness of hourly values aggregated to CL_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.VERSION_NUMBER IS \'Version number
of the deposition model, as described in the MODEL_VERSION table.\';

COMMENT ON COLUMN MODEL_OUTPUT_WEEK.UPDATE_DATE IS \'Date and time of
last record update.\';

\--

\-- MODEL_QA_CODE_CD (Table)

\--

CREATE TABLE MODEL_QA_CODE_CD

(

CODE VARCHAR2(10 BYTE) NOT NULL,

DESCRIPTION VARCHAR2(255 BYTE) NULL,

VALID CHAR(1 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_MODEL_QA_CODE_CD

PRIMARY KEY

(CODE)

);

COMMENT ON TABLE MODEL_QA_CODE_CD IS \'Foreign key table for QA_CODE in
MODEL_OUTPUT\';

COMMENT ON COLUMN MODEL_QA_CODE_CD.CODE IS \'Code\';

COMMENT ON COLUMN MODEL_QA_CODE_CD.DESCRIPTION IS \'Description of
code.\';

COMMENT ON COLUMN MODEL_QA_CODE_CD.VALID IS \'Does this code indicate a
valid (V) or invalid (I) data record?\';

COMMENT ON COLUMN MODEL_QA_CODE_CD.UPDATE_DATE IS \'Date and time of
last record update\';

\--

\-- MODEL_VERSION (Table)

\--

\-- Row count:11

CREATE TABLE MODEL_VERSION

(

MODEL_NAME VARCHAR2(10 BYTE) NOT NULL,

VERSION_NUMBER VARCHAR2(10 BYTE) NOT NULL,

CHANGE_NUMBER NUMBER(4) NOT NULL,

DATE_RELEASED DATE NULL,

DESCRIPTION_OF_CHANGE VARCHAR2(4000 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_MODEL_VERSION

PRIMARY KEY

(VERSION_NUMBER, CHANGE_NUMBER)

);

COMMENT ON TABLE MODEL_VERSION IS \'Multi Layer Model output version
descriptions\';

COMMENT ON COLUMN MODEL_VERSION.MODEL_NAME IS \'Name of the deposition
model.\';

COMMENT ON COLUMN MODEL_VERSION.VERSION_NUMBER IS \'Version number of
the deposition model, as described in the MODEL_VERSION table.\';

COMMENT ON COLUMN MODEL_VERSION.CHANGE_NUMBER IS \'Incremental number
assigned to model modification.\';

COMMENT ON COLUMN MODEL_VERSION.DATE_RELEASED IS \'Date version was
released as final.\';

COMMENT ON COLUMN MODEL_VERSION.DESCRIPTION_OF_CHANGE IS \'Description
of the modification to the model.\';

COMMENT ON COLUMN MODEL_VERSION.UPDATE_DATE IS \'Date and time of last
record update.\';

\--

\-- NADP_AIRMON (Table)

\--

\-- Row count:12

CREATE TABLE NADP_AIRMON

(

SITE_NUM NUMBER NULL,

SITE_ID VARCHAR2(4 BYTE) NULL,

SITE_NAME VARCHAR2(100 BYTE) NULL,

STATUS VARCHAR2(1 BYTE) NULL,

LATITUDE NUMBER(8,4) NULL,

LONGITUDE NUMBER(8,4) NULL,

ELEVATION VARCHAR2(20 BYTE) NULL,

STATE VARCHAR2(2 BYTE) NULL,

STATE_FIPS VARCHAR2(3 BYTE) NULL

);

COMMENT ON COLUMN NADP_AIRMON.SITE_NUM IS \'Numeric unique site
identification\';

COMMENT ON COLUMN NADP_AIRMON.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN NADP_AIRMON.SITE_NAME IS \'Site name\';

COMMENT ON COLUMN NADP_AIRMON.STATUS IS \'Status (inactive=I
active=A)\';

COMMENT ON COLUMN NADP_AIRMON.LATITUDE IS \'Latitude; decimal
degrees.\';

COMMENT ON COLUMN NADP_AIRMON.LONGITUDE IS \'Longitude; decimal
degrees.\';

COMMENT ON COLUMN NADP_AIRMON.ELEVATION IS \'Elevation; m.\';

COMMENT ON COLUMN NADP_AIRMON.STATE IS \'State abbreviation.\';

COMMENT ON COLUMN NADP_AIRMON.STATE_FIPS IS \'State FIPS\';

\--

\-- NADP_ANNUAL (Table)

\--

\-- Row count:5622

CREATE TABLE NADP_ANNUAL

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

PERIOD VARCHAR2(10 BYTE) NOT NULL,

YEAR NUMBER(11) NOT NULL,

CRITERIA1 NUMBER(16,4) NULL,

CRITERIA2 NUMBER(16,4) NULL,

CRITERIA3 NUMBER(16,4) NULL,

CRITERIA4 NUMBER(16,4) NULL,

CA NUMBER(16,4) NULL,

MG NUMBER(16,4) NULL,

K NUMBER(16,4) NULL,

NA NUMBER(16,4) NULL,

NH4 NUMBER(16,4) NULL,

NO3 NUMBER(16,4) NULL,

CL NUMBER(16,4) NULL,

SO4 NUMBER(16,4) NULL,

PH NUMBER(16,4) NULL,

CA_D NUMBER NULL,

MG_D NUMBER NULL,

K_D NUMBER NULL,

NA_D NUMBER NULL,

NH4_D NUMBER NULL,

NO3_D NUMBER NULL,

INORG_N NUMBER NULL,

CL_D NUMBER NULL,

SO4_D NUMBER NULL,

H NUMBER NULL,

H_D NUMBER NULL,

H_FLD NUMBER NULL,

CONDUCTIVITY NUMBER(16,4) NULL,

FIELD_PH NUMBER(16,4) NULL,

FIELD_CONDUCTIVITY NUMBER(16,4) NULL,

CATION_ANION_RATIO NUMBER(16,4) NULL,

SAMPLE_VOLUME NUMBER(16,4) NULL,

PRECIP NUMBER(16,4) NULL,

PCT_PRECIP_FLD NUMBER(16,4) NULL,

VALID_LAB_SAMPLES NUMBER(11) NULL,

VALID_FIELD_SAMPLES NUMBER(11) NULL,

DAYS NUMBER(11) NULL,

PERIOD_START DATE NULL,

PERIOD_END DATE NULL,

MEETS_CRITERIA CHAR(1 BYTE) NULL,

CONSTRAINT PK_NADP_SUMMARY1

PRIMARY KEY

(SITE_ID, PERIOD, YEAR)

);

COMMENT ON COLUMN NADP_ANNUAL.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN NADP_ANNUAL.PERIOD IS \'Period of aggregation.\';

COMMENT ON COLUMN NADP_ANNUAL.YEAR IS \'Year of data, using standard
Tuesday to Tuesday weeks.\';

COMMENT ON COLUMN NADP_ANNUAL.CRITERIA1 IS \'Percentage of the summary
period for which there are valid samples.\';

COMMENT ON COLUMN NADP_ANNUAL.CRITERIA2 IS \'Percentage of the summary
period for which precipitation amounts are available either from the
rain gage or from the sample volume.\';

COMMENT ON COLUMN NADP_ANNUAL.CRITERIA3 IS \'Percentage of the total
measured precipitation associated with valid samples.\';

COMMENT ON COLUMN NADP_ANNUAL.CRITERIA4 IS \'Collection efficiency,
calculated from the sum of the sample bucket depths (in centimeters)
divided by the sum of the rain gage amounts (in centimeters) for all
valid samples where both values are available.\';

COMMENT ON COLUMN NADP_ANNUAL.CA IS \'Precipitation-weighted mean of
calcium (Ca) concentration; ug/m\^3.\';

COMMENT ON COLUMN NADP_ANNUAL.MG IS \'Precipitation-weighted mean of
magnesium (Mg) concentration; ug/m\^3.\';

COMMENT ON COLUMN NADP_ANNUAL.K IS \'Precipitation-weighted mean of
potassium (K) concentration; ug/m\^3.\';

COMMENT ON COLUMN NADP_ANNUAL.NA IS \'Precipitation-weighted mean of
sodium (Na) concentrations; ug/m\^3.\';

COMMENT ON COLUMN NADP_ANNUAL.NH4 IS \'Precipitation-weighted mean of
ammonium (NH4) concentrations; ug/m\^3.\';

COMMENT ON COLUMN NADP_ANNUAL.NO3 IS \'Precipitation-weighted mean of
nitrate (NO3) concentrations; ug/m\^3.\';

COMMENT ON COLUMN NADP_ANNUAL.CL IS \'Precipitation-weighted mean of
chloride (Cl) concentrations; ug/m\^3.\';

COMMENT ON COLUMN NADP_ANNUAL.SO4 IS \'Precipitation-weighted mean of
sulfate (SO4) concentrations; ug/m\^3.\';

COMMENT ON COLUMN NADP_ANNUAL.PH IS \'Precipitation weighted mean of
hydrogen concentration, in pH units.\';

COMMENT ON COLUMN NADP_ANNUAL.CA_D IS \'Wet calcium (Ca) flux; kg/ha.\';

COMMENT ON COLUMN NADP_ANNUAL.MG_D IS \'Wet magnesium (Mg) flux;
kg/ha.\';

COMMENT ON COLUMN NADP_ANNUAL.K_D IS \'Wet potassium (K) flux; kg/ha.\';

COMMENT ON COLUMN NADP_ANNUAL.NA_D IS \'Wet sodium (Na) flux; kg/ha.\';

COMMENT ON COLUMN NADP_ANNUAL.NH4_D IS \'Wet ammonium (NH4) flux;
kg/ha.\';

COMMENT ON COLUMN NADP_ANNUAL.NO3_D IS \'Wet ntrate (NO3) flux;
kg/ha.\';

COMMENT ON COLUMN NADP_ANNUAL.INORG_N IS \'Inorganic nitrogen (N)
calculated as the sum of nitrate (NO3) and ammonium (NH4); kg/ha.\';

COMMENT ON COLUMN NADP_ANNUAL.CL_D IS \'Wet chloride (Cl) flux;
kg/ha.\';

COMMENT ON COLUMN NADP_ANNUAL.SO4_D IS \'Wet sulfate (SO4) flux;
kg/ha.\';

COMMENT ON COLUMN NADP_ANNUAL.H IS \'Precipitation weighted mean of
hydrogen (H) concentration, in pH units; ug/m\^3.\';

COMMENT ON COLUMN NADP_ANNUAL.H_D IS \'Wet hydrogen (H) flux; kg/ha.\';

COMMENT ON COLUMN NADP_ANNUAL.H_FLD IS \'Hydrogen concentration in field
sample; ug/m\^3.\';

COMMENT ON COLUMN NADP_ANNUAL.CONDUCTIVITY IS \'Precipitation-weighted
mean of conductivity; uS/cm.\';

COMMENT ON COLUMN NADP_ANNUAL.FIELD_PH IS \'Precipitation-weighted mean
of hydrogen concentration as measured in the field, in pH units.\';

COMMENT ON COLUMN NADP_ANNUAL.FIELD_CONDUCTIVITY IS
\'Precipitation-weighted mean of conductivity as measured in the field;
uS/cm.\';

COMMENT ON COLUMN NADP_ANNUAL.CATION_ANION_RATIO IS
\'Precipitation-weighted mean of equivalence ratio of cations to
anions.\';

COMMENT ON COLUMN NADP_ANNUAL.SAMPLE_VOLUME IS \'Volume of sample;
mL.\';

COMMENT ON COLUMN NADP_ANNUAL.PRECIP IS \'Precipitation; cm.\';

COMMENT ON COLUMN NADP_ANNUAL.PCT_PRECIP_FLD IS \'Percentage of
precipitation represented by the field samples\';

COMMENT ON COLUMN NADP_ANNUAL.VALID_LAB_SAMPLES IS \'Number of samples
used in calculating precipitation-weighted means from the laboratory.\';

COMMENT ON COLUMN NADP_ANNUAL.VALID_FIELD_SAMPLES IS \'Number of samples
used in calculating precipitation-weighted means from the field.\';

COMMENT ON COLUMN NADP_ANNUAL.DAYS IS \'Number of days included in the
summary period.\';

COMMENT ON COLUMN NADP_ANNUAL.PERIOD_START IS \'The beginning date of
the first sample of the summary period.\';

COMMENT ON COLUMN NADP_ANNUAL.PERIOD_END IS \'The ending date of the
last sample included in the summary period, in GMT.\';

COMMENT ON COLUMN NADP_ANNUAL.MEETS_CRITERIA IS \'Meets NADP\'\'s
completeness criteria. See
http://nadp.sws.uiuc.edu/documentation/notes-depo.html\';

\--

\-- NADP_MDN (Table)

\--

\-- Row count:142

CREATE TABLE NADP_MDN

(

SITE_NUM NUMBER NULL,

SITE_ID VARCHAR2(4 BYTE) NULL,

SITE_NAME VARCHAR2(100 BYTE) NULL,

STATUS VARCHAR2(1 BYTE) NULL,

LATITUDE NUMBER(8,4) NULL,

LONGITUDE NUMBER(8,4) NULL,

ELEVATION VARCHAR2(20 BYTE) NULL,

STATE VARCHAR2(2 BYTE) NULL,

STATE_FIPS VARCHAR2(3 BYTE) NULL

);

COMMENT ON COLUMN NADP_MDN.SITE_NUM IS \'Numeric unique site
identification\';

COMMENT ON COLUMN NADP_MDN.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN NADP_MDN.SITE_NAME IS \'Site name\';

COMMENT ON COLUMN NADP_MDN.STATUS IS \'Status (inactive=I active=A)\';

COMMENT ON COLUMN NADP_MDN.LATITUDE IS \'Latitude; decimal degrees.\';

COMMENT ON COLUMN NADP_MDN.LONGITUDE IS \'Longitude; decimal degrees.\';

COMMENT ON COLUMN NADP_MDN.ELEVATION IS \'Elevation; m.\';

COMMENT ON COLUMN NADP_MDN.STATE IS \'State abbreviation.\';

COMMENT ON COLUMN NADP_MDN.STATE_FIPS IS \'State FIPS\';

\--

\-- NADP_NTN (Table)

\--

\-- Row count:324

CREATE TABLE NADP_NTN

(

SITE_NUM NUMBER NULL,

SITE_ID VARCHAR2(4 BYTE) NULL,

SITE_NAME VARCHAR2(100 BYTE) NULL,

STATUS VARCHAR2(1 BYTE) NULL,

LATITUDE NUMBER(8,4) NULL,

LONGITUDE NUMBER(8,4) NULL,

ELEVATION VARCHAR2(20 BYTE) NULL,

STATE VARCHAR2(2 BYTE) NULL,

STATE_FIPS VARCHAR2(3 BYTE) NULL

);

COMMENT ON COLUMN NADP_NTN.SITE_NUM IS \'Numeric unique site
identification\';

COMMENT ON COLUMN NADP_NTN.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN NADP_NTN.SITE_NAME IS \'Site name\';

COMMENT ON COLUMN NADP_NTN.STATUS IS \'Status (inactive=I active=A)\';

COMMENT ON COLUMN NADP_NTN.LATITUDE IS \'Latitude; decimal degrees.\';

COMMENT ON COLUMN NADP_NTN.LONGITUDE IS \'Longitude; decimal degrees.\';

COMMENT ON COLUMN NADP_NTN.ELEVATION IS \'Elevation; m.\';

COMMENT ON COLUMN NADP_NTN.STATE IS \'State abbreviation.\';

COMMENT ON COLUMN NADP_NTN.STATE_FIPS IS \'State FIPS\';

\--

\-- NADP_SEASON (Table)

\--

\-- Row count:18576

CREATE TABLE NADP_SEASON

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

SEASON VARCHAR2(8 BYTE) NULL,

YEAR NUMBER(11) NOT NULL,

CRITERIA1 NUMBER(16,4) NULL,

CRITERIA2 NUMBER(16,4) NULL,

CRITERIA3 NUMBER(16,4) NULL,

CRITERIA4 NUMBER(16,4) NULL,

CA NUMBER(16,4) NULL,

MG NUMBER(16,4) NULL,

K NUMBER(16,4) NULL,

NA NUMBER(16,4) NULL,

NH4 NUMBER(16,4) NULL,

NO3 NUMBER(16,4) NULL,

CL NUMBER(16,4) NULL,

SO4 NUMBER(16,4) NULL,

PH NUMBER(16,4) NULL,

CA_D NUMBER NULL,

MG_D NUMBER NULL,

K_D NUMBER NULL,

NA_D NUMBER NULL,

NH4_D NUMBER NULL,

NO3_D NUMBER NULL,

INORG_N NUMBER NULL,

CL_D NUMBER NULL,

SO4_D NUMBER NULL,

H NUMBER NULL,

H_D NUMBER NULL,

H_FLD NUMBER NULL,

CONDUCTIVITY NUMBER(16,4) NULL,

FIELD_PH NUMBER(16,4) NULL,

FIELD_CONDUCTIVITY NUMBER(16,4) NULL,

CATION_ANION_RATIO NUMBER(16,4) NULL,

SAMPLE_VOLUME NUMBER(16,4) NULL,

PRECIP NUMBER(16,4) NULL,

PCT_PRECIP_FLD NUMBER(16,4) NULL,

VALID_LAB_SAMPLES NUMBER(11) NULL,

VALID_FIELD_SAMPLES NUMBER(11) NULL,

DAYS NUMBER(11) NULL,

PERIOD_START DATE NULL,

PERIOD_END DATE NULL,

MEETS_CRITERIA CHAR(1 BYTE) NULL

);

COMMENT ON COLUMN NADP_SEASON.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN NADP_SEASON.SEASON IS \'Season of aggregation\';

COMMENT ON COLUMN NADP_SEASON.YEAR IS \'Year of data, using standard
Tuesday to Tuesday weeks.\';

COMMENT ON COLUMN NADP_SEASON.CRITERIA1 IS \'Percentage of the summary
period for which there are valid samples.\';

COMMENT ON COLUMN NADP_SEASON.CRITERIA2 IS \'Percentage of the summary
period for which precipitation amounts are available either from the
rain gage or from the sample volume.\';

COMMENT ON COLUMN NADP_SEASON.CRITERIA3 IS \'Percentage of the total
measured precipitation associated with valid samples.\';

COMMENT ON COLUMN NADP_SEASON.CRITERIA4 IS \'Collection efficiency,
calculated from the sum of the sample bucket depths (in centimeters)
divided by the sum of the rain gage amounts (in centimeters) for all
valid samples where both values are available.\';

COMMENT ON COLUMN NADP_SEASON.CA IS \'Precipitation-weighted mean of
calcium (Ca) concentration; ug/m\^3.\';

COMMENT ON COLUMN NADP_SEASON.MG IS \'Precipitation-weighted mean of
magnesium (Mg) concentration; ug/m\^3.\';

COMMENT ON COLUMN NADP_SEASON.K IS \'Precipitation-weighted mean of
potassium (K) concentration; ug/m\^3.\';

COMMENT ON COLUMN NADP_SEASON.NA IS \'Precipitation-weighted mean of
sodium (Na) concentrations; ug/m\^3.\';

COMMENT ON COLUMN NADP_SEASON.NH4 IS \'Precipitation-weighted mean of
ammonium (NH4) concentrations; ug/m\^3.\';

COMMENT ON COLUMN NADP_SEASON.NO3 IS \'Precipitation-weighted mean of
nitrate (NO3) concentrations; ug/m\^3.\';

COMMENT ON COLUMN NADP_SEASON.CL IS \'Precipitation-weighted mean of
chloride (Cl) concentrations; ug/m\^3.\';

COMMENT ON COLUMN NADP_SEASON.SO4 IS \'Precipitation-weighted mean of
sulfate (SO4) concentrations; ug/m\^3.\';

COMMENT ON COLUMN NADP_SEASON.PH IS \'Precipitation weighted mean of
hydrogen concentration, in pH units.\';

COMMENT ON COLUMN NADP_SEASON.CA_D IS \'Wet calcium (Ca) flux; kg/ha.\';

COMMENT ON COLUMN NADP_SEASON.MG_D IS \'Wet magnesium (Mg) flux;
kg/ha.\';

COMMENT ON COLUMN NADP_SEASON.K_D IS \'Wet potassium (K) flux; kg/ha.\';

COMMENT ON COLUMN NADP_SEASON.NA_D IS \'Wet sodium (Na) flux; kg/ha.\';

COMMENT ON COLUMN NADP_SEASON.NH4_D IS \'Wet ammonium (NH4) flux;
kg/ha.\';

COMMENT ON COLUMN NADP_SEASON.NO3_D IS \'Wet nitrate (NO3) flux;
kg/ha.\';

COMMENT ON COLUMN NADP_SEASON.INORG_N IS \'Inorganic nitrogen (N);
kg/ha.\';

COMMENT ON COLUMN NADP_SEASON.CL_D IS \'Wet chloride (Cl) flux;
kg/ha.\';

COMMENT ON COLUMN NADP_SEASON.SO4_D IS \'Wet sulfate (SO4) flux;
kg/ha.\';

COMMENT ON COLUMN NADP_SEASON.H IS \'Precipitation weighted mean of
hydrogen (H) concentration, in pH units; ug/m\^3.\';

COMMENT ON COLUMN NADP_SEASON.H_D IS \'Wet hydrogen (H) flux; kg/ha.\';

COMMENT ON COLUMN NADP_SEASON.H_FLD IS \'Hydrogen concentration in field
sample; ug/m\^3\';

COMMENT ON COLUMN NADP_SEASON.CONDUCTIVITY IS \'Precipitation-weighted
mean of conductivity; uS/cm.\';

COMMENT ON COLUMN NADP_SEASON.FIELD_PH IS \'Precipitation-weighted mean
of hydrogen concentration as measured in the field, in pH units.\';

COMMENT ON COLUMN NADP_SEASON.FIELD_CONDUCTIVITY IS
\'Precipitation-weighted mean of conductivity as measured in the field;
uS/cm.\';

COMMENT ON COLUMN NADP_SEASON.CATION_ANION_RATIO IS
\'Precipitation-weighted mean of equivalence ratio of cations to
anions.\';

COMMENT ON COLUMN NADP_SEASON.SAMPLE_VOLUME IS \'Volume of sample;
mL.\';

COMMENT ON COLUMN NADP_SEASON.PRECIP IS \'Precipitation; cm.\';

COMMENT ON COLUMN NADP_SEASON.PCT_PRECIP_FLD IS \'Percent of
precipitation represented by field samples\';

COMMENT ON COLUMN NADP_SEASON.VALID_LAB_SAMPLES IS \'Number of samples
used in calculating precipitation-weighted means from the laboratory.\';

COMMENT ON COLUMN NADP_SEASON.VALID_FIELD_SAMPLES IS \'Number of samples
used in calculating precipitation-weighted means from the field.\';

COMMENT ON COLUMN NADP_SEASON.DAYS IS \'Number of days included in the
summary period.\';

COMMENT ON COLUMN NADP_SEASON.PERIOD_START IS \'The beginning date of
the first sample of the summary period.\';

COMMENT ON COLUMN NADP_SEASON.PERIOD_END IS \'The ending date of the
last sample included in the summary period, in GMT.\';

COMMENT ON COLUMN NADP_SEASON.MEETS_CRITERIA IS \'Meets NADP\'\'s
completeness criteria. See
http://nadp.sws.uiuc.edu/documentation/notes-depo.html .\';

\--

\-- NADP_SITE (Table)

\--

\-- Row count:505

CREATE TABLE NADP_SITE

(

NETWORK VARCHAR2(6 BYTE) NULL,

SITE_ID VARCHAR2(4 BYTE) NULL,

SITE_NAME VARCHAR2(100 BYTE) NULL,

STATE VARCHAR2(2 BYTE) NULL,

COUNTY VARCHAR2(40 BYTE) NULL,

ELEVATION VARCHAR2(20 BYTE) NULL,

DAYLIGHT_SAVINGS VARCHAR2(20 BYTE) NULL,

TIMEZONE VARCHAR2(2 BYTE) NULL,

LATITUDE NUMBER(8,4) NULL,

LONGITUDE NUMBER(8,4) NULL,

STATUS VARCHAR2(1 BYTE) NULL,

START_DATE DATE NULL,

STOP_DATE DATE NULL,

FIPS VARCHAR2(5 BYTE) NULL,

FUNDING_AGENCY VARCHAR2(50 BYTE) NULL,

OPERATING_AGENCY VARCHAR2(50 BYTE) NULL,

SITE_OWNER VARCHAR2(100 BYTE) NULL,

MAP24 VARCHAR2(25 BYTE) NULL,

GPS_DATE DATE NULL,

STATE_FIPS VARCHAR2(2 BYTE) NULL,

ALBERS_X NUMBER(18,5) NULL,

ALBERS_Y NUMBER(18,5) NULL,

NOX_PERCENTILE_2000 NUMBER(6) NULL,

NOX_DENSITY_2000 NUMBER NULL,

SO2_PERCENTILE_2000 NUMBER(6) NULL,

SO2_DENSITY_2000 NUMBER NULL,

RD_PERCENTILE_2000 NUMBER(6) NULL,

RD_DENSITY_2000 NUMBER NULL,

POP_PERCENTILE_2000 NUMBER(6) NULL,

POP_DENSITY_2000 NUMBER NULL,

CLASS_2000 VARCHAR2(1 BYTE) NULL,

PRIMARY KEY

(NETWORK, SITE_ID)

);

COMMENT ON COLUMN NADP_SITE.NETWORK IS \'Network abbreviation\';

COMMENT ON COLUMN NADP_SITE.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN NADP_SITE.SITE_NAME IS \'Site name\';

COMMENT ON COLUMN NADP_SITE.STATE IS \'State abbreviation\';

COMMENT ON COLUMN NADP_SITE.COUNTY IS \'County\';

COMMENT ON COLUMN NADP_SITE.ELEVATION IS \'Elevation (m)\';

COMMENT ON COLUMN NADP_SITE.DAYLIGHT_SAVINGS IS \'Daylight Savings.\';

COMMENT ON COLUMN NADP_SITE.TIMEZONE IS \'Local time zone of site.\';

COMMENT ON COLUMN NADP_SITE.LATITUDE IS \'Latitude; decimal degrees.\';

COMMENT ON COLUMN NADP_SITE.LONGITUDE IS \'Longitude; decimal
degrees.\';

COMMENT ON COLUMN NADP_SITE.STATUS IS \'Site status, I=Inactive
A=Active\';

COMMENT ON COLUMN NADP_SITE.START_DATE IS \'Date site was established\';

COMMENT ON COLUMN NADP_SITE.STOP_DATE IS \'Date site was terminated\';

COMMENT ON COLUMN NADP_SITE.FIPS IS \'FIPS\';

COMMENT ON COLUMN NADP_SITE.FUNDING_AGENCY IS \'Agency that funds the
site.\';

COMMENT ON COLUMN NADP_SITE.OPERATING_AGENCY IS \'Operating agency\';

COMMENT ON COLUMN NADP_SITE.SITE_OWNER IS \'Agency that owns the site\';

COMMENT ON COLUMN NADP_SITE.STATE_FIPS IS \'State FIPS\';

COMMENT ON COLUMN NADP_SITE.ALBERS_X IS \'Albers X\';

COMMENT ON COLUMN NADP_SITE.ALBERS_Y IS \'Albers Y\';

\--

\-- NADP_SUMMARY (Table)

\--

\-- Row count:27236

CREATE TABLE NADP_SUMMARY

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

PERIOD VARCHAR2(10 BYTE) NOT NULL,

YEAR NUMBER(11) NOT NULL,

CRITERIA1 NUMBER(16,4) NULL,

CRITERIA2 NUMBER(16,4) NULL,

CRITERIA3 NUMBER(16,4) NULL,

CRITERIA4 NUMBER(16,4) NULL,

CA NUMBER(16,4) NULL,

MG NUMBER(16,4) NULL,

K NUMBER(16,4) NULL,

NA NUMBER(16,4) NULL,

NH4 NUMBER(16,4) NULL,

NO3 NUMBER(16,4) NULL,

CL NUMBER(16,4) NULL,

SO4 NUMBER(16,4) NULL,

PH NUMBER(16,4) NULL,

CONDUCTIVITY NUMBER(16,4) NULL,

FIELD_PH NUMBER(16,4) NULL,

FIELD_CONDUCTIVITY NUMBER(16,4) NULL,

CATION_ANION_RATIO NUMBER(16,4) NULL,

SAMPLE_VOLUME NUMBER(16,4) NULL,

PRECIP NUMBER(16,4) NULL,

PCT_PRECIP_FLD NUMBER(16,4) NULL,

VALID_LAB_SAMPLES NUMBER(11) NULL,

VALID_FIELD_SAMPLES NUMBER(11) NULL,

DAYS NUMBER(11) NULL,

PERIOD_START DATE NULL,

PERIOD_END DATE NULL,

UPDATE_DATE DATE NOT NULL,

CONSTRAINT PK_NADP_SUMMARY

PRIMARY KEY

(SITE_ID, PERIOD, YEAR)

);

COMMENT ON TABLE NADP_SUMMARY IS \'Annual and seasonal summary data from
NADP/NTN.\';

COMMENT ON COLUMN NADP_SUMMARY.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN NADP_SUMMARY.PERIOD IS \'Period of aggregation.\';

COMMENT ON COLUMN NADP_SUMMARY.YEAR IS \'Year of data, using standard
Tuesday to Tuesday weeks.\';

COMMENT ON COLUMN NADP_SUMMARY.CRITERIA1 IS \'Percentage of the summary
period for which there are valid samples.\';

COMMENT ON COLUMN NADP_SUMMARY.CRITERIA2 IS \'Percentage of the summary
period for which precipitation amounts are available either from the
rain gage or from the sample volume.\';

COMMENT ON COLUMN NADP_SUMMARY.CRITERIA3 IS \'Percentage of the total
measured precipitation associated with valid samples.\';

COMMENT ON COLUMN NADP_SUMMARY.CRITERIA4 IS \'Collection efficiency,
calculated from the sum of the sample bucket depths (in centimeters)
divided by the sum of the rain gage amounts (in centimeters) for all
valid samples where both values are available.\';

COMMENT ON COLUMN NADP_SUMMARY.CA IS \'Precipitation-weighted mean of
calcium (Ca) concentration; ug/m\^3.\';

COMMENT ON COLUMN NADP_SUMMARY.MG IS \'Precipitation-weighted mean of
magnesium (Mg) concentration; ug/m\^3.\';

COMMENT ON COLUMN NADP_SUMMARY.K IS \'Precipitation-weighted mean of
potassium (K) concentration; ug/m\^3.\';

COMMENT ON COLUMN NADP_SUMMARY.NA IS \'Precipitation-weighted mean of
sodium (Na) concentrations; ug/m\^3.\';

COMMENT ON COLUMN NADP_SUMMARY.NH4 IS \'Precipitation-weighted mean of
ammonium (NH4) concentrations; ug/m\^3.\';

COMMENT ON COLUMN NADP_SUMMARY.NO3 IS \'Precipitation-weighted mean of
nitrate (NO3) concentrations; ug/m\^3.\';

COMMENT ON COLUMN NADP_SUMMARY.CL IS \'Precipitation-weighted mean of
chloride (Cl) concentrations; ug/m\^3.\';

COMMENT ON COLUMN NADP_SUMMARY.SO4 IS \'Precipitation-weighted mean of
sulfate (SO4) concentrations; ug/m\^3.\';

COMMENT ON COLUMN NADP_SUMMARY.PH IS \'Precipitation weighted mean of
hydrogen (H) concentration, in pH units; ug/m\^3.\';

COMMENT ON COLUMN NADP_SUMMARY.CONDUCTIVITY IS \'Precipitation-weighted
mean of conductivity; uS/cm.\';

COMMENT ON COLUMN NADP_SUMMARY.FIELD_PH IS \'Precipitation-weighted mean
of hydrogen concentration as measured in the field, in pH units.\';

COMMENT ON COLUMN NADP_SUMMARY.FIELD_CONDUCTIVITY IS
\'Precipitation-weighted mean of conductivity as measured in the field;
uS/cm.\';

COMMENT ON COLUMN NADP_SUMMARY.CATION_ANION_RATIO IS
\'Precipitation-weighted mean of equivalence ratio of cations to
anions.\';

COMMENT ON COLUMN NADP_SUMMARY.SAMPLE_VOLUME IS \'Volume of sample;
mL.\';

COMMENT ON COLUMN NADP_SUMMARY.PRECIP IS \'Precipitation; cm.\';

COMMENT ON COLUMN NADP_SUMMARY.PCT_PRECIP_FLD IS \'Percent of
precipitation represented by field samples.\';

COMMENT ON COLUMN NADP_SUMMARY.VALID_LAB_SAMPLES IS \'Number of samples
used in calculating precipitation-weighted means from the laboratory.\';

COMMENT ON COLUMN NADP_SUMMARY.VALID_FIELD_SAMPLES IS \'Number of
samples used in calculating precipitation-weighted means from the
field.\';

COMMENT ON COLUMN NADP_SUMMARY.DAYS IS \'Number of days included in the
summary period.\';

COMMENT ON COLUMN NADP_SUMMARY.PERIOD_START IS \'The beginning date of
the first sample of the summary period.\';

COMMENT ON COLUMN NADP_SUMMARY.PERIOD_END IS \'The ending date of the
last sample included in the summary period, in GMT.\';

COMMENT ON COLUMN NADP_SUMMARY.UPDATE_DATE IS \'Date and time of last
record update.\';

\--

\-- NADP_WEEK (Table)

\--

\-- Row count:279579

CREATE TABLE NADP_WEEK

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

DATEON DATE NOT NULL,

DATEOFF DATE NOT NULL,

CA_F CHAR(1 BYTE) NULL,

CA NUMBER(16,4) NULL,

MG_F CHAR(1 BYTE) NULL,

MG NUMBER(16,4) NULL,

K_F CHAR(1 BYTE) NULL,

K NUMBER(16,4) NULL,

NA_F CHAR(1 BYTE) NULL,

NA NUMBER(16,4) NULL,

NH4_F CHAR(1 BYTE) NULL,

NH4 NUMBER(16,4) NULL,

NO3_F CHAR(1 BYTE) NULL,

NO3 NUMBER(16,4) NULL,

CL_F CHAR(1 BYTE) NULL,

CL NUMBER(16,4) NULL,

SO4_F CHAR(1 BYTE) NULL,

SO4 NUMBER(16,4) NULL,

PH_LAB NUMBER(16,4) NULL,

PH_FIELD NUMBER(16,4) NULL,

PH_FV VARCHAR2(10 BYTE) NULL,

COND_LAB NUMBER(16,4) NULL,

COND_FIELD NUMBER(16,4) NULL,

COND_FV VARCHAR2(10 BYTE) NULL,

SVOL NUMBER(16,4) NULL,

RG_PPT NUMBER(16,4) NULL,

SUB_PPT NUMBER(16,4) NULL,

LAB_TYPE CHAR(2 BYTE) NULL,

VALCODE CHAR(2 BYTE) NULL,

INVALCODE VARCHAR2(12 BYTE) NULL,

NOTES VARCHAR2(9 BYTE) NULL,

LABNO VARCHAR2(15 BYTE) NULL,

UPDATE_DATE DATE DEFAULT SYSDATE NULL,

PRIMARY KEY

(SITE_ID, DATEON, DATEOFF)

);

COMMENT ON TABLE NADP_WEEK IS \'Weekly wet deposition values obtained
from NADP\';

COMMENT ON COLUMN NADP_WEEK.SO4_F IS \'Data quality code for SO4.\';

COMMENT ON COLUMN NADP_WEEK.SO4 IS \'Precipitation weighted mean sulfate
(SO4) concentration; ug/m\^3\';

COMMENT ON COLUMN NADP_WEEK.PH_LAB IS \'Precipitation weighted mean of
hydrogen concentration as measured in the lab, in pH units.\';

COMMENT ON COLUMN NADP_WEEK.PH_FIELD IS \'Precipitation weighted mean of
hydrogen concentration as measured in the field, in pH units.\';

COMMENT ON COLUMN NADP_WEEK.PH_FV IS \'Data quality code for pH from the
field.\';

COMMENT ON COLUMN NADP_WEEK.COND_LAB IS \'Precipitation-weighted mean of
conductivity as measured in the lab; uS/cm.\';

COMMENT ON COLUMN NADP_WEEK.COND_FIELD IS \'Precipitation-weighted mean
of conductivity as measured in the field; uS/cm.\';

COMMENT ON COLUMN NADP_WEEK.COND_FV IS \'Data quality code for
conductivity from the field.\';

COMMENT ON COLUMN NADP_WEEK.SVOL IS \'Sample volume; mL.\';

COMMENT ON COLUMN NADP_WEEK.VALCODE IS \'Valid sample code\';

COMMENT ON COLUMN NADP_WEEK.INVALCODE IS \'Invalid sample code\';

COMMENT ON COLUMN NADP_WEEK.NOTES IS \'Notes\';

COMMENT ON COLUMN NADP_WEEK.UPDATE_DATE IS \'Update date.\';

COMMENT ON COLUMN NADP_WEEK.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN NADP_WEEK.DATEON IS \'Start date.\';

COMMENT ON COLUMN NADP_WEEK.DATEOFF IS \'End date.\';

COMMENT ON COLUMN NADP_WEEK.CA_F IS \'Data quality code for Ca.\';

COMMENT ON COLUMN NADP_WEEK.CA IS \'Precipitation weighted mean calcium
(Ca) concentration; ug/m\^3\';

COMMENT ON COLUMN NADP_WEEK.MG_F IS \'Data quality code for Mg.\';

COMMENT ON COLUMN NADP_WEEK.MG IS \'Precipitation weighted mean
magnesium (Mg) concentration; ug/m\^3\';

COMMENT ON COLUMN NADP_WEEK.K_F IS \'Data quality code for K.\';

COMMENT ON COLUMN NADP_WEEK.K IS \'Precipitation weighted mean potassium
(K) concentration; ug/m\^3\';

COMMENT ON COLUMN NADP_WEEK.NA_F IS \'Data quality code for Na.\';

COMMENT ON COLUMN NADP_WEEK.NA IS \'Precipitation weighted mean sodium
(Na) concentration; ug/m\^3\';

COMMENT ON COLUMN NADP_WEEK.NH4_F IS \'Data quality code for NH4.\';

COMMENT ON COLUMN NADP_WEEK.NH4 IS \'Precipitation weighted mean
ammonium (NH4) concentration; ug/m\^3\';

COMMENT ON COLUMN NADP_WEEK.NO3_F IS \'Data quality code for NO3.\';

COMMENT ON COLUMN NADP_WEEK.NO3 IS \'Precipitation weighted mean nitrate
(NO3) concentration; ug/m\^3\';

COMMENT ON COLUMN NADP_WEEK.CL_F IS \'Data quality code for Cl.\';

COMMENT ON COLUMN NADP_WEEK.CL IS \'Precipitation weighted mean chloride
(Cl) concentration; ug/m\^3\';

\--

\-- OZCAL_CALITYPE_CD (Table)

\--

\-- Row count:5

CREATE TABLE OZCAL_CALITYPE_CD

(

CODE VARCHAR2(10 BYTE) NOT NULL,

DESCRIPTION VARCHAR2(255 BYTE) NULL,

VALID CHAR(1 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_OZCAL_CALITYPE_CD

PRIMARY KEY

(CODE)

);

COMMENT ON TABLE OZCAL_CALITYPE_CD IS \'Foreign key table for
CALIBRATION_TYPE in OZONE_CALIBRATION\';

COMMENT ON COLUMN OZCAL_CALITYPE_CD.CODE IS \'Code\';

COMMENT ON COLUMN OZCAL_CALITYPE_CD.DESCRIPTION IS \'Description of
code.\';

COMMENT ON COLUMN OZCAL_CALITYPE_CD.VALID IS \'Does this code indicate a
valid (V) or invalid (I) data record?\';

COMMENT ON COLUMN OZCAL_CALITYPE_CD.UPDATE_DATE IS \'Date and time of
last record update\';

\--

\-- OZONE (Table)

\--

\-- Row count:12624788

CREATE TABLE OZONE

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

DATE_TIME DATE NOT NULL,

OZONE NUMBER NULL,

OZONE_F VARCHAR2(3 BYTE) NULL,

QA_CODE VARCHAR2(2 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_METDATA1

PRIMARY KEY

(SITE_ID, DATE_TIME)

)

PARTITION BY RANGE (DATE_TIME)

(

PARTITION Y1987 VALUES LESS THAN (TO_DATE(\' 1988-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y1988 VALUES LESS THAN (TO_DATE(\' 1989-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y1989 VALUES LESS THAN (TO_DATE(\' 1990-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y1990 VALUES LESS THAN (TO_DATE(\' 1991-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y1991 VALUES LESS THAN (TO_DATE(\' 1992-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y1992 VALUES LESS THAN (TO_DATE(\' 1993-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y1993 VALUES LESS THAN (TO_DATE(\' 1994-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y1994 VALUES LESS THAN (TO_DATE(\' 1995-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y1995 VALUES LESS THAN (TO_DATE(\' 1996-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y1996 VALUES LESS THAN (TO_DATE(\' 1997-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y1997 VALUES LESS THAN (TO_DATE(\' 1998-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y1998 VALUES LESS THAN (TO_DATE(\' 1999-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y1999 VALUES LESS THAN (TO_DATE(\' 2000-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y2000 VALUES LESS THAN (TO_DATE(\' 2001-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y2001 VALUES LESS THAN (TO_DATE(\' 2002-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y2002 VALUES LESS THAN (TO_DATE(\' 2003-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y2003 VALUES LESS THAN (TO_DATE(\' 2004-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y2004 VALUES LESS THAN (TO_DATE(\' 2005-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y2005 VALUES LESS THAN (TO_DATE(\' 2006-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y2006 VALUES LESS THAN (TO_DATE(\' 2007-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y2007 VALUES LESS THAN (TO_DATE(\' 2008-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y2008 VALUES LESS THAN (TO_DATE(\' 2009-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y2009 VALUES LESS THAN (TO_DATE(\' 2010-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION Y2010 VALUES LESS THAN (TO_DATE(\' 2011-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\')),

PARTITION OTHER VALUES LESS THAN (MAXVALUE)

);

COMMENT ON COLUMN OZONE.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN OZONE.DATE_TIME IS \'Date and time sample collection
began, Local Standard Time; mm/dd/yyyy hh:mm:ss.\';

COMMENT ON COLUMN OZONE.OZONE IS \'Ozone concentration; ppb.\';

COMMENT ON COLUMN OZONE.OZONE_F IS \'Data quality code for OZONE.\';

COMMENT ON COLUMN OZONE.QA_CODE IS \'Quality assurance level of the
record. (see QAPP for definition of quality assurance levels)\';

COMMENT ON COLUMN OZONE.UPDATE_DATE IS \'Date and time of last record
update\';

\--

\-- OZONE_8HR_AVG (Table)

\--

\-- Row count:12600575

CREATE TABLE OZONE_8HR_AVG

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

YEAR NUMBER NULL,

DATE_TIME DATE NULL,

OZONE_8HR_AVG NUMBER NULL,

CNT_8HR NUMBER NULL,

OZONE_8HR_F VARCHAR2(1 BYTE) NULL,

UPDATE_DATE DATE NULL

);

COMMENT ON COLUMN OZONE_8HR_AVG.SITE_ID IS \'Site identification
code.\';

COMMENT ON COLUMN OZONE_8HR_AVG.YEAR IS \'Year of measurement, used in
annual aggregations and statistics.\';

COMMENT ON COLUMN OZONE_8HR_AVG.DATE_TIME IS \'Date and time sample
collection began, Local Standard Time; mm/dd/yyyy hh:mm:ss.\';

COMMENT ON COLUMN OZONE_8HR_AVG.OZONE_8HR_AVG IS \'Rolling eight hour
average for the time period beginning with the date and time of the
record; ppb.\';

COMMENT ON COLUMN OZONE_8HR_AVG.CNT_8HR IS \'Number of valid hours in
the 8-hour period.\';

COMMENT ON COLUMN OZONE_8HR_AVG.OZONE_8HR_F IS \'Data quality code for
OZONE_8HR_F.\';

COMMENT ON COLUMN OZONE_8HR_AVG.UPDATE_DATE IS \'Last date record
updated\';

\--

\-- OZONE_8HR_DMAX (Table)

\--

\-- Row count:299846

CREATE TABLE OZONE_8HR_DMAX

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

YEAR VARCHAR2(4 BYTE) NULL,

DDATE DATE NULL,

OZONE_8HR_DAILY_MAX NUMBER NULL,

RANK NUMBER NULL,

UPDATE_DATE DATE NULL

);

COMMENT ON COLUMN OZONE_8HR_DMAX.SITE_ID IS \'Site identification
code.\';

COMMENT ON COLUMN OZONE_8HR_DMAX.YEAR IS \'Year of measurement.\';

COMMENT ON COLUMN OZONE_8HR_DMAX.DDATE IS \'Date for which
OZONE_8HR_DAILY_MAX was computed.\';

COMMENT ON COLUMN OZONE_8HR_DMAX.OZONE_8HR_DAILY_MAX IS \'Daily maximum
value of the 8-hour rolling average, calculated according to 40CFR Part
58; in ppb.\';

COMMENT ON COLUMN OZONE_8HR_DMAX.RANK IS \'Annual rank of the 8-hour
daily max.\';

COMMENT ON COLUMN OZONE_8HR_DMAX.UPDATE_DATE IS \'Last date record
updated\';

\--

\-- OZONE_F_CD (Table)

\--

\-- Row count:13

CREATE TABLE OZONE_F_CD

(

CODE VARCHAR2(10 BYTE) NOT NULL,

DESCRIPTION VARCHAR2(255 BYTE) NULL,

VALID CHAR(1 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_OZONE_F_CD

PRIMARY KEY

(CODE)

);

COMMENT ON TABLE OZONE_F_CD IS \'Foreign key table for OZONE_F in
OZONE\';

COMMENT ON COLUMN OZONE_F_CD.UPDATE_DATE IS \'Date and time of last
record update\';

COMMENT ON COLUMN OZONE_F_CD.CODE IS \'Code\';

COMMENT ON COLUMN OZONE_F_CD.DESCRIPTION IS \'Description of code.\';

COMMENT ON COLUMN OZONE_F_CD.VALID IS \'Does this code indicate a valid
(V) or invalid (I) data record?\';

\--

\-- OZONE_W126 (Table)

\--

\-- Row count:3650

CREATE TABLE OZONE_W126

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

YEAR NUMBER NULL,

MONTH NUMBER NULL,

VALID_MONTHS NUMBER NULL,

W126 NUMBER NULL

);

COMMENT ON COLUMN OZONE_W126.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN OZONE_W126.YEAR IS \'Year of measurement.\';

COMMENT ON COLUMN OZONE_W126.MONTH IS \'Begining month of 3-month
rolling sum.\';

COMMENT ON COLUMN OZONE_W126.VALID_MONTHS IS \'Number of valid months in
3-month rolling sum.\';

COMMENT ON COLUMN OZONE_W126.W126 IS \'Rolling 3-month 12-hour sum of
W126; ppm-hours.\';

\--

\-- OZONE_W126_MONTH (Table)

\--

\-- Row count:7033

CREATE TABLE OZONE_W126_MONTH

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

YEAR NUMBER NULL,

MONTH NUMBER NULL,

W126_UNADJ NUMBER NULL,

PCT_VALID_HOURS NUMBER NULL,

W126 NUMBER NULL

);

COMMENT ON COLUMN OZONE_W126_MONTH.SITE_ID IS \'Site identification
code.\';

COMMENT ON COLUMN OZONE_W126_MONTH.YEAR IS \'Year of measurement.\';

COMMENT ON COLUMN OZONE_W126_MONTH.MONTH IS \'Month of measurement\';

COMMENT ON COLUMN OZONE_W126_MONTH.W126_UNADJ IS \'Sum of 12-hour W126
statistic, not adjusted for missing data; ppm-hours.\';

COMMENT ON COLUMN OZONE_W126_MONTH.PCT_VALID_HOURS IS \'Percent
completeness of hourly values.\';

COMMENT ON COLUMN OZONE_W126_MONTH.W126 IS \'Sum of 12-hour W126
statistic, adjusted for missing data; ppm-hours.\';

\--

\-- PERIOD_YEAR (Table)

\--

\-- Row count:43

CREATE TABLE PERIOD_YEAR

(

YEAR NUMBER(11) NOT NULL

);

COMMENT ON COLUMN PERIOD_YEAR.YEAR IS \'Year.\';

\--

\-- PLANT (Table)

\--

\-- Row count:84

CREATE TABLE PLANT

(

PLANT_ID NUMBER(11) NOT NULL,

PLANT_TYPE VARCHAR2(50 BYTE) NULL,

MIN_STOM NUMBER(8,2) NULL,

LIGHT_RES_COEFF NUMBER(8,2) NULL,

OPT_TEMP NUMBER(8,2) NULL,

MAX_NO_STRESS_TEMP NUMBER(8,2) NULL,

MIN_NO_STRESS_TEMP NUMBER(8,2) NULL,

PROFILE_INDEX NUMBER(8,2) NULL,

CANOPY_HEIGHT NUMBER(8,2) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_PLANT

PRIMARY KEY

(PLANT_ID)

);

COMMENT ON TABLE PLANT IS \'Plant types and coefficients used as input
to the MLM model.\';

COMMENT ON COLUMN PLANT.PLANT_ID IS \'Plant identification code.\';

COMMENT ON COLUMN PLANT.PLANT_TYPE IS \'Description of the plant
type.\';

COMMENT ON COLUMN PLANT.MIN_STOM IS \'Minimum stomatal resistance.\';

COMMENT ON COLUMN PLANT.LIGHT_RES_COEFF IS \'Light response
coefficient.\';

COMMENT ON COLUMN PLANT.OPT_TEMP IS \'Optimum temperature; degrees C.\';

COMMENT ON COLUMN PLANT.MAX_NO_STRESS_TEMP IS \'Maximum no stress
temperature; degrees C.\';

COMMENT ON COLUMN PLANT.MIN_NO_STRESS_TEMP IS \'Minimum no stress
temperature; degrees C.\';

COMMENT ON COLUMN PLANT.PROFILE_INDEX IS \'Plant profile index.\';

COMMENT ON COLUMN PLANT.CANOPY_HEIGHT IS \'Plant canopy height; m.\';

COMMENT ON COLUMN PLANT.UPDATE_DATE IS \'Date and time of last record
update.\';

\--

\-- PLANT_PROFILE (Table)

\--

\-- Row count:63

CREATE TABLE PLANT_PROFILE

(

PROFILE_TYPE NUMBER(6) NOT NULL,

PROFILE_LEVEL NUMBER(4) NOT NULL,

PERCENT_LEAF NUMBER(12,4) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_PLANT_PROFILE

PRIMARY KEY

(PROFILE_TYPE, PROFILE_LEVEL)

);

COMMENT ON TABLE PLANT_PROFILE IS \'Canopy data used as input to the MLM
model.\';

COMMENT ON COLUMN PLANT_PROFILE.UPDATE_DATE IS \'Date and time of last
record update.\';

COMMENT ON COLUMN PLANT_PROFILE.PROFILE_TYPE IS \'Used by MLM - plant
profile index used to group the plant profile level and percent leaf
values.\';

COMMENT ON COLUMN PLANT_PROFILE.PROFILE_LEVEL IS \'Used by MLM - counter
for levels in the canopy.\';

COMMENT ON COLUMN PLANT_PROFILE.PERCENT_LEAF IS \'Used by MLM - fraction
of total leaves for each level in the canopy.\';

\--

\-- RECORD_COUNT (Table)

\--

\-- Row count:98

CREATE TABLE RECORD_COUNT

(

TABLE_NAME VARCHAR2(30 BYTE) NOT NULL,

RECORD_COUNT NUMBER NULL

);

COMMENT ON TABLE RECORD_COUNT IS \'Number of rows in each table\';

COMMENT ON COLUMN RECORD_COUNT.TABLE_NAME IS \'Table Name\';

COMMENT ON COLUMN RECORD_COUNT.RECORD_COUNT IS \'Record count for
table\';

\--

\-- SAMPLE_REFERENCE (Table)

\--

\-- Row count:134468

CREATE TABLE SAMPLE_REFERENCE

(

LAB_KEY VARCHAR2(15 BYTE) NOT NULL,

RECEIPT_DATE DATE NULL,

COMMENT_CODES VARCHAR2(50 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_SAMPLE_REFERENCE

PRIMARY KEY

(LAB_KEY)

);

COMMENT ON TABLE SAMPLE_REFERENCE IS \'Laboratory sample comments and
notes. References LABDATA and LABDATA_QC.\';

COMMENT ON COLUMN SAMPLE_REFERENCE.UPDATE_DATE IS \'Date and time of
last record update.\';

COMMENT ON COLUMN SAMPLE_REFERENCE.LAB_KEY IS \'Laboratory sample
identification number.\';

COMMENT ON COLUMN SAMPLE_REFERENCE.RECEIPT_DATE IS \'Date the sample is
received by the lab; mm/dd/yyyy.\';

COMMENT ON COLUMN SAMPLE_REFERENCE.COMMENT_CODES IS \'Comment codes
separated by spaces.\';

\--

\-- SITE (Table)

\--

\-- Dependencies:

\-- SITE_AGENCY_CD (Table)

\-- SITE_MLM_CD (Table)

\-- SITE_TIMEZONE_CD (Table)

\--

\-- Row count:131

CREATE TABLE SITE

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

SITE_NUM NUMBER(38) NOT NULL,

SITE_NAME VARCHAR2(50 BYTE) NULL,

ACTIVE VARCHAR2(10 BYTE) NULL,

INACTIVE VARCHAR2(10 BYTE) NULL,

AGENCY VARCHAR2(10 BYTE) NULL,

STATE VARCHAR2(2 BYTE) NOT NULL,

COUNTY VARCHAR2(25 BYTE) NULL,

TIME_ZONE VARCHAR2(15 BYTE) NULL,

LATITUDE NUMBER(12,4) NULL,

LONGITUDE NUMBER(12,4) NULL,

ELEVATION NUMBER(20,5) NULL,

MAPID VARCHAR2(30 BYTE) NULL,

LAND_USE VARCHAR2(15 BYTE) NULL,

TERRAIN VARCHAR2(15 BYTE) NULL,

MLM VARCHAR2(5 BYTE) NULL,

NADP_ID VARCHAR2(4 BYTE) NULL,

NADP_DISTANCE NUMBER(12,4) NULL,

UPDATE_DATE DATE NOT NULL,

CONSTRAINT PK_SITE

PRIMARY KEY

(SITE_ID),

CONSTRAINT IDX_SITENUM

UNIQUE (SITE_NUM),

CONSTRAINT FK_SITE_AGENCY

FOREIGN KEY (AGENCY)

REFERENCES SITE_AGENCY_CD (CODE),

CONSTRAINT FK_SITE_MLM

FOREIGN KEY (MLM)

REFERENCES SITE_MLM_CD (CODE),

CONSTRAINT FK_SITE_TZ

FOREIGN KEY (TIME_ZONE)

REFERENCES SITE_TIMEZONE_CD (CODE)

);

COMMENT ON TABLE SITE IS \'Geographic location and operating information
for sites.\';

COMMENT ON COLUMN SITE.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN SITE.SITE_NUM IS \'Numeric unique site
identification\';

COMMENT ON COLUMN SITE.SITE_NAME IS \'Site name\';

COMMENT ON COLUMN SITE.ACTIVE IS \'Sampling operations currently being
conducted at site; site is inactive if NULL.\';

COMMENT ON COLUMN SITE.INACTIVE IS \'Sampling operations that have
previously been conducted at the site but are not currently being
performed.\';

COMMENT ON COLUMN SITE.AGENCY IS \'Operating agency\';

COMMENT ON COLUMN SITE.STATE IS \'State abbreviation.\';

COMMENT ON COLUMN SITE.COUNTY IS \'County.\';

COMMENT ON COLUMN SITE.TIME_ZONE IS \'Local time zone of site.\';

COMMENT ON COLUMN SITE.LATITUDE IS \'Latitude; decimal degrees.\';

COMMENT ON COLUMN SITE.LONGITUDE IS \'Longitude; decimal degrees.\';

COMMENT ON COLUMN SITE.ELEVATION IS \'Elevation; m.\';

COMMENT ON COLUMN SITE.MAPID IS \'USGS 7-1/2 min. map name.\';

COMMENT ON COLUMN SITE.LAND_USE IS \'Primary land use\';

COMMENT ON COLUMN SITE.TERRAIN IS \'Terrain surrounding site\';

COMMENT ON COLUMN SITE.MLM IS \'Does site conform to assumptions of
MLM?\';

COMMENT ON COLUMN SITE.NADP_ID IS \'NADP site code.\';

COMMENT ON COLUMN SITE.NADP_DISTANCE IS \'Distance to nearest NADP site;
km.\';

COMMENT ON COLUMN SITE.UPDATE_DATE IS \'Date and time of last record
update.\';

\--

\-- SITEOPS_CONTIN_CD (Table)

\--

\-- Row count:1

CREATE TABLE SITEOPS_CONTIN_CD

(

CODE VARCHAR2(10 BYTE) NOT NULL,

DESCRIPTION VARCHAR2(255 BYTE) NULL,

VALID CHAR(1 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_SITEOPS_CONTIN_CD

PRIMARY KEY

(CODE)

);

COMMENT ON TABLE SITEOPS_CONTIN_CD IS \'Foreign key table for CONTINUOUS
in SITE_OPS\';

COMMENT ON COLUMN SITEOPS_CONTIN_CD.UPDATE_DATE IS \'Date and time of
last record update.\';

COMMENT ON COLUMN SITEOPS_CONTIN_CD.CODE IS \'Code\';

COMMENT ON COLUMN SITEOPS_CONTIN_CD.DESCRIPTION IS \'Description of
code.\';

COMMENT ON COLUMN SITEOPS_CONTIN_CD.VALID IS \'Does this code indicate a
valid (V) or invalid (I) data record?\';

\--

\-- SITEOPS_GROUPID_CD (Table)

\--

\-- Row count:5

CREATE TABLE SITEOPS_GROUPID_CD

(

CODE VARCHAR2(10 BYTE) NOT NULL,

DESCRIPTION VARCHAR2(255 BYTE) NULL,

VALID CHAR(1 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_SITEOPS_GROUPID_CD

PRIMARY KEY

(CODE)

);

COMMENT ON TABLE SITEOPS_GROUPID_CD IS \'Foreign key table for GROUP_ID
in SITE_OPS\';

COMMENT ON COLUMN SITEOPS_GROUPID_CD.CODE IS \'Code\';

COMMENT ON COLUMN SITEOPS_GROUPID_CD.DESCRIPTION IS \'Description of
code.\';

COMMENT ON COLUMN SITEOPS_GROUPID_CD.VALID IS \'Does this code indicate
a valid (V) or invalid (I) data record?\';

COMMENT ON COLUMN SITEOPS_GROUPID_CD.UPDATE_DATE IS \'Date and time of
last record update.\';

\--

\-- SITEOPS_MLMTZ_CD (Table)

\--

\-- Row count:7

CREATE TABLE SITEOPS_MLMTZ_CD

(

CODE VARCHAR2(10 BYTE) NOT NULL,

DESCRIPTION VARCHAR2(255 BYTE) NULL,

VALID CHAR(1 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_SITEOPS_MLMTZ_CD

PRIMARY KEY

(CODE)

);

COMMENT ON TABLE SITEOPS_MLMTZ_CD IS \'Foreign key table for
MLM_TIME_ZONE in SITE_OPS\';

COMMENT ON COLUMN SITEOPS_MLMTZ_CD.CODE IS \'Code\';

COMMENT ON COLUMN SITEOPS_MLMTZ_CD.DESCRIPTION IS \'Description of
code.\';

COMMENT ON COLUMN SITEOPS_MLMTZ_CD.VALID IS \'Does this code indicate a
valid (V) or invalid (I) data record?\';

COMMENT ON COLUMN SITEOPS_MLMTZ_CD.UPDATE_DATE IS \'Date and time of
last record update.\';

\--

\-- SITESTA_COMPCD_CD (Table)

\--

\-- Row count:10

CREATE TABLE SITESTA_COMPCD_CD

(

CODE VARCHAR2(10 BYTE) NOT NULL,

DESCRIPTION VARCHAR2(255 BYTE) NULL,

VALID CHAR(1 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_SITESTA_COMPCD_CD

PRIMARY KEY

(CODE)

);

COMMENT ON TABLE SITESTA_COMPCD_CD IS \'Foreign key table for
COMPONENT_CD in SITE_STATUS\';

COMMENT ON COLUMN SITESTA_COMPCD_CD.CODE IS \'Code\';

COMMENT ON COLUMN SITESTA_COMPCD_CD.DESCRIPTION IS \'Description of
code.\';

COMMENT ON COLUMN SITESTA_COMPCD_CD.VALID IS \'Does this code indicate a
valid (V) or invalid (I) data record?\';

COMMENT ON COLUMN SITESTA_COMPCD_CD.UPDATE_DATE IS \'Date and time of
last record update.\';

\--

\-- SITESTA_STATCD_CD (Table)

\--

\-- Row count:5

CREATE TABLE SITESTA_STATCD_CD

(

CODE VARCHAR2(10 BYTE) NOT NULL,

DESCRIPTION VARCHAR2(255 BYTE) NULL,

VALID CHAR(1 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_SITESTA_STATCD_CD

PRIMARY KEY

(CODE)

);

COMMENT ON TABLE SITESTA_STATCD_CD IS \'Foreign key table for STATUS_CD
in SITE_STATUS\';

COMMENT ON COLUMN SITESTA_STATCD_CD.CODE IS \'Code\';

COMMENT ON COLUMN SITESTA_STATCD_CD.DESCRIPTION IS \'Description of
code.\';

COMMENT ON COLUMN SITESTA_STATCD_CD.VALID IS \'Does this code indicate a
valid (V) or invalid (I) data record?\';

COMMENT ON COLUMN SITESTA_STATCD_CD.UPDATE_DATE IS \'Date and time of
last record update.\';

\--

\-- SITES_RENAMED (Table)

\--

\-- Row count:12

CREATE TABLE SITES_RENAMED

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

NEW_SITE_ID VARCHAR2(6 BYTE) NOT NULL,

DATE_RENAMED DATE NOT NULL,

COMMENTS VARCHAR2(80 BYTE) NULL,

UPDATE_DATE DATE DEFAULT NULL NULL,

CONSTRAINT PK_SITES_RENAMED

PRIMARY KEY

(SITE_ID)

);

COMMENT ON TABLE SITES_RENAMED IS \'Documentation of sites that have
been renamed during the history of the network but have remained at the
same location.\';

COMMENT ON COLUMN SITES_RENAMED.SITE_ID IS \'Site identification
code.\';

COMMENT ON COLUMN SITES_RENAMED.NEW_SITE_ID IS \'New Site ID code used
for all database records.\';

COMMENT ON COLUMN SITES_RENAMED.DATE_RENAMED IS \'Date Site ID was
changed; all hard copy and lab records prior to date remain labeled by
original ID.\';

COMMENT ON COLUMN SITES_RENAMED.COMMENTS IS \'Documentation of reason
for Site ID change.\';

COMMENT ON COLUMN SITES_RENAMED.UPDATE_DATE IS \'Date and time of last
record update.\';

\--

\-- SITE_AGENCY_CD (Table)

\--

\-- Row count:2

CREATE TABLE SITE_AGENCY_CD

(

CODE VARCHAR2(10 BYTE) NOT NULL,

DESCRIPTION VARCHAR2(255 BYTE) NULL,

VALID CHAR(1 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_SITE_AGENCY_CD

PRIMARY KEY

(CODE)

);

COMMENT ON TABLE SITE_AGENCY_CD IS \'Foreign key table for AGENCY in
SITE\';

COMMENT ON COLUMN SITE_AGENCY_CD.CODE IS \'Code\';

COMMENT ON COLUMN SITE_AGENCY_CD.DESCRIPTION IS \'Description of
code.\';

COMMENT ON COLUMN SITE_AGENCY_CD.VALID IS \'Does this code indicate a
valid (V) or invalid (I) data record?\';

COMMENT ON COLUMN SITE_AGENCY_CD.UPDATE_DATE IS \'Date and time of last
record update.\';

\--

\-- SITE_MLM_CD (Table)

\--

\-- Row count:3

CREATE TABLE SITE_MLM_CD

(

CODE VARCHAR2(10 BYTE) NOT NULL,

DESCRIPTION VARCHAR2(255 BYTE) NULL,

VALID CHAR(1 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_SITE_MLM_CD

PRIMARY KEY

(CODE)

);

COMMENT ON TABLE SITE_MLM_CD IS \'Foreign key table for MLM in SITE\';

COMMENT ON COLUMN SITE_MLM_CD.CODE IS \'Code\';

COMMENT ON COLUMN SITE_MLM_CD.DESCRIPTION IS \'Description of code.\';

COMMENT ON COLUMN SITE_MLM_CD.VALID IS \'Does this code indicate a valid
(V) or invalid (I) data record?\';

COMMENT ON COLUMN SITE_MLM_CD.UPDATE_DATE IS \'Date and time of last
record update.\';

\--

\-- SITE_NBP (Table)

\--

\-- Row count:46

CREATE TABLE SITE_NBP

(

SITE_ID VARCHAR2(6 BYTE) NULL

);

COMMENT ON TABLE SITE_NBP IS \'Sites within 200km of the NBP region.\';

COMMENT ON COLUMN SITE_NBP.SITE_ID IS \'Site identification code.\';

\--

\-- SITE_OPERATOR (Table)

\--

\-- Row count:106

CREATE TABLE SITE_OPERATOR

(

SITE_ID VARCHAR2(6 BYTE) NULL,

PRIMARY_CONTACT VARCHAR2(65 BYTE) NULL,

PC_AFFILIATION VARCHAR2(65 BYTE) NULL,

PC_ADDRESS VARCHAR2(65 BYTE) NULL,

PC_CITY VARCHAR2(30 BYTE) NULL,

PC_STATE VARCHAR2(4 BYTE) NULL,

PC_ZIP VARCHAR2(10 BYTE) NULL,

PC_PHONE_HOME VARCHAR2(18 BYTE) NULL,

PC_PHONE_WORK VARCHAR2(18 BYTE) NULL,

PC_FAX VARCHAR2(18 BYTE) NULL,

SITE_OPERATOR VARCHAR2(65 BYTE) NULL,

SO_AFFILIATION VARCHAR2(65 BYTE) NULL,

SO_ADDRESS VARCHAR2(65 BYTE) NULL,

SO_CITY VARCHAR2(30 BYTE) NULL,

SO_STATE VARCHAR2(4 BYTE) NULL,

SO_ZIP VARCHAR2(10 BYTE) NULL,

SO_PHONE_HOME VARCHAR2(18 BYTE) NULL,

SO_PHONE_WORK VARCHAR2(18 BYTE) NULL,

SO_FAX VARCHAR2(18 BYTE) NULL,

SO_OTHER VARCHAR2(100 BYTE) NULL,

SO_STARTED INTEGER NULL,

SO_CONTRACTED_THRU VARCHAR2(20 BYTE) NULL,

BACKUP_SO VARCHAR2(65 BYTE) NULL,

BSO_AFFILIATION VARCHAR2(65 BYTE) NULL,

BSO_ADDRESS VARCHAR2(65 BYTE) NULL,

BSO_CITY VARCHAR2(30 BYTE) NULL,

BSO_STATE VARCHAR2(4 BYTE) NULL,

BSO_ZIP VARCHAR2(10 BYTE) NULL,

BSO_PHONE_HOME VARCHAR2(18 BYTE) NULL,

BSO_PHONE_WORK VARCHAR2(18 BYTE) NULL,

BSO_FAX VARCHAR2(18 BYTE) NULL,

UPS_ACCOUNT_NUMBER VARCHAR2(30 BYTE) NULL,

SHIPPING_ADDRESS1 VARCHAR2(65 BYTE) NULL,

SHIPPING_ADDRESS2 VARCHAR2(65 BYTE) NULL,

SHIPPING_CITY VARCHAR2(30 BYTE) NULL,

SHIPPING_STATE VARCHAR2(4 BYTE) NULL,

SHIPPING_ZIP VARCHAR2(10 BYTE) NULL,

SHELTER_PHONE VARCHAR2(18 BYTE) NULL,

SHELTER_DIRECTIONS VARCHAR2(4000 BYTE) NULL,

SHELTER_HAZARDS VARCHAR2(65 BYTE) NULL,

EMERGENCY_CONTACT VARCHAR2(65 BYTE) NULL,

EMERGENCY_PHONE VARCHAR2(18 BYTE) NULL,

EMERGENCY_DIRECTIONS VARCHAR2(4000 BYTE) NULL,

ELECTRIC_UTILITY VARCHAR2(65 BYTE) NULL,

ELECTRIC_UTIL_PHONE VARCHAR2(18 BYTE) NULL,

TELEPHONE_COMPANY VARCHAR2(65 BYTE) NULL,

TELEPHONE_CO_PHONE VARCHAR2(18 BYTE) NULL,

DATE_UPDATED DATE NULL,

COMMENTS VARCHAR2(4000 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_SITE_OPERATOR

PRIMARY KEY

(SITE_ID)

);

COMMENT ON TABLE SITE_OPERATOR IS \'Site operator information for
sites.\';

COMMENT ON COLUMN SITE_OPERATOR.SITE_ID IS \'Site identification
code.\';

COMMENT ON COLUMN SITE_OPERATOR.PRIMARY_CONTACT IS \'Primary contact for
site\';

COMMENT ON COLUMN SITE_OPERATOR.PC_AFFILIATION IS \'Employer or
organizational affilation for primary contact.\';

COMMENT ON COLUMN SITE_OPERATOR.PC_ADDRESS IS \'Address for primary
contact.\';

COMMENT ON COLUMN SITE_OPERATOR.PC_CITY IS \'City for primary
contact.\';

COMMENT ON COLUMN SITE_OPERATOR.PC_STATE IS \'State for primary
contact.\';

COMMENT ON COLUMN SITE_OPERATOR.PC_ZIP IS \'Zip for primary contact.\';

COMMENT ON COLUMN SITE_OPERATOR.PC_PHONE_HOME IS \'Home phone number for
primary contact.\';

COMMENT ON COLUMN SITE_OPERATOR.PC_PHONE_WORK IS \'Work phone number for
primary contact.\';

COMMENT ON COLUMN SITE_OPERATOR.PC_FAX IS \'Fax number for primary
contact.\';

COMMENT ON COLUMN SITE_OPERATOR.SITE_OPERATOR IS \'Site operator for
site\';

COMMENT ON COLUMN SITE_OPERATOR.SO_AFFILIATION IS \'Employer or
organizational affilation for site operator.\';

COMMENT ON COLUMN SITE_OPERATOR.SO_ADDRESS IS \'Address for site
operator.\';

COMMENT ON COLUMN SITE_OPERATOR.SO_CITY IS \'City for site operator.\';

COMMENT ON COLUMN SITE_OPERATOR.SO_STATE IS \'State for site
operator.\';

COMMENT ON COLUMN SITE_OPERATOR.SO_ZIP IS \'Zip for site operator.\';

COMMENT ON COLUMN SITE_OPERATOR.SO_PHONE_HOME IS \'Home phone number for
site operator.\';

COMMENT ON COLUMN SITE_OPERATOR.SO_PHONE_WORK IS \'Work phone number for
site operator.\';

COMMENT ON COLUMN SITE_OPERATOR.SO_FAX IS \'Fax number for site
operator.\';

COMMENT ON COLUMN SITE_OPERATOR.SO_OTHER IS \'Other information
pertaining to the site operator.\';

COMMENT ON COLUMN SITE_OPERATOR.SO_STARTED IS \'Year site operator
started working with CASTNet.\';

COMMENT ON COLUMN SITE_OPERATOR.SO_CONTRACTED_THRU IS \'Year site
operator is contracted through.\';

COMMENT ON COLUMN SITE_OPERATOR.BACKUP_SO IS \'Backup site operator.\';

COMMENT ON COLUMN SITE_OPERATOR.BSO_AFFILIATION IS \'Employer or
organizational affilation for backup site operator.\';

COMMENT ON COLUMN SITE_OPERATOR.BSO_ADDRESS IS \'Address for backup site
operator.\';

COMMENT ON COLUMN SITE_OPERATOR.BSO_CITY IS \'City for backup site
operator.\';

COMMENT ON COLUMN SITE_OPERATOR.BSO_STATE IS \'State for backup site
operator.\';

COMMENT ON COLUMN SITE_OPERATOR.BSO_ZIP IS \'Zip for backup site
operator.\';

COMMENT ON COLUMN SITE_OPERATOR.BSO_PHONE_HOME IS \'Home phone number
for backup site operator.\';

COMMENT ON COLUMN SITE_OPERATOR.BSO_PHONE_WORK IS \'Work phone number
for backup site operator.\';

COMMENT ON COLUMN SITE_OPERATOR.BSO_FAX IS \'Fax number for backup site
operator.\';

COMMENT ON COLUMN SITE_OPERATOR.UPS_ACCOUNT_NUMBER IS \'UPS account
number (if applicable).\';

COMMENT ON COLUMN SITE_OPERATOR.SHIPPING_ADDRESS1 IS \'Line 1 of
shipping address for site.\';

COMMENT ON COLUMN SITE_OPERATOR.SHIPPING_ADDRESS2 IS \'Line 2 of
shipping address for site.\';

COMMENT ON COLUMN SITE_OPERATOR.SHIPPING_CITY IS \'City for shipping
address.\';

COMMENT ON COLUMN SITE_OPERATOR.SHIPPING_STATE IS \'State for shipping
address.\';

COMMENT ON COLUMN SITE_OPERATOR.SHIPPING_ZIP IS \'Zip for shipping
address.\';

COMMENT ON COLUMN SITE_OPERATOR.SHELTER_PHONE IS \'Phone number at site
shelter.\';

COMMENT ON COLUMN SITE_OPERATOR.SHELTER_DIRECTIONS IS \'Directions to
site shelter.\';

COMMENT ON COLUMN SITE_OPERATOR.SHELTER_HAZARDS IS \'Hazards at site
location.\';

COMMENT ON COLUMN SITE_OPERATOR.EMERGENCY_CONTACT IS \'Emergency contact
at site.\';

COMMENT ON COLUMN SITE_OPERATOR.EMERGENCY_PHONE IS \'Phone number for
emergency contact.\';

COMMENT ON COLUMN SITE_OPERATOR.EMERGENCY_DIRECTIONS IS \'Directions to
nearest emergency site.\';

COMMENT ON COLUMN SITE_OPERATOR.ELECTRIC_UTILITY IS \'Electric utility
servicing site.\';

COMMENT ON COLUMN SITE_OPERATOR.ELECTRIC_UTIL_PHONE IS \'Phone number
for electric utility.\';

COMMENT ON COLUMN SITE_OPERATOR.TELEPHONE_COMPANY IS \'Telephone company
servicing site.\';

COMMENT ON COLUMN SITE_OPERATOR.TELEPHONE_CO_PHONE IS \'Phone number for
telephone company.\';

COMMENT ON COLUMN SITE_OPERATOR.DATE_UPDATED IS \'Date of last manual
entry update.\';

COMMENT ON COLUMN SITE_OPERATOR.COMMENTS IS \'Comments concerning other
site contacts or pertinent information.\';

COMMENT ON COLUMN SITE_OPERATOR.UPDATE_DATE IS \'Date and time of last
record update.\';

\--

\-- SITE_OPS (Table)

\--

\-- Dependencies:

\-- SITEOPS_CONTIN_CD (Table)

\-- SITEOPS_GROUPID_CD (Table)

\-- SITEOPS_MLMTZ_CD (Table)

\--

\-- Row count:128

CREATE TABLE SITE_OPS

(

SITE_ID VARCHAR2(6 BYTE) NULL,

CONTINUOUS VARCHAR2(1 BYTE) NULL,

MLM_TIME_ZONE VARCHAR2(15 BYTE) NULL,

NEARSITE1 VARCHAR2(6 BYTE) NULL,

NEARSITE2 VARCHAR2(6 BYTE) NULL,

NEARSITE3 VARCHAR2(6 BYTE) NULL,

LAB_SEQ VARCHAR2(3 BYTE) NULL,

GROUP_ID VARCHAR2(1 BYTE) NULL,

COMMENTS VARCHAR2(120 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_SITE_OPS

PRIMARY KEY

(SITE_ID),

CONSTRAINT FK_SITEOP_CONT

FOREIGN KEY (CONTINUOUS)

REFERENCES SITEOPS_CONTIN_CD (CODE),

CONSTRAINT FK_SITEOP_GRPID

FOREIGN KEY (GROUP_ID)

REFERENCES SITEOPS_GROUPID_CD (CODE),

CONSTRAINT FK_SITEOP_MLMTZ

FOREIGN KEY (MLM_TIME_ZONE)

REFERENCES SITEOPS_MLMTZ_CD (CODE)

);

COMMENT ON TABLE SITE_OPS IS \'Operational information for sites.\';

COMMENT ON COLUMN SITE_OPS.COMMENTS IS \'Comments regarding the history
of the site.\';

COMMENT ON COLUMN SITE_OPS.UPDATE_DATE IS \'Date and time of last record
update.\';

COMMENT ON COLUMN SITE_OPS.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN SITE_OPS.CONTINUOUS IS \'Site with continuous or
nearly continuous record that can be used for long-term analyses.\';

COMMENT ON COLUMN SITE_OPS.MLM_TIME_ZONE IS \'Time zone used by MLM
model for the sun angle calculation (hours from GMT).\';

COMMENT ON COLUMN SITE_OPS.NEARSITE1 IS \'Most appropriate site for MLM
model substitutions when met data is missing.\';

COMMENT ON COLUMN SITE_OPS.NEARSITE2 IS \'Second-most appropriate site
for MLM substitutions when met data is missing.\';

COMMENT ON COLUMN SITE_OPS.NEARSITE3 IS \'Third-most appropriate site
for MLM substitutions when met data is missing.\';

COMMENT ON COLUMN SITE_OPS.LAB_SEQ IS \'Lab sequence number assigned to
site.\';

COMMENT ON COLUMN SITE_OPS.GROUP_ID IS \'Calibration group to which site
belongs.\';

\--

\-- SITE_PHOTO (Table)

\--

\-- Row count:3901

CREATE TABLE SITE_PHOTO

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

CALIBRATION_DATE DATE NOT NULL,

FILE_NAME VARCHAR2(22 BYTE) NOT NULL,

DESCRIPTION VARCHAR2(50 BYTE) NULL,

COMMENTS VARCHAR2(50 BYTE) NULL,

STATUS VARCHAR2(2 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT SITE_PHOTO_PK

PRIMARY KEY

(FILE_NAME)

);

COMMENT ON TABLE SITE_PHOTO IS \'Site photos available\';

COMMENT ON COLUMN SITE_PHOTO.STATUS IS \'Status flag for uploading
photos.\';

COMMENT ON COLUMN SITE_PHOTO.SITE_ID IS \'Site ID\';

COMMENT ON COLUMN SITE_PHOTO.CALIBRATION_DATE IS \'Date of calibration
and site photo\';

COMMENT ON COLUMN SITE_PHOTO.FILE_NAME IS \'Name of photo file\';

COMMENT ON COLUMN SITE_PHOTO.DESCRIPTION IS \'Description of the
direction of the photo\';

COMMENT ON COLUMN SITE_PHOTO.COMMENTS IS \'Comments about the site
photo\';

\--

\-- SITE_PLANT_DETAIL (Table)

\--

\-- Dependencies:

\-- PLANT (Table)

\--

\-- Row count:3766

CREATE TABLE SITE_PLANT_DETAIL

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

PLANT_ID NUMBER(11) NOT NULL,

JSTART NUMBER(11) NOT NULL,

JEND NUMBER(11) NULL,

PERCENT_LEAF NUMBER(8,2) NULL,

UPDATE_DATE DATE DEFAULT sysdate NULL,

CONSTRAINT PK_SITE_PLANT_DETAIL

PRIMARY KEY

(SITE_ID, PLANT_ID, JSTART),

CONSTRAINT REFPLANT217

FOREIGN KEY (PLANT_ID)

REFERENCES PLANT (PLANT_ID)

);

COMMENT ON TABLE SITE_PLANT_DETAIL IS \'Plant leaf out periods for sites
used as input to the MLM model.\';

COMMENT ON COLUMN SITE_PLANT_DETAIL.SITE_ID IS \'Site identification
code.\';

COMMENT ON COLUMN SITE_PLANT_DETAIL.PLANT_ID IS \'Plant identification
code.\';

COMMENT ON COLUMN SITE_PLANT_DETAIL.JSTART IS \'Julian starting date for
the given interval.\';

COMMENT ON COLUMN SITE_PLANT_DETAIL.JEND IS \'Julian ending date for the
given interval.\';

COMMENT ON COLUMN SITE_PLANT_DETAIL.PERCENT_LEAF IS \'Percentage of
maximum leaf coverage for the time period, plant, and site.\';

COMMENT ON COLUMN SITE_PLANT_DETAIL.UPDATE_DATE IS \'Date and time of
last record update.\';

\--

\-- SITE_PLANT_SUMMARY (Table)

\--

\-- Dependencies:

\-- PLANT (Table)

\--

\-- Row count:478

CREATE TABLE SITE_PLANT_SUMMARY

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

PLANT_ID NUMBER(11) NOT NULL,

PERCENT_COVERAGE NUMBER(8,2) NULL,

MAXIMUM_LAI NUMBER(8,2) NULL,

WINTER_LAI NUMBER(8,2) NULL,

RESERVED NUMBER(8,2) NULL,

UPDATE_DATE DATE DEFAULT sysdate NULL,

CONSTRAINT PK_SITE_PLANT_SUMMARY

PRIMARY KEY

(SITE_ID, PLANT_ID),

CONSTRAINT REFPLANT218

FOREIGN KEY (PLANT_ID)

REFERENCES PLANT (PLANT_ID)

);

COMMENT ON TABLE SITE_PLANT_SUMMARY IS \'Plant coverage for sites used
as input to the MLM model.\';

COMMENT ON COLUMN SITE_PLANT_SUMMARY.SITE_ID IS \'Site identification
code.\';

COMMENT ON COLUMN SITE_PLANT_SUMMARY.PLANT_ID IS \'Plant identification
code.\';

COMMENT ON COLUMN SITE_PLANT_SUMMARY.PERCENT_COVERAGE IS \'Percentage of
total leaf coverage due to the plant species at the site.\';

COMMENT ON COLUMN SITE_PLANT_SUMMARY.MAXIMUM_LAI IS \'Maximum leaf area
index at the site.\';

COMMENT ON COLUMN SITE_PLANT_SUMMARY.WINTER_LAI IS \'Winter conditions
leaf area index at the site.\';

COMMENT ON COLUMN SITE_PLANT_SUMMARY.RESERVED IS \'Reserved for future
use.\';

COMMENT ON COLUMN SITE_PLANT_SUMMARY.UPDATE_DATE IS \'Date and time of
last record update.\';

\--

\-- SITE_SPONSOR (Table)

\--

\-- Dependencies:

\-- SITE_SPONSOR_CD (Table)

\--

\-- Row count:18

CREATE TABLE SITE_SPONSOR

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

COSPONSOR VARCHAR2(6 BYTE) NOT NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT SITE_SPONSOR_PK

PRIMARY KEY

(SITE_ID, COSPONSOR),

CONSTRAINT SITE_SPONSOR_R01

FOREIGN KEY (COSPONSOR)

REFERENCES SITE_SPONSOR_CD (COSPONSOR)

);

COMMENT ON TABLE SITE_SPONSOR IS \'Cosponsors of CASTNET sites\';

COMMENT ON COLUMN SITE_SPONSOR.SITE_ID IS \'Site ID\';

COMMENT ON COLUMN SITE_SPONSOR.COSPONSOR IS \'Cosponsor of the site\';

COMMENT ON COLUMN SITE_SPONSOR.UPDATE_DATE IS \'Date and time of last
record update.\';

\--

\-- SITE_SPONSOR_CD (Table)

\--

\-- Row count:18

CREATE TABLE SITE_SPONSOR_CD

(

COSPONSOR VARCHAR2(6 BYTE) NOT NULL,

DESCRIPTION VARCHAR2(50 BYTE) NULL,

URL VARCHAR2(100 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT SITE_SPONSOR_CD_PK

PRIMARY KEY

(COSPONSOR)

);

COMMENT ON TABLE SITE_SPONSOR_CD IS \'Cosponsor descriptions\';

COMMENT ON COLUMN SITE_SPONSOR_CD.COSPONSOR IS \'Cosponsor of the
site\';

COMMENT ON COLUMN SITE_SPONSOR_CD.DESCRIPTION IS \'Description of the
agency or university that is a cosponsor of the site\';

COMMENT ON COLUMN SITE_SPONSOR_CD.URL IS \'Web link to the site
cosponsor\';

COMMENT ON COLUMN SITE_SPONSOR_CD.UPDATE_DATE IS \'Date and time of last
record update.\';

\--

\-- SITE_STATUS (Table)

\--

\-- Dependencies:

\-- SITESTA_COMPCD_CD (Table)

\-- SITESTA_STATCD_CD (Table)

\--

\-- Row count:432

CREATE TABLE SITE_STATUS

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

COMPONENT_CD VARCHAR2(10 BYTE) NOT NULL,

STATUS_CD VARCHAR2(7 BYTE) NOT NULL,

START_DATE DATE NOT NULL,

END_DATE DATE NULL,

UPDATE_DATE DATE DEFAULT NULL NULL,

CONSTRAINT PK_SITE_STATUS

PRIMARY KEY

(SITE_ID, START_DATE, COMPONENT_CD, STATUS_CD),

CONSTRAINT FK_SITEST_COMPCD

FOREIGN KEY (COMPONENT_CD)

REFERENCES SITESTA_COMPCD_CD (CODE),

CONSTRAINT FK_SITEST_STATUSCD

FOREIGN KEY (STATUS_CD)

REFERENCES SITESTA_STATCD_CD (CODE)

);

COMMENT ON TABLE SITE_STATUS IS \'Status of network components present
at sites.\';

COMMENT ON COLUMN SITE_STATUS.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN SITE_STATUS.COMPONENT_CD IS \'Component of network at
specific site described by record.\';

COMMENT ON COLUMN SITE_STATUS.STATUS_CD IS \'Status of component.\';

COMMENT ON COLUMN SITE_STATUS.START_DATE IS \'Date of first calibration
for met and ozone components; Start of data record for other
components.\';

COMMENT ON COLUMN SITE_STATUS.END_DATE IS \'Site deactivation date for
met and ozone components; End of data record for other components.\';

COMMENT ON COLUMN SITE_STATUS.UPDATE_DATE IS \'Date and time of last
record update.\';

\--

\-- SITE_TIMEZONE_CD (Table)

\--

\-- Row count:9

CREATE TABLE SITE_TIMEZONE_CD

(

CODE VARCHAR2(10 BYTE) NOT NULL,

DESCRIPTION VARCHAR2(255 BYTE) NULL,

VALID CHAR(1 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_SITE_TIMEZONE_CD

PRIMARY KEY

(CODE)

);

COMMENT ON TABLE SITE_TIMEZONE_CD IS \'Foreign key table for TIME_ZONE
in SITE\';

COMMENT ON COLUMN SITE_TIMEZONE_CD.CODE IS \'Code\';

COMMENT ON COLUMN SITE_TIMEZONE_CD.DESCRIPTION IS \'Description of
code.\';

COMMENT ON COLUMN SITE_TIMEZONE_CD.VALID IS \'Does this code indicate a
valid (V) or invalid (I) data record?\';

COMMENT ON COLUMN SITE_TIMEZONE_CD.UPDATE_DATE IS \'Date and time of
last record update.\';

\--

\-- STATE (Table)

\--

\-- Row count:71

CREATE TABLE STATE

(

STATE_NAME VARCHAR2(25 BYTE) NOT NULL,

STATE_FIPS VARCHAR2(3 BYTE) NOT NULL,

STATE_NUM NUMBER(4) NOT NULL,

STATE CHAR(2 BYTE) NOT NULL,

EPA_REGION NUMBER(2) NULL,

REGION VARCHAR2(20 BYTE) NULL,

REGION_NUM NUMBER(2) NULL,

AREA NUMBER NULL,

CONSTRAINT PK_STATE

PRIMARY KEY

(STATE_FIPS)

);

COMMENT ON TABLE STATE IS \'Lookup table for information related to US
states and territories, and Canadian provinces.\';

COMMENT ON COLUMN STATE.STATE_NAME IS \'State name\';

COMMENT ON COLUMN STATE.STATE_FIPS IS \'State FIPS\';

COMMENT ON COLUMN STATE.STATE_NUM IS \'State fips in numeric type\';

COMMENT ON COLUMN STATE.STATE IS \'State abbreviation.\';

COMMENT ON COLUMN STATE.EPA_REGION IS \'EPA Region.\';

COMMENT ON COLUMN STATE.REGION IS \'Region name.\';

COMMENT ON COLUMN STATE.REGION_NUM IS \'Region number.\';

COMMENT ON COLUMN STATE.AREA IS \'Area of the state; m\^2.\';

\--

\-- TOTAL_DEPOSITION (Table)

\--

\-- Row count:1431

CREATE TABLE TOTAL_DEPOSITION

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

YEAR INTEGER NOT NULL,

PRECIP NUMBER(6,2) NULL,

SO4_WET_S NUMBER NULL,

SO2_DRY_S NUMBER NULL,

SO4_DRY_S NUMBER NULL,

WET_S NUMBER NULL,

DRY_S NUMBER NULL,

TOTAL_S NUMBER NULL,

NO3_WET_N NUMBER NULL,

NH4_WET_N NUMBER NULL,

HNO3_DRY_N NUMBER NULL,

NO3_DRY_N NUMBER NULL,

NH4_DRY_N NUMBER NULL,

WET_N NUMBER NULL,

DRY_N NUMBER NULL,

TOTAL_N NUMBER NULL,

UPDATE_DATE DATE NULL

);

COMMENT ON COLUMN TOTAL_DEPOSITION.SITE_ID IS \'Site identification
code.\';

COMMENT ON COLUMN TOTAL_DEPOSITION.YEAR IS \'Year of data, using
standard Tuesday to Tuesday weeks.\';

COMMENT ON COLUMN TOTAL_DEPOSITION.PRECIP IS \'Precipitation; cm.\';

COMMENT ON COLUMN TOTAL_DEPOSITION.SO4_WET_S IS \'Wet sulfate
deposition; kg-S/ha.\';

COMMENT ON COLUMN TOTAL_DEPOSITION.SO2_DRY_S IS \'Dry sulfur dioxide
deposition; kg-S/ha\';

COMMENT ON COLUMN TOTAL_DEPOSITION.SO4_DRY_S IS \'Dry sulfate
deposition; kg-S/ha\';

COMMENT ON COLUMN TOTAL_DEPOSITION.WET_S IS \'Total wet sulfur
deposition; kg-S/ha.\';

COMMENT ON COLUMN TOTAL_DEPOSITION.DRY_S IS \'Total dry sulfur
deposition; kg-S/ha\';

COMMENT ON COLUMN TOTAL_DEPOSITION.TOTAL_S IS \'Total sulfur deposition;
kg-S/ha.\';

COMMENT ON COLUMN TOTAL_DEPOSITION.NO3_WET_N IS \'Wet nitrate
deposition; kg-N/ha.\';

COMMENT ON COLUMN TOTAL_DEPOSITION.NH4_WET_N IS \'Wet ammonium
deposition; kg-N/ha.\';

COMMENT ON COLUMN TOTAL_DEPOSITION.HNO3_DRY_N IS \'Dry nitric acid
deposition; kg-N/ha\';

COMMENT ON COLUMN TOTAL_DEPOSITION.NO3_DRY_N IS \'Dry particulate
nitrate deposition; kg-N/ha.\';

COMMENT ON COLUMN TOTAL_DEPOSITION.NH4_DRY_N IS \'Dry particulate
ammonium deposition; kg-N/ha.\';

COMMENT ON COLUMN TOTAL_DEPOSITION.WET_N IS \'Total wet nitrogen
deposition; kg-N/ha.\';

COMMENT ON COLUMN TOTAL_DEPOSITION.DRY_N IS \'Total dry nitrogen
deposition; kg-N/ha\';

COMMENT ON COLUMN TOTAL_DEPOSITION.TOTAL_N IS \'Total nitrogen
deposition; kg-N/ha.\';

COMMENT ON COLUMN TOTAL_DEPOSITION.UPDATE_DATE IS \'Date and time of
last record update.\';

\--

\-- VISCHEM (Table)

\--

\-- Dependencies:

\-- SAMPLE_REFERENCE (Table)

\--

\-- Row count:4248

CREATE TABLE VISCHEM

(

LAB_KEY VARCHAR2(15 BYTE) NOT NULL,

SITE_ID VARCHAR2(6 BYTE) NULL,

DATEON DATE NULL,

DATEOFF DATE NULL,

FINE_MASS NUMBER(12,8) NULL,

FINE_MASS_F VARCHAR2(1 BYTE) NULL,

ABSORPTION NUMBER(12,8) NULL,

ABSORPTION_F VARCHAR2(1 BYTE) NULL,

H NUMBER(12,8) NULL,

H_F VARCHAR2(1 BYTE) NULL,

NA NUMBER(12,8) NULL,

NA_F VARCHAR2(1 BYTE) NULL,

MG NUMBER(12,8) NULL,

MG_F VARCHAR2(1 BYTE) NULL,

AL NUMBER(12,8) NULL,

AL_F VARCHAR2(1 BYTE) NULL,

SI NUMBER(12,8) NULL,

SI_F VARCHAR2(1 BYTE) NULL,

P NUMBER(12,8) NULL,

P_F VARCHAR2(1 BYTE) NULL,

S NUMBER(12,8) NULL,

S_F VARCHAR2(1 BYTE) NULL,

CL NUMBER(12,8) NULL,

CL_F VARCHAR2(1 BYTE) NULL,

K NUMBER(12,8) NULL,

K_F VARCHAR2(1 BYTE) NULL,

CA NUMBER(12,8) NULL,

CA_F VARCHAR2(1 BYTE) NULL,

TI NUMBER(12,8) NULL,

TI_F VARCHAR2(1 BYTE) NULL,

VA NUMBER(12,8) NULL,

VA_F VARCHAR2(1 BYTE) NULL,

CR NUMBER(12,8) NULL,

CR_F VARCHAR2(1 BYTE) NULL,

MN NUMBER(12,8) NULL,

MN_F VARCHAR2(1 BYTE) NULL,

FE NUMBER(12,8) NULL,

FE_F VARCHAR2(1 BYTE) NULL,

NI NUMBER(12,8) NULL,

NI_F VARCHAR2(1 BYTE) NULL,

CU NUMBER(12,8) NULL,

CU_F VARCHAR2(1 BYTE) NULL,

ZN NUMBER(12,8) NULL,

ZN_F VARCHAR2(1 BYTE) NULL,

ARSENIC NUMBER(12,8) NULL,

ARSENIC_F VARCHAR2(1 BYTE) NULL,

PB NUMBER(12,8) NULL,

PB_F VARCHAR2(1 BYTE) NULL,

SE NUMBER(12,8) NULL,

SE_F VARCHAR2(1 BYTE) NULL,

BR NUMBER(12,8) NULL,

BR_F VARCHAR2(1 BYTE) NULL,

RB NUMBER(12,8) NULL,

RB_F VARCHAR2(1 BYTE) NULL,

SR NUMBER(12,8) NULL,

SR_F VARCHAR2(1 BYTE) NULL,

ZR NUMBER(12,8) NULL,

ZR_F VARCHAR2(1 BYTE) NULL,

MO NUMBER(12,8) NULL,

MO_F VARCHAR2(1 BYTE) NULL,

CO NUMBER(12,8) NULL,

CO_F VARCHAR2(1 BYTE) NULL,

GA NUMBER(12,8) NULL,

GA_F VARCHAR2(1 BYTE) NULL,

GE NUMBER(12,8) NULL,

GE_F VARCHAR2(1 BYTE) NULL,

Y NUMBER(12,8) NULL,

Y_F VARCHAR2(1 BYTE) NULL,

PD NUMBER(12,8) NULL,

PD_F VARCHAR2(1 BYTE) NULL,

AG NUMBER(12,8) NULL,

AG_F VARCHAR2(1 BYTE) NULL,

CD NUMBER(12,8) NULL,

CD_F VARCHAR2(1 BYTE) NULL,

INDIUM NUMBER(12,8) NULL,

INDIUM_F VARCHAR2(1 BYTE) NULL,

SN NUMBER(12,8) NULL,

SN_F VARCHAR2(1 BYTE) NULL,

SB NUMBER(12,8) NULL,

SB_F VARCHAR2(1 BYTE) NULL,

BA NUMBER(12,8) NULL,

BA_F VARCHAR2(1 BYTE) NULL,

LA NUMBER(12,8) NULL,

LA_F VARCHAR2(1 BYTE) NULL,

HG NUMBER(12,8) NULL,

HG_F VARCHAR2(1 BYTE) NULL,

SO4 NUMBER(12,8) NULL,

SO4_F VARCHAR2(1 BYTE) NULL,

NO3 NUMBER(12,8) NULL,

NO3_F VARCHAR2(1 BYTE) NULL,

OCTC NUMBER(12,8) NULL,

OCTC_F VARCHAR2(1 BYTE) NULL,

OHTC NUMBER(12,8) NULL,

OHTC_F VARCHAR2(1 BYTE) NULL,

ECTC NUMBER(12,8) NULL,

ECTC_F VARCHAR2(1 BYTE) NULL,

EHTC NUMBER(12,8) NULL,

EHTC_F VARCHAR2(1 BYTE) NULL,

TCTC NUMBER(12,8) NULL,

TCTC_F VARCHAR2(1 BYTE) NULL,

TFLOW NUMBER(12,8) NULL,

TFLOW_F VARCHAR2(1 BYTE) NULL,

NFLOW NUMBER(12,8) NULL,

NFLOW_F VARCHAR2(1 BYTE) NULL,

QFLOW NUMBER(12,8) NULL,

QFLOW_F VARCHAR2(1 BYTE) NULL,

THOURS NUMBER(12,8) NULL,

THOURS_F VARCHAR2(1 BYTE) NULL,

NHOURS NUMBER(12,8) NULL,

NHOURS_F VARCHAR2(1 BYTE) NULL,

QHOURS NUMBER(12,8) NULL,

QHOURS_F VARCHAR2(1 BYTE) NULL,

COMMENT_CODES VARCHAR2(20 BYTE) NULL,

TEMP_SOURCE VARCHAR2(2 BYTE) NULL,

STD2LOCAL_CF NUMBER(12,8) NULL,

UPDATE_DATE DATE DEFAULT sysdate NULL,

CONSTRAINT PK_VISCHEM

PRIMARY KEY

(LAB_KEY),

CONSTRAINT REFSAMPLE_REFERENCE232

FOREIGN KEY (LAB_KEY)

REFERENCES SAMPLE_REFERENCE (LAB_KEY)

);

COMMENT ON TABLE VISCHEM IS \'Chemical speciation concentration data
from aerosol filter packs at local conditions from October 1993 to
December 2001. This table is no longer updated.\';

COMMENT ON COLUMN VISCHEM.TFLOW IS \'Average flow through Teflon filter;
lpm.\';

COMMENT ON COLUMN VISCHEM.TFLOW_F IS \'Data quality code for TFLOW.\';

COMMENT ON COLUMN VISCHEM.NFLOW IS \'Average flow through Nylon filter;
lpm.\';

COMMENT ON COLUMN VISCHEM.NFLOW_F IS \'Data quality code for NFLOW.\';

COMMENT ON COLUMN VISCHEM.QFLOW IS \'Average flow through Quartz filter;
lpm.\';

COMMENT ON COLUMN VISCHEM.QFLOW_F IS \'Data quality code for QFLOW.\';

COMMENT ON COLUMN VISCHEM.THOURS IS \'Number of hours Teflon filter
operated.\';

COMMENT ON COLUMN VISCHEM.THOURS_F IS \'Data quality code for THOURS.\';

COMMENT ON COLUMN VISCHEM.NHOURS IS \'Number of hours Nylon filter
operated.\';

COMMENT ON COLUMN VISCHEM.NHOURS_F IS \'Data quality code for NHOURS.\';

COMMENT ON COLUMN VISCHEM.QHOURS IS \'Number of hours Quartz filter
operated.\';

COMMENT ON COLUMN VISCHEM.QHOURS_F IS \'Data quality code for QHOURS.\';

COMMENT ON COLUMN VISCHEM.COMMENT_CODES IS \'Comment codes separated by
spaces.\';

COMMENT ON COLUMN VISCHEM.TEMP_SOURCE IS \'Source of mean temperature
used in conversion factor.\';

COMMENT ON COLUMN VISCHEM.STD2LOCAL_CF IS \'Factor used to convert
atmospheric concentrations from standard to local conditions.\';

COMMENT ON COLUMN VISCHEM.UPDATE_DATE IS \'Date and time of last record
update.\';

COMMENT ON COLUMN VISCHEM.LAB_KEY IS \'Laboratory sample identification
number.\';

COMMENT ON COLUMN VISCHEM.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN VISCHEM.DATEON IS \'Date and time sample collection
began, Local Standard Time, truncated to the hour; mm/dd/yyyy
hh:mm:ss.\';

COMMENT ON COLUMN VISCHEM.DATEOFF IS \'Date and time sample collection
ended, Local Standard Time, truncated to the hour; mm/dd/yyyy
hh:mm:ss.\';

COMMENT ON COLUMN VISCHEM.FINE_MASS IS \'Fine mass.\';

COMMENT ON COLUMN VISCHEM.FINE_MASS_F IS \'Data quality code for
FINE_MASS.\';

COMMENT ON COLUMN VISCHEM.ABSORPTION IS \'Absorption.\';

COMMENT ON COLUMN VISCHEM.ABSORPTION_F IS \'Data quality code for
ABSORPTION.\';

COMMENT ON COLUMN VISCHEM.H IS \'Hydrogen (H) concentration; ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.H_F IS \'Data quality code for H.\';

COMMENT ON COLUMN VISCHEM.NA IS \'Sodium (Na) concentration; ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.NA_F IS \'Data quality code for NA.\';

COMMENT ON COLUMN VISCHEM.MG IS \'Magnesium (Mg) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.MG_F IS \'Data quality code for MG.\';

COMMENT ON COLUMN VISCHEM.AL IS \'Aluminum (Al) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.AL_F IS \'Data quality code for AL.\';

COMMENT ON COLUMN VISCHEM.SI IS \'Silicon (Si) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.SI_F IS \'Data quality code for SI.\';

COMMENT ON COLUMN VISCHEM.P IS \'Phosphorus (P) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.P_F IS \'Data quality code for P.\';

COMMENT ON COLUMN VISCHEM.S IS \'Sulfur (S) concentration; ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.S_F IS \'Data quality code for S.\';

COMMENT ON COLUMN VISCHEM.CL IS \'Chloride (Cl) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.CL_F IS \'Data quality code for CL.\';

COMMENT ON COLUMN VISCHEM.K IS \'Potassium (K) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.K_F IS \'Data quality code for K.\';

COMMENT ON COLUMN VISCHEM.CA IS \'Calcium (Ca) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.CA_F IS \'Data quality code for CA.\';

COMMENT ON COLUMN VISCHEM.TI IS \'Titanium (Ti) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.TI_F IS \'Data quality code for TI.\';

COMMENT ON COLUMN VISCHEM.VA IS \'Vanadium (V) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.VA_F IS \'Data quality code for VA.\';

COMMENT ON COLUMN VISCHEM.CR IS \'Chromium (Cr) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.CR_F IS \'Data quality code for CR.\';

COMMENT ON COLUMN VISCHEM.MN IS \'Manganese (Mn) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.MN_F IS \'Data quality code for MN.\';

COMMENT ON COLUMN VISCHEM.FE IS \'Iron (Fe) concentration; ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.FE_F IS \'Data quality code for FE.\';

COMMENT ON COLUMN VISCHEM.NI IS \'Nickel (Ni) concentration; ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.NI_F IS \'Data quality code for NI.\';

COMMENT ON COLUMN VISCHEM.CU IS \'Copper (Cu) concentration; ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.CU_F IS \'Data quality code for CU.\';

COMMENT ON COLUMN VISCHEM.ZN IS \'Zinc (Zn) concentration; ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.ZN_F IS \'Data quality code for ZN.\';

COMMENT ON COLUMN VISCHEM.ARSENIC IS \'Arsenic (As) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.ARSENIC_F IS \'Data quality code for
ARSENIC.\';

COMMENT ON COLUMN VISCHEM.PB IS \'Lead (Pb) concentration; ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.PB_F IS \'Data quality code for PB.\';

COMMENT ON COLUMN VISCHEM.SE IS \'Selenium (Se) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.SE_F IS \'Data quality code for SE.\';

COMMENT ON COLUMN VISCHEM.BR IS \'Bromine (Br) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.BR_F IS \'Data quality code for BR.\';

COMMENT ON COLUMN VISCHEM.RB IS \'Rubidium (Rb) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.RB_F IS \'Data quality code for RB.\';

COMMENT ON COLUMN VISCHEM.SR IS \'Strontium (Sr) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.SR_F IS \'Data quality code for SR.\';

COMMENT ON COLUMN VISCHEM.ZR IS \'Zirconium (Zr) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.ZR_F IS \'Data quality code for ZR.\';

COMMENT ON COLUMN VISCHEM.MO IS \'Molybdenum (Mo) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.MO_F IS \'Data quality code for MO.\';

COMMENT ON COLUMN VISCHEM.CO IS \'Cobalt (Co) concentration; ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.CO_F IS \'Data quality code for CO.\';

COMMENT ON COLUMN VISCHEM.GA IS \'Gallium (Ga) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.GA_F IS \'Data quality code for GA.\';

COMMENT ON COLUMN VISCHEM.GE IS \'Germanium (Ge) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.GE_F IS \'Data quality code for GE.\';

COMMENT ON COLUMN VISCHEM.Y IS \'Yttrium (Y) concentration; ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.Y_F IS \'Data quality code for Y.\';

COMMENT ON COLUMN VISCHEM.PD IS \'Palladium (Pd) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.PD_F IS \'Data quality code for PD.\';

COMMENT ON COLUMN VISCHEM.AG IS \'Silver (Ag) concentration; ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.AG_F IS \'Data quality code for AG.\';

COMMENT ON COLUMN VISCHEM.CD IS \'Cadmium (Cd) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.CD_F IS \'Data quality code for CD.\';

COMMENT ON COLUMN VISCHEM.INDIUM IS \'Indium (In) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.INDIUM_F IS \'Data quality code for INDIUM.\';

COMMENT ON COLUMN VISCHEM.SN IS \'Tin (Sn) concentration; ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.SN_F IS \'Data quality code for SN.\';

COMMENT ON COLUMN VISCHEM.SB IS \'Antimony (Sb) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.SB_F IS \'Data quality code for SB.\';

COMMENT ON COLUMN VISCHEM.BA IS \'Barium (Ba) concentration; ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.BA_F IS \'Data quality code for BA.\';

COMMENT ON COLUMN VISCHEM.LA IS \'Lanthanum (La) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.LA_F IS \'Data quality code for LA.\';

COMMENT ON COLUMN VISCHEM.HG IS \'Mercury (Hg) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.HG_F IS \'Data quality code for HG.\';

COMMENT ON COLUMN VISCHEM.SO4 IS \'Sulfate (SO4) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.SO4_F IS \'Data quality code for SO4.\';

COMMENT ON COLUMN VISCHEM.NO3 IS \'Nitrate (NO3) concentration;
ug/m\^3.\';

COMMENT ON COLUMN VISCHEM.NO3_F IS \'Data quality code for NO3.\';

COMMENT ON COLUMN VISCHEM.OCTC IS \'Organic carbon (C).\';

COMMENT ON COLUMN VISCHEM.OCTC_F IS \'Data quality code for OCTC.\';

COMMENT ON COLUMN VISCHEM.OHTC IS \'Organic carbon (C), High
Temperature.\';

COMMENT ON COLUMN VISCHEM.OHTC_F IS \'Data quality code for OHTC.\';

COMMENT ON COLUMN VISCHEM.ECTC IS \'Elemental carbon (C).\';

COMMENT ON COLUMN VISCHEM.ECTC_F IS \'Data quality code for ECTC.\';

COMMENT ON COLUMN VISCHEM.EHTC IS \'Elemental carbon (C), high
temperature.\';

COMMENT ON COLUMN VISCHEM.EHTC_F IS \'Data quality code for EHTC.\';

COMMENT ON COLUMN VISCHEM.TCTC IS \'Total carbon.\';

COMMENT ON COLUMN VISCHEM.TCTC_F IS \'Data quality code for TCTC.\';

\--

\-- VISFLOW (Table)

\--

\-- Row count:579168

CREATE TABLE VISFLOW

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

DATE_TIME DATE NOT NULL,

NYLON_FLOW NUMBER(16,4) NULL,

NYLON_FLOW_F CHAR(1 BYTE) NULL,

QUARTZ_FLOW NUMBER(16,4) NULL,

QUARTZ_FLOW_F CHAR(1 BYTE) NULL,

TEFLON_FLOW NUMBER(16,4) NULL,

TEFLON_FLOW_F CHAR(1 BYTE) NULL,

UPDATE_DATE DATE DEFAULT sysdate NULL,

CONSTRAINT PK_VISFLOW

PRIMARY KEY

(DATE_TIME, SITE_ID)

);

COMMENT ON TABLE VISFLOW IS \'Hourly flow data for aerosol filter
packs.\';

COMMENT ON COLUMN VISFLOW.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN VISFLOW.DATE_TIME IS \'Date and time sample collection
began, Local Standard Time; mm/dd/yyyy hh:mm:ss.\';

COMMENT ON COLUMN VISFLOW.NYLON_FLOW IS \'Nylon filter flow; lpm.\';

COMMENT ON COLUMN VISFLOW.NYLON_FLOW_F IS \'Data quality code for
NYLON_FLOW.\';

COMMENT ON COLUMN VISFLOW.QUARTZ_FLOW IS \'Quartz filter flow; lpm.\';

COMMENT ON COLUMN VISFLOW.QUARTZ_FLOW_F IS \'Data quality code for
QUARTZ_FLOW.\';

COMMENT ON COLUMN VISFLOW.TEFLON_FLOW IS \'Teflon filter flow; lpm.\';

COMMENT ON COLUMN VISFLOW.TEFLON_FLOW_F IS \'Data quality code for
TEFLON_FLOW.\';

COMMENT ON COLUMN VISFLOW.UPDATE_DATE IS \'Date and time of last record
update.\';

\--

\-- VISNEPH (Table)

\--

\-- Row count:171576

CREATE TABLE VISNEPH

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

DATE_TIME DATE NOT NULL,

SERIAL_NUMBER CHAR(3 BYTE) NULL,

BSCAT NUMBER(12,4) NULL,

BSCAT_PR NUMBER(12,4) NULL,

BSCAT_F VARCHAR2(1 BYTE) NULL,

BSCAT_INT_F VARCHAR2(1 BYTE) NULL,

RAWHR NUMBER(12,4) NULL,

RAWHR_SD NUMBER(12,4) NULL,

RAWHR_CT NUMBER(11) NULL,

BSCAT_INT_SDM NUMBER(11) NULL,

BSCAT_INT_DELTA NUMBER(11) NULL,

BSCAT_INT_MAX NUMBER(11) NULL,

REL_HUMIDITY_INT NUMBER(11) NULL,

CODE_SUMMARY VARCHAR2(15 BYTE) NULL,

Y_INTERCEPT NUMBER(12,4) NULL,

SLOPE NUMBER(12,4) NULL,

AMBIENT_TEMP NUMBER(12,4) NULL,

AMBIENT_TEMP_SD NUMBER(12,4) NULL,

AMBIENT_TEMP_CT NUMBER(11) NULL,

AMBIENT_TEMP_PR NUMBER(12,4) NULL,

CHAMBER_TEMP NUMBER(12,4) NULL,

CHAMBER_TEMP_SD NUMBER(12,4) NULL,

CHAMBER_TEMP_CT NUMBER(11) NULL,

CHAMBER_TEMP_PR NUMBER(12,4) NULL,

REL_HUMIDITY NUMBER(12,4) NULL,

REL_HUMIDITY_SD NUMBER(12,4) NULL,

REL_HUMIDITY_CT NUMBER(11) NULL,

REL_HUMIDITY_PR NUMBER(12,4) NULL,

UPDATE_DATE DATE DEFAULT sysdate NULL,

CONSTRAINT PK_VISNEPH

PRIMARY KEY

(DATE_TIME, SITE_ID)

);

COMMENT ON TABLE VISNEPH IS \'Nephelometer data (conforms to IMPROVE
network standards) from October 1993 to June 2002. This table is no
longer updated.\';

COMMENT ON COLUMN VISNEPH.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN VISNEPH.DATE_TIME IS \'Date and time sample collection
began, Local Standard Time; mm/dd/yyyy hh:mm:ss.\';

COMMENT ON COLUMN VISNEPH.SERIAL_NUMBER IS \'Nephelometer serial
number.\';

COMMENT ON COLUMN VISNEPH.BSCAT IS \'Scattering from particles.\';

COMMENT ON COLUMN VISNEPH.BSCAT_PR IS \'Estimated precision of
scattering measurement.\';

COMMENT ON COLUMN VISNEPH.BSCAT_F IS \'Data quality code for BSCAT.\';

COMMENT ON COLUMN VISNEPH.BSCAT_INT_F IS \'Data quality code for
BSCAT_INT.\';

COMMENT ON COLUMN VISNEPH.RAWHR IS \'Raw nephelometer hourly average.\';

COMMENT ON COLUMN VISNEPH.RAWHR_SD IS \'Standard deviation of raw
nephelometer hourly average.\';

COMMENT ON COLUMN VISNEPH.RAWHR_CT IS \'Number of data points in raw
hourly nephelometer average.\';

COMMENT ON COLUMN VISNEPH.BSCAT_INT_SDM IS \'Standard deviation divided
by mean interference threshold.\';

COMMENT ON COLUMN VISNEPH.BSCAT_INT_DELTA IS \'Rate of change
interference threshold for scattering measurement.\';

COMMENT ON COLUMN VISNEPH.BSCAT_INT_MAX IS \'Maximum interference
threshold for scattering measurement.\';

COMMENT ON COLUMN VISNEPH.REL_HUMIDITY_INT IS \'Relative humidity
interference threshold.\';

COMMENT ON COLUMN VISNEPH.CODE_SUMMARY IS \'Composite nephelometer code
summary.\';

COMMENT ON COLUMN VISNEPH.Y_INTERCEPT IS \'Y-Intercept of calibration
line used to calculate scattering measurement.\';

COMMENT ON COLUMN VISNEPH.SLOPE IS \'Slope of calibration line used to
calculate scattering measurement.\';

COMMENT ON COLUMN VISNEPH.AMBIENT_TEMP IS \'Average ambient temperature;
degrees C.\';

COMMENT ON COLUMN VISNEPH.AMBIENT_TEMP_SD IS \'Standard deviation of
hourly ambient temperature average; degrees C.\';

COMMENT ON COLUMN VISNEPH.AMBIENT_TEMP_CT IS \'Number of data points in
hourly ambient temperature average.\';

COMMENT ON COLUMN VISNEPH.AMBIENT_TEMP_PR IS \'Estimated precision of
ambient temperature.\';

COMMENT ON COLUMN VISNEPH.CHAMBER_TEMP IS \'Average nephelometer chamber
temperature.\';

COMMENT ON COLUMN VISNEPH.CHAMBER_TEMP_SD IS \'Standard deviation of
hourly chamber temperature average.\';

COMMENT ON COLUMN VISNEPH.CHAMBER_TEMP_CT IS \'Number of data points in
hourly chamber temperature average.\';

COMMENT ON COLUMN VISNEPH.CHAMBER_TEMP_PR IS \'Estimated precision of
chamber temperature.\';

COMMENT ON COLUMN VISNEPH.REL_HUMIDITY IS \'Average relative humidity;
%.\';

COMMENT ON COLUMN VISNEPH.REL_HUMIDITY_SD IS \'Standard deviation of
hourly relative humidity average; %.\';

COMMENT ON COLUMN VISNEPH.REL_HUMIDITY_CT IS \'Number of data points in
hourly relative humidity average.\';

COMMENT ON COLUMN VISNEPH.REL_HUMIDITY_PR IS \'Estimated precision of
relative humidity.\';

COMMENT ON COLUMN VISNEPH.UPDATE_DATE IS \'Date and time of last record
update.\';

\--

\-- WETCHEM (Table)

\--

\-- Dependencies:

\-- SAMPLE_REFERENCE (Table)

\--

\-- Row count:10326

CREATE TABLE WETCHEM

(

LAB_KEY VARCHAR2(15 BYTE) NOT NULL,

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

DATEON DATE NULL,

DATEOFF DATE NULL,

INITIALS VARCHAR2(3 BYTE) NULL,

BUCKET_TYPE VARCHAR2(1 BYTE) NULL,

WETDRY_OK VARCHAR2(1 BYTE) NULL,

SENSORHEATING_OK VARCHAR2(1 BYTE) NULL,

RAINGAUGE_OK VARCHAR2(1 BYTE) NULL,

LID_OPENINGS NUMBER(38) NULL,

BIRDDROPPINGS VARCHAR2(1 BYTE) NULL,

CLOUDY VARCHAR2(1 BYTE) NULL,

INSECTS_SOOT_DIRT VARCHAR2(1 BYTE) NULL,

ELAPSED_TIME FLOAT(126) NULL,

PRECIP FLOAT(126) NULL,

BUCKET_ID VARCHAR2(4 BYTE) NULL,

LID_ID CHAR(10 BYTE) NULL,

BUCKET_WEIGHT FLOAT(126) NULL,

LID_WEIGHT FLOAT(126) NULL,

STANDARD_WEIGHT FLOAT(126) NULL,

TOTAL_WEIGHT FLOAT(126) NULL,

SAMPLE_WEIGHT FLOAT(126) NULL,

CONDUCTIVITY FLOAT(126) NULL,

CONDUCTIVITY_F VARCHAR2(1 BYTE) NULL,

COND_UNFILT FLOAT(126) NULL,

COND_UNFILT_F VARCHAR2(1 BYTE) NULL,

PH FLOAT(126) NULL,

PH_F VARCHAR2(1 BYTE) NULL,

PH_UNFILT FLOAT(126) NULL,

PH_UNFILT_F VARCHAR2(1 BYTE) NULL,

H FLOAT(126) NULL,

H_UNFILT FLOAT(126) NULL,

CA FLOAT(126) NULL,

CA_F VARCHAR2(1 BYTE) NULL,

MG FLOAT(126) NULL,

MG_F VARCHAR2(1 BYTE) NULL,

K FLOAT(126) NULL,

K_F VARCHAR2(1 BYTE) NULL,

NA FLOAT(126) NULL,

NA_F VARCHAR2(1 BYTE) NULL,

NO3 FLOAT(126) NULL,

NO3_F VARCHAR2(1 BYTE) NULL,

CL FLOAT(126) NULL,

CL_F VARCHAR2(1 BYTE) NULL,

SO4 FLOAT(126) NULL,

SO4_F VARCHAR2(1 BYTE) NULL,

NH4 FLOAT(126) NULL,

NH4_F VARCHAR2(1 BYTE) NULL,

NO2 FLOAT(126) NULL,

NO2_F VARCHAR2(1 BYTE) NULL,

ACIDITY FLOAT(126) NULL,

ACIDITY_F VARCHAR2(1 BYTE) NULL,

COMMENT_CODES VARCHAR2(51 BYTE) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_WETCHEM

PRIMARY KEY

(LAB_KEY),

CONSTRAINT REFSAMPLE_REFERENCE236

FOREIGN KEY (LAB_KEY)

REFERENCES SAMPLE_REFERENCE (LAB_KEY)

);

COMMENT ON TABLE WETCHEM IS \'Weekly wet deposition concentrations and
sampling information from January 1989 - February 1999. This table is no
longer updated.\';

COMMENT ON COLUMN WETCHEM.NO3 IS \'Precipitation-weighted mean of
nitrate (NO3) concentrations; ug/m\^3.\';

COMMENT ON COLUMN WETCHEM.NO3_F IS \'Data quality code for NO3.\';

COMMENT ON COLUMN WETCHEM.CL IS \'Precipitation-weighted mean of
chloride (Cl) concentrations; ug/m\^3.\';

COMMENT ON COLUMN WETCHEM.CL_F IS \'Data quality code for CL.\';

COMMENT ON COLUMN WETCHEM.SO4 IS \'Precipitation-weighted mean of
sulfate (SO4) concentrations; ug/m\^3.\';

COMMENT ON COLUMN WETCHEM.SO4_F IS \'Data quality code for SO4.\';

COMMENT ON COLUMN WETCHEM.NH4 IS \'Precipitation-weighted mean of
ammonium (NH4) concentrations; ug/m\^3.\';

COMMENT ON COLUMN WETCHEM.NH4_F IS \'Data quality code for NH4.\';

COMMENT ON COLUMN WETCHEM.NO2 IS \'Precipitation-weighted mean of
nitrogen dioxide (NO2) concentrations; ug/m\^3.\';

COMMENT ON COLUMN WETCHEM.NO2_F IS \'Data quality code for NO2.\';

COMMENT ON COLUMN WETCHEM.ACIDITY IS \'Acidity.\';

COMMENT ON COLUMN WETCHEM.ACIDITY_F IS \'Data quality code for
ACIDITY.\';

COMMENT ON COLUMN WETCHEM.COMMENT_CODES IS \'Comment codes separated by
spaces.\';

COMMENT ON COLUMN WETCHEM.UPDATE_DATE IS \'Date and time of last record
update.\';

COMMENT ON COLUMN WETCHEM.LAB_KEY IS \'Laboratory sample identification
number.\';

COMMENT ON COLUMN WETCHEM.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN WETCHEM.DATEON IS \'Date and time sample collection
began, Local Standard Time; mm/dd/yyyy hh:mm:ss.\';

COMMENT ON COLUMN WETCHEM.DATEOFF IS \'Date and time sample collection
ended, Local Standard Time; mm/dd/yyyy hh:mm:ss.\';

COMMENT ON COLUMN WETCHEM.INITIALS IS \'Observer initials.\';

COMMENT ON COLUMN WETCHEM.BUCKET_TYPE IS \'Bucket Type.\';

COMMENT ON COLUMN WETCHEM.WETDRY_OK IS \'WetDry collector status.\';

COMMENT ON COLUMN WETCHEM.SENSORHEATING_OK IS \'Sensor heating
status.\';

COMMENT ON COLUMN WETCHEM.RAINGAUGE_OK IS \'Rain gauge status.\';

COMMENT ON COLUMN WETCHEM.LID_OPENINGS IS \'Number of Lid Openings.\';

COMMENT ON COLUMN WETCHEM.BIRDDROPPINGS IS \'Bird droppings observed in
the sample.\';

COMMENT ON COLUMN WETCHEM.CLOUDY IS \'Cloudy or discolored sample
observed.\';

COMMENT ON COLUMN WETCHEM.INSECTS_SOOT_DIRT IS \'Insect, dirt or soot
observed in the sample.\';

COMMENT ON COLUMN WETCHEM.ELAPSED_TIME IS \'Number of hours sample on
collector.\';

COMMENT ON COLUMN WETCHEM.PRECIP IS \'Precipitation in cm.\';

COMMENT ON COLUMN WETCHEM.BUCKET_ID IS \'Bucket ID.\';

COMMENT ON COLUMN WETCHEM.LID_ID IS \'Lid ID.\';

COMMENT ON COLUMN WETCHEM.BUCKET_WEIGHT IS \'Bucket weight.\';

COMMENT ON COLUMN WETCHEM.LID_WEIGHT IS \'Lid weight.\';

COMMENT ON COLUMN WETCHEM.STANDARD_WEIGHT IS \'Standard weight.\';

COMMENT ON COLUMN WETCHEM.TOTAL_WEIGHT IS \'Total weight.
(Bucket+Lid+Sample weight)\';

COMMENT ON COLUMN WETCHEM.SAMPLE_WEIGHT IS \'Sample weight.\';

COMMENT ON COLUMN WETCHEM.CONDUCTIVITY IS \'Precipitation-weighted mean
of conductivity.\';

COMMENT ON COLUMN WETCHEM.CONDUCTIVITY_F IS \'Data quality code for
CONDUCTIVITY.\';

COMMENT ON COLUMN WETCHEM.COND_UNFILT IS \'Conductivity of unfiltered
sampled as measured in the laboratory.\';

COMMENT ON COLUMN WETCHEM.COND_UNFILT_F IS \'Data quality code for
COND_UNFILT.\';

COMMENT ON COLUMN WETCHEM.PH IS \'pH of the filtered sample, as measured
in pH units.\';

COMMENT ON COLUMN WETCHEM.PH_F IS \'Data quality code for PH.\';

COMMENT ON COLUMN WETCHEM.PH_UNFILT IS \'pH, Lab, unfiltered.\';

COMMENT ON COLUMN WETCHEM.PH_UNFILT_F IS \'Data quality code for
PH_UNFILT.\';

COMMENT ON COLUMN WETCHEM.H IS \'Precipitation-weighted mean of hydrogen
ion (H) concentration of the filtered sample; ug/m\^3.\';

COMMENT ON COLUMN WETCHEM.H_UNFILT IS \'Precipitation-weighted mean of
hydrogen ion (H) concentration of the unfiltered sample; ug/m\^3.\';

COMMENT ON COLUMN WETCHEM.CA IS \'Precipitation-weighted mean of calcium
(Ca) concentration; ug/m\^3.\';

COMMENT ON COLUMN WETCHEM.CA_F IS \'Data quality code for CA.\';

COMMENT ON COLUMN WETCHEM.MG IS \'Precipitation-weighted mean of
magnesium (Mg) concentration; ug/m\^3.\';

COMMENT ON COLUMN WETCHEM.MG_F IS \'Data quality code for MG.\';

COMMENT ON COLUMN WETCHEM.K IS \'Precipitation-weighted mean of
potassium (K) concentration; ug/m\^3.\';

COMMENT ON COLUMN WETCHEM.K_F IS \'Data quality code for K.\';

COMMENT ON COLUMN WETCHEM.NA IS \'Precipitation-weighted mean of sodium
(Na) concentrations; ug/m\^3.\';

COMMENT ON COLUMN WETCHEM.NA_F IS \'Data quality code for NA.\';

\--

\-- WETDEP (Table)

\--

\-- Row count:1508

CREATE TABLE WETDEP

(

SITE_ID VARCHAR2(6 BYTE) NULL,

YEAR NUMBER(6) NULL,

PRECIP NUMBER(6,2) NULL,

CA NUMBER(6,3) NULL,

MG NUMBER(6,3) NULL,

K NUMBER(6,3) NULL,

NA NUMBER(6,3) NULL,

NH4 NUMBER(6,2) NULL,

NO3 NUMBER(6,2) NULL,

CL NUMBER(6,2) NULL,

SO4 NUMBER(6,2) NULL,

PH NUMBER(6,2) NULL,

CA_D NUMBER(6,2) NULL,

MG_D NUMBER(6,2) NULL,

K_D NUMBER(6,2) NULL,

NA_D NUMBER(6,2) NULL,

NH4_D NUMBER(6,2) NULL,

NO3_D NUMBER(6,2) NULL,

INORG_N NUMBER(6,2) NULL,

CL_D NUMBER(6,2) NULL,

SO4_D NUMBER(6,2) NULL,

H_D NUMBER(6,2) NULL,

H NUMBER(8,6) NULL,

UPDATE_DATE DATE NULL,

CONSTRAINT PK_WETDEP

PRIMARY KEY

(SITE_ID, YEAR)

);

COMMENT ON TABLE WETDEP IS \'Wet concentration and deposition from the
interpolated concentrations of NADP/NTN and CASTNET sites. Depositions
are calculated as the concentration multiplied by the precipitation at
the CASTNET site.\';

COMMENT ON COLUMN WETDEP.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN WETDEP.YEAR IS \'Year of data, using standard Tuesday
to Tuesday weeks.\';

COMMENT ON COLUMN WETDEP.PRECIP IS \'Precipitation; cm.\';

COMMENT ON COLUMN WETDEP.CA IS \'Precipitation-weighted mean of calcium
(Ca) concentration; ug/m\^3.\';

COMMENT ON COLUMN WETDEP.MG IS \'Precipitation-weighted mean of
magnesium (Mg) concentration; ug/m\^3.\';

COMMENT ON COLUMN WETDEP.K IS \'Precipitation-weighted mean of potassium
(K) concentration; ug/m\^3.\';

COMMENT ON COLUMN WETDEP.NA IS \'Precipitation-weighted mean of sodium
(Na) concentrations; ug/m\^3.\';

COMMENT ON COLUMN WETDEP.NH4 IS \'Precipitation-weighted mean of
ammonium (NH4) concentrations; ug/m\^3.\';

COMMENT ON COLUMN WETDEP.NO3 IS \'Precipitation-weighted mean of nitrate
(NO3) concentrations; ug/m\^3.\';

COMMENT ON COLUMN WETDEP.CL IS \'Precipitation-weighted mean of chloride
(Cl) concentrations; ug/m\^3.\';

COMMENT ON COLUMN WETDEP.SO4 IS \'Precipitation-weighted mean of sulfate
(SO4) concentrations; ug/m\^3.\';

COMMENT ON COLUMN WETDEP.PH IS \'Precipitation weighted mean of hydrogen
(H) concentration, in pH units; ug/m\^3.\';

COMMENT ON COLUMN WETDEP.CA_D IS \'Wet calcium (Ca) flux; kg/ha.\';

COMMENT ON COLUMN WETDEP.MG_D IS \'Wet magnesium (Mg) flux; kg/ha.\';

COMMENT ON COLUMN WETDEP.K_D IS \'Wet potassium (K) flux; kg/ha.\';

COMMENT ON COLUMN WETDEP.NA_D IS \'Wet sodium (Na) flux; kg/ha.\';

COMMENT ON COLUMN WETDEP.NH4_D IS \'Wet ammonium (NH4) flux; kg/ha.\';

COMMENT ON COLUMN WETDEP.NO3_D IS \'Wet ntrate (NO3) flux; kg/ha.\';

COMMENT ON COLUMN WETDEP.INORG_N IS \'Inorganic nitrogen (N); kg/ha.\';

COMMENT ON COLUMN WETDEP.CL_D IS \'Wet chloride (Cl) flux; kg/ha.\';

COMMENT ON COLUMN WETDEP.SO4_D IS \'Wet sulfate (SO4) flux; kg/ha.\';

COMMENT ON COLUMN WETDEP.H_D IS \'Wet hydrogen (H) flux; kg/ha.\';

COMMENT ON COLUMN WETDEP.H IS \'Precipitation-weighted mean of hydrogen
ion (H) concentration of the filtered sample; ug/m\^3.\';

COMMENT ON COLUMN WETDEP.UPDATE_DATE IS \'Date and time of last record
update.\';

\--

\-- WET_CONCENTRATION (Table)

\--

\-- Row count:9488

CREATE TABLE WET_CONCENTRATION

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

DATEON DATE NOT NULL,

DATEOFF DATE NOT NULL,

CA_F CHAR(1 BYTE) NULL,

CA NUMBER(16,4) NULL,

MG_F CHAR(1 BYTE) NULL,

MG NUMBER(16,4) NULL,

K_F CHAR(1 BYTE) NULL,

K NUMBER(16,4) NULL,

NA_F CHAR(1 BYTE) NULL,

NA NUMBER(16,4) NULL,

NH4_F CHAR(1 BYTE) NULL,

NH4 NUMBER(16,4) NULL,

NO3_F CHAR(1 BYTE) NULL,

NO3 NUMBER(16,4) NULL,

CL_F CHAR(1 BYTE) NULL,

CL NUMBER(16,4) NULL,

SO4_F CHAR(1 BYTE) NULL,

SO4 NUMBER(16,4) NULL,

PH NUMBER(16,4) NULL,

PH_F CHAR(1 BYTE) NULL,

COND NUMBER(16,4) NULL,

COND_F CHAR(1 BYTE) NULL,

SVOL NUMBER(16,4) NULL,

RG_PPT NUMBER(16,4) NULL,

TB_PPT NUMBER(16,4) NULL,

SUB_PPT NUMBER(16,4) NULL,

LAB_TYPE CHAR(2 BYTE) NULL,

VALCODE CHAR(2 BYTE) NULL,

INVALCODE VARCHAR2(6 BYTE) NULL,

UPDATE_DATE DATE DEFAULT sysdate NULL,

CONSTRAINT PK_WET_CONCENTRATION

PRIMARY KEY

(SITE_ID, DATEON)

);

COMMENT ON TABLE WET_CONCENTRATION IS \'Weekly wet deposition
concentrations and sampling information from January 1989 - February
1999, in NADP/NTN format. Derived from WETCHEM table, which is no longer
updated. Available for download on CASTNet web site.\';

COMMENT ON COLUMN WET_CONCENTRATION.SITE_ID IS \'Site identification
code.\';

COMMENT ON COLUMN WET_CONCENTRATION.DATEON IS \'Date and time sample
collection began, Local Standard Time; mm/dd/yyyy.\';

COMMENT ON COLUMN WET_CONCENTRATION.DATEOFF IS \'Date and time sample
collection ended, Local Standard Time; mm/dd/yyyy.\';

COMMENT ON COLUMN WET_CONCENTRATION.CA_F IS \'Data quality code for
CA.\';

COMMENT ON COLUMN WET_CONCENTRATION.CA IS \'Calcium (Ca) concentration;
ug/m\^3.\';

COMMENT ON COLUMN WET_CONCENTRATION.MG_F IS \'Data quality code for
MG.\';

COMMENT ON COLUMN WET_CONCENTRATION.MG IS \'Magnesium (Mg)
concentration; ug/m\^3.\';

COMMENT ON COLUMN WET_CONCENTRATION.K_F IS \'Data quality code for K.\';

COMMENT ON COLUMN WET_CONCENTRATION.K IS \'Potassium (K) concentration;
ug/m\^3.\';

COMMENT ON COLUMN WET_CONCENTRATION.NA_F IS \'Data quality code for
NA.\';

COMMENT ON COLUMN WET_CONCENTRATION.NA IS \'Sodium (Na) concentration;
ug/m\^3.\';

COMMENT ON COLUMN WET_CONCENTRATION.NH4_F IS \'Data quality code for
NH4.\';

COMMENT ON COLUMN WET_CONCENTRATION.NH4 IS \'Ammonium (NH4)
concentration; ug/m\^3.\';

COMMENT ON COLUMN WET_CONCENTRATION.NO3_F IS \'Data quality code for
NO3.\';

COMMENT ON COLUMN WET_CONCENTRATION.NO3 IS \'Nitrate (NO3)
concentration; ug/m\^3.\';

COMMENT ON COLUMN WET_CONCENTRATION.CL_F IS \'Data quality code for
CL.\';

COMMENT ON COLUMN WET_CONCENTRATION.CL IS \'Chloride (Cl) concentration;
ug/m\^3.\';

COMMENT ON COLUMN WET_CONCENTRATION.SO4_F IS \'Data quality code for
SO4.\';

COMMENT ON COLUMN WET_CONCENTRATION.SO4 IS \'Sulfate (SO4)
concentration; ug/m\^3.\';

COMMENT ON COLUMN WET_CONCENTRATION.PH IS \'pH of the filtered sample;
pH units.\';

COMMENT ON COLUMN WET_CONCENTRATION.PH_F IS \'Data quality code for
PH.\';

COMMENT ON COLUMN WET_CONCENTRATION.COND IS \'Conductivity, Lab,
Filtered.\';

COMMENT ON COLUMN WET_CONCENTRATION.COND_F IS \'Data quality code for
COND.\';

COMMENT ON COLUMN WET_CONCENTRATION.SVOL IS \'Sample volume; mL.\';

COMMENT ON COLUMN WET_CONCENTRATION.RG_PPT IS \'Precipitation, Belfort
rain gage; inches.\';

COMMENT ON COLUMN WET_CONCENTRATION.TB_PPT IS \'Precipitation, tipping
bucket; inches.\';

COMMENT ON COLUMN WET_CONCENTRATION.SUB_PPT IS \'Best precipitation,
valid precipitation in order of preference RG_PPT \< TB_PPT \< SVOL.\';

COMMENT ON COLUMN WET_CONCENTRATION.LAB_TYPE IS \'Type of sample
received at laboratory.\';

COMMENT ON COLUMN WET_CONCENTRATION.VALCODE IS \'Validity code for
sample.\';

COMMENT ON COLUMN WET_CONCENTRATION.INVALCODE IS \'Explanation code for
why sample was invalidated.\';

COMMENT ON COLUMN WET_CONCENTRATION.UPDATE_DATE IS \'Date and time of
last record update.\';

\--

\-- WET_CONCENTRATION_ANNUAL (Table)

\--

\-- Row count:206

CREATE TABLE WET_CONCENTRATION_ANNUAL

(

SITE_ID VARCHAR2(6 BYTE) NOT NULL,

PERIOD CHAR(6 BYTE) NULL,

YEAR INTEGER NOT NULL,

PERIOD_DAYS NUMBER NULL,

CRITERIA1 NUMBER NULL,

CRITERIA2 NUMBER NULL,

CRITERIA3 NUMBER NULL,

CRITERIA4 NUMBER NULL,

CA NUMBER NULL,

MG NUMBER NULL,

K NUMBER NULL,

NA NUMBER NULL,

NH4 NUMBER NULL,

NO3 NUMBER NULL,

CL NUMBER NULL,

SO4 NUMBER NULL,

PH NUMBER NULL,

CONDUCTIVITY NUMBER NULL,

CATION_ANION_RATIO NUMBER NULL,

SAMPLE_VOLUME NUMBER NULL,

PRECIP NUMBER NULL,

VALID_SAMPLES NUMBER NULL,

DAYS NUMBER NULL,

PERIOD_START DATE NULL,

PERIOD_END DATE NULL

);

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.SITE_ID IS \'Site
identification code.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.PERIOD IS \'Period of
aggregation.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.YEAR IS \'Year of data, using
standard Tuesday to Tuesday weeks.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.PERIOD_DAYS IS \'Number of
days in the summary period.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.CRITERIA1 IS \'Percentage of
the summary period for which there are valid samples.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.CRITERIA2 IS \'Percentage of
the summary period for which precipitation amounts are available either
from the rain gage or from the sample volume.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.CRITERIA3 IS \'Percentage of
the total measured precipitation associated with valid samples.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.CRITERIA4 IS \'Collection
efficiency, calculated from the sum of the sample bucket depths (in
centimeters) divided by the sum of the rain gage amounts (in
centimeters) for all valid samples where both values are available.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.CA IS
\'Precipitation-weighted mean of calcium (Ca) concentration; ug/m\^3.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.MG IS
\'Precipitation-weighted mean of magnesium (Mg) concentration;
ug/m\^3.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.K IS \'Precipitation-weighted
mean of potassium (K) concentration; ug/m\^3.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.NA IS
\'Precipitation-weighted mean of sodium (Na) concentrations; ug/m\^3.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.NH4 IS
\'Precipitation-weighted mean of ammonium (NH4) concentrations;
ug/m\^3.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.NO3 IS
\'Precipitation-weighted mean of nitrate (NO3) concentrations;
ug/m\^3.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.CL IS
\'Precipitation-weighted mean of chloride (Cl) concentrations;
ug/m\^3.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.SO4 IS
\'Precipitation-weighted mean of sulfate (SO4) concentrations;
ug/m\^3.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.PH IS \'Precipitation
weighted mean of hydrogen (H) concentration, in pH units; ug/m\^3.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.CONDUCTIVITY IS
\'Precipitation-weighted mean of conductivity; uS/cm.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.CATION_ANION_RATIO IS
\'Precipitation-weighted mean of equivalence ratio of cations to
anions.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.SAMPLE_VOLUME IS \'Volume of
sample; mL.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.PRECIP IS \'Precipitation;
mm/hr.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.VALID_SAMPLES IS \'Number of
valid samples in the summary period.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.DAYS IS \'Number of days
included in the summary period.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.PERIOD_START IS \'The
beginning date of the first sample of the summary period.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.PERIOD_END IS \'The ending
date of the last sample included in the summary period, in GMT.\';

\--

\-- PK_CAL_CRIT (Index)

\--

\-- Dependencies:

\-- CALIBRATION_CRITERIA (Table)

\--

CREATE UNIQUE INDEX PK_CAL_CRIT ON CALIBRATION_CRITERIA

(PARAMETER);

\--

\-- PK_CAL_SUM (Index)

\--

\-- Dependencies:

\-- CALIBRATION_SUMMARY (Table)

\--

CREATE UNIQUE INDEX PK_CAL_SUM ON CALIBRATION_SUMMARY

(SITE_ID, CALIBRATION_DATE, UA_CODE);

\--

\-- PK_DAYNIGHT (Index)

\--

\-- Dependencies:

\-- DAYNIGHT_FLOW (Table)

\--

CREATE UNIQUE INDEX PK_DAYNIGHT ON DAYNIGHT_FLOW

(SITE_ID, DATE_TIME);

\--

\-- DRYCHEM_IDX001 (Index)

\--

\-- Dependencies:

\-- DRYCHEM (Table)

\--

CREATE INDEX DRYCHEM_IDX001 ON DRYCHEM

(UPDATE_DATE);

\--

\-- PK_DRYCHEMSUM (Index)

\--

\-- Dependencies:

\-- DRYCHEM_SUMMARY (Table)

\--

CREATE UNIQUE INDEX PK_DRYCHEMSUM ON DRYCHEM_SUMMARY

(SITE_ID, PERIOD, PARAMETER);

\--

\-- HOURLY_GAS_IDX006 (Index)

\--

\-- Dependencies:

\-- HOURLY_GAS (Table)

\--

CREATE INDEX HOURLY_GAS_IDX006 ON HOURLY_GAS

(UPDATE_DATE);

\--

\-- STORET_KEY (Index)

\--

\-- Dependencies:

\-- LABDATA_ANALYTE (Table)

\--

CREATE UNIQUE INDEX STORET_KEY ON LABDATA_ANALYTE

(STORET_KEY);

\--

\-- PKLABDATA_QC (Index)

\--

\-- Dependencies:

\-- LABDATA_QC (Table)

\--

CREATE UNIQUE INDEX PKLABDATA_QC ON LABDATA_QC

(LAB_KEY, STORET_KEY, BATCH, QC);

\--

\-- IDX_METDATA_DATETIME (Index)

\--

\-- Dependencies:

\-- METDATA (Table)

\--

CREATE INDEX IDX_METDATA_DATETIME ON METDATA

(DATE_TIME);

\--

\-- METDATA_IDX001 (Index)

\--

\-- Dependencies:

\-- METDATA (Table)

\--

CREATE INDEX METDATA_IDX001 ON METDATA

(UPDATE_DATE);

\--

\-- METDATA (Index)

\--

\-- Dependencies:

\-- METDATA (Table)

\--

CREATE UNIQUE INDEX METDATA ON METDATA

(SITE_ID, DATE_TIME);

\--

\-- IDX_TEMPER_KS (Index)

\--

\-- Dependencies:

\-- METDATA (Table)

\--

CREATE INDEX IDX_TEMPER_KS ON METDATA

(TEMPERATURE_F);

\--

\-- IDX_MODELOUTWEEK (Index)

\--

\-- Dependencies:

\-- MODEL_OUTPUT (Table)

\--

CREATE INDEX IDX_MODELOUTWEEK ON MODEL_OUTPUT

(WEEK);

\--

\-- MO_UD_IDX (Index)

\--

\-- Dependencies:

\-- MODEL_OUTPUT (Table)

\--

CREATE INDEX MO_UD_IDX ON MODEL_OUTPUT

(UPDATE_DATE);

\--

\-- MODEL_OUTPUT (Index)

\--

\-- Dependencies:

\-- MODEL_OUTPUT (Table)

\--

CREATE UNIQUE INDEX MODEL_OUTPUT ON MODEL_OUTPUT

(SITE_ID, DATE_TIME);

\--

\-- QUEST_SX_IDX2DAC498C4F9573180 (Index)

\--

\-- Dependencies:

\-- MODEL_OUTPUT (Table)

\--

CREATE INDEX QUEST_SX_IDX2DAC498C4F9573180 ON MODEL_OUTPUT

(LAB_KEY);

\--

\-- MODEL_OUTPUT_WEEK_IDX001 (Index)

\--

\-- Dependencies:

\-- MODEL_OUTPUT_WEEK (Table)

\--

CREATE INDEX MODEL_OUTPUT_WEEK_IDX001 ON MODEL_OUTPUT_WEEK

(UPDATE_DATE);

\--

\-- PK_MLM (Index)

\--

\-- Dependencies:

\-- MODEL_VERSION (Table)

\--

CREATE UNIQUE INDEX PK_MLM ON MODEL_VERSION

(VERSION_NUMBER, CHANGE_NUMBER);

\--

\-- SYS_C0061152 (Index)

\--

\-- Dependencies:

\-- NADP_SEASON (Table)

\--

CREATE UNIQUE INDEX SYS_C0061152 ON NADP_SEASON

(SITE_ID, SEASON, YEAR);

\--

\-- SYS_C006115 (Index)

\--

\-- Dependencies:

\-- NADP_SUMMARY (Table)

\--

CREATE UNIQUE INDEX SYS_C006115 ON NADP_SUMMARY

(SITE_ID, PERIOD, YEAR);

\--

\-- IDX_WEEKLYYR (Index)

\--

\-- Dependencies:

\-- NADP_WEEK (Table)

\--

CREATE INDEX IDX_WEEKLYYR ON NADP_WEEK

(TO_NUMBER(TO_CHAR(\"DATEOFF\",\'yyyy\')));

\--

\-- IDX_OZONE8HRAVG (Index)

\--

\-- Dependencies:

\-- OZONE_8HR_AVG (Table)

\--

CREATE INDEX IDX_OZONE8HRAVG ON OZONE_8HR_AVG

(SITE_ID, DATE_TIME);

\--

\-- SAMPLE_REF (Index)

\--

\-- Dependencies:

\-- SAMPLE_REFERENCE (Table)

\--

CREATE UNIQUE INDEX SAMPLE_REF ON SAMPLE_REFERENCE

(LAB_KEY);

\--

\-- IDX_STATES_STATE (Index)

\--

\-- Dependencies:

\-- STATE (Table)

\--

CREATE INDEX IDX_STATES_STATE ON STATE

(STATE_FIPS);

\--

\-- PK_TOTAL_DEPOSITION (Index)

\--

\-- Dependencies:

\-- TOTAL_DEPOSITION (Table)

\--

CREATE UNIQUE INDEX PK_TOTAL_DEPOSITION ON TOTAL_DEPOSITION

(SITE_ID, YEAR);

\--

\-- IDX_VISCHEM_DATEON (Index)

\--

\-- Dependencies:

\-- VISCHEM (Table)

\--

CREATE INDEX IDX_VISCHEM_DATEON ON VISCHEM

(DATEON);

\--

\-- PKVISCHEM1 (Index)

\--

\-- Dependencies:

\-- VISCHEM (Table)

\--

CREATE UNIQUE INDEX PKVISCHEM1 ON VISCHEM

(LAB_KEY);

\--

\-- PKWETCHEM1 (Index)

\--

\-- Dependencies:

\-- WETCHEM (Table)

\--

CREATE UNIQUE INDEX PKWETCHEM1 ON WETCHEM

(LAB_KEY);

\--

\-- PK_WET_CONC (Index)

\--

\-- Dependencies:

\-- WET_CONCENTRATION (Table)

\--

CREATE UNIQUE INDEX PK_WET_CONC ON WET_CONCENTRATION

(SITE_ID, DATEON);

\--

\-- IDX_WETCON_DATEOFF (Index)

\--

\-- Dependencies:

\-- WET_CONCENTRATION (Table)

\--

CREATE INDEX IDX_WETCON_DATEOFF ON WET_CONCENTRATION

(DATEOFF);

/\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

Materialized View Creation Scripts

\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/

\--MODEL_OUTPUT_ANNUAL

CREATE MATERIALIZED VIEW MODEL_OUTPUT_ANNUAL

NOCACHE

LOGGING

NOCOMPRESS

NOPARALLEL

BUILD IMMEDIATE

REFRESH FORCE ON DEMAND

WITH PRIMARY KEY

AS

SELECT site_id, MIN (a.dateon) AS dateon, MAX (a.dateoff) AS dateoff,

a.YEAR,

AVG (ozone_vd) AS ozone_vd, 100 \* COUNT (ozone_vd) / 4 AS ozone_vd_pct,

AVG (ozone_flux) \* 4 AS ozone_flux, 100 \* COUNT (ozone_flux) / 4 AS
ozone_flux_pct,

AVG (ozone_conc) AS ozone_conc, 100 \* COUNT (ozone_conc) / 4 AS
ozone_conc_pct,

AVG (so2_vd) AS so2_vd, 100 \* COUNT (so2_vd) / 4 AS so2_vd_pct,

AVG (so2_flux) \* 4 AS so2_flux, 100 \* COUNT (so2_flux) / 4 AS
so2_flux_pct,

AVG (so2_conc) AS so2_conc, 100 \* COUNT (so2_conc) / 4 AS so2_conc_pct,

AVG (hno3_vd) AS hno3_vd, 100 \* COUNT (hno3_vd) / 4 AS hno3_vd_pct,

AVG (hno3_flux) \* 4 AS hno3_flux, 100 \* COUNT (hno3_flux) / 4 AS
hno3_flux_pct,

AVG (hno3_conc) AS hno3_conc, 100 \* COUNT (hno3_conc) / 4 AS
hno3_conc_pct,

AVG (particulate_vd) AS particulate_vd, 100 \* COUNT (particulate_vd) /
4 AS particulate_vd_pct,

AVG (so4_flux) \* 4 AS so4_flux, 100 \* COUNT (so4_flux) / 4 AS
so4_flux_pct,

AVG (so4_conc) AS so4_conc, 100 \* COUNT (so4_conc) / 4 AS so4_conc_pct,

AVG (no3_flux) \* 4 AS no3_flux, 100 \* COUNT (no3_flux) / 4 AS
no3_flux_pct,

AVG (no3_conc) AS no3_conc, 100 \* COUNT (no3_conc) / 4 AS no3_conc_pct,

AVG (nh4_flux) \* 4 AS nh4_flux, 100 \* COUNT (nh4_flux) / 4 AS
nh4_flux_pct,

AVG (nh4_conc) AS nh4_conc, 100 \* COUNT (nh4_conc) / 4 AS nh4_conc_pct,

AVG (ca_flux) \* 4 AS ca_flux, 100 \* COUNT (ca_flux) / 4 AS
ca_flux_pct,

AVG (ca_conc) AS ca_conc, 100 \* COUNT (ca_conc) / 4 AS ca_conc_pct,

AVG (mg_flux) \* 4 AS mg_flux, 100 \* COUNT (mg_flux) / 4 AS
mg_flux_pct,

AVG (mg_conc) AS mg_conc, 100 \* COUNT (mg_conc) / 4 AS mg_conc_pct,

AVG (na_flux) \* 4 AS na_flux, 100 \* COUNT (na_flux) / 4 AS
na_flux_pct,

AVG (na_conc) AS na_conc, 100 \* COUNT (na_conc) / 4 AS na_conc_pct,

AVG (k_flux) \* 4 AS k_flux, 100 \* COUNT (k_flux) / 4 AS k_flux_pct,

AVG (k_conc) AS k_conc, 100 \* COUNT (k_conc) / 4 AS k_conc_pct,

AVG (cl_flux) \* 4 AS cl_flux, 100 \* COUNT (cl_flux) / 4 AS
cl_flux_pct, AVG (cl_conc) AS cl_conc, 100 \* COUNT (cl_conc) / 4 AS
cl_conc_pct,

MAX (version_number) AS version_number,

MAX (update_date) AS update_date

FROM (SELECT site_id, dateon, dateoff, quarter, YEAR,

CASE

WHEN ozone_vd_pct \>= 69

THEN ozone_vd

ELSE NULL

END AS ozone_vd,

CASE

WHEN ozone_flux_pct \>= 69

THEN ozone_flux

ELSE NULL

END AS ozone_flux,

CASE

WHEN ozone_conc_pct \>= 69

THEN ozone_conc

ELSE NULL

END AS ozone_conc,

CASE

WHEN so2_vd_pct \>= 69

THEN so2_vd

ELSE NULL

END AS so2_vd,

CASE

WHEN so2_flux_pct \>= 69

THEN so2_flux

ELSE NULL

END AS so2_flux,

CASE

WHEN so2_conc_pct \>= 69

THEN so2_conc

ELSE NULL

END AS so2_conc,

CASE

WHEN hno3_vd_pct \>= 69

THEN hno3_vd

ELSE NULL

END AS hno3_vd,

CASE

WHEN hno3_flux_pct \>= 69

THEN hno3_flux

ELSE NULL

END AS hno3_flux,

CASE

WHEN hno3_conc_pct \>= 69

THEN hno3_conc

ELSE NULL

END AS hno3_conc,

CASE

WHEN particulate_vd_pct \>= 69

THEN particulate_vd

ELSE NULL

END AS particulate_vd,

CASE

WHEN so4_flux_pct \>= 69

THEN so4_flux

ELSE NULL

END AS so4_flux,

CASE

WHEN so4_conc_pct \>= 69

THEN so4_conc

ELSE NULL

END AS so4_conc,

CASE

WHEN no3_flux_pct \>= 69

THEN no3_flux

ELSE NULL

END AS no3_flux,

CASE

WHEN no3_conc_pct \>= 69

THEN no3_conc

ELSE NULL

END AS no3_conc,

CASE

WHEN nh4_flux_pct \>= 69

THEN nh4_flux

ELSE NULL

END AS nh4_flux,

CASE

WHEN nh4_conc_pct \>= 69

THEN nh4_conc

ELSE NULL

END AS nh4_conc,

CASE

WHEN ca_flux_pct \>= 69

THEN ca_flux

ELSE NULL

END AS ca_flux,

CASE

WHEN ca_conc_pct \>= 69

THEN ca_conc

ELSE NULL

END AS ca_conc,

CASE

WHEN mg_flux_pct \>= 69

THEN mg_flux

ELSE NULL

END AS mg_flux,

CASE

WHEN mg_conc_pct \>= 69

THEN mg_conc

ELSE NULL

END AS mg_conc,

CASE

WHEN na_flux_pct \>= 69

THEN na_flux

ELSE NULL

END AS na_flux,

CASE

WHEN na_conc_pct \>= 69

THEN na_conc

ELSE NULL

END AS na_conc,

CASE

WHEN k_flux_pct \>= 69

THEN k_flux

ELSE NULL

END AS k_flux,

CASE

WHEN k_conc_pct \>= 69

THEN k_conc

ELSE NULL

END AS k_conc,

CASE

WHEN cl_flux_pct \>= 69

THEN cl_flux

ELSE NULL

END AS cl_flux,

CASE

WHEN cl_conc_pct \>= 69

THEN cl_conc

ELSE NULL

END AS cl_conc, version_number, update_date

FROM castnet.model_output_quarter) a

GROUP BY a.site_id, a.YEAR;

COMMENT ON MATERIALIZED VIEW MODEL_OUTPUT_ANNUAL IS \'Aggregated Multi
Layer Model (MLM) output providing annual estimates for concentration,
dry deposition velocity, and dry deposition flux.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.SITE_ID IS \'Site identification
code.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.DATEON IS \'Date and time of first
hourly measurement in year, Local Standard Time; mm/dd/yyyy hh:mm:ss.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.DATEOFF IS \'Date and time of
final hourly measurement in year, Local Standard Time; mm/dd/yyyy
hh:mm:ss.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.YEAR IS \'Year of data, using
standard Tuesday to Tuesday weeks.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.OZONE_VD IS \'Mean ozone (O3)
deposition velocity; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.OZONE_VD_PCT IS \'Percent
completeness of hourly values aggregated to OZONE_VD, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.OZONE_FLUX IS \'Total ozone (O3)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.OZONE_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to OZONE_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.OZONE_CONC IS \'Mean ozone (O3)
concentration; ppb.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.OZONE_CONC_PCT IS \'Percent
completeness of hourly records aggregated to OZONE_CONC, advised
criteria is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.SO2_VD IS \'Mean sulfur dioxide
(SO2) deposition velocity; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.SO2_VD_PCT IS \'Percent
completeness of hourly values aggregated to SO2_VD, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.SO2_FLUX IS \'Total sulfur dioxide
(SO2) flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.SO2_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to SO2_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.SO2_CONC IS \'Mean sulfur dioxide
(SO2) concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.SO2_CONC_PCT IS \'Percent
completeness of hourly values aggregated to SO2_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.HNO3_VD IS \'Mean nitric acid
(HNO3) deposition velocity; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.HNO3_VD_PCT IS \'Percent
completeness of hourly values aggregated to HNO3_VD, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.HNO3_FLUX IS \'Total nitric acid
(HNO3) flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.HNO3_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to HNO3_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.HNO3_CONC IS \'Mean nitric acid
(HNO3) concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.HNO3_CONC_PCT IS \'Percent
completeness of hourly values aggregated to HNO3_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.PARTICULATE_VD IS \'Mean
particulate deposition velocity, used for SO4_FLUX, NO3_FLUX and
NH4_FLUX; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.PARTICULATE_VD_PCT IS \'Percent
completeness of hourly values aggregated to PARTICULATE_VD, advised
criteria is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.SO4_FLUX IS \'Total sulfate (SO4)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.SO4_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to SO4_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.SO4_CONC IS \'Mean sulfate (SO4)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.SO4_CONC_PCT IS \'Percent
completeness of hourly values aggregated to SO4_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.NO3_FLUX IS \'Particulate nitrate
(NO3) flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.NO3_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to NO3_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.NO3_CONC IS \'Particulate nitrate
(NO3) concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.NO3_CONC_PCT IS \'Percent
completeness of hourly values aggregated to NO3_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.NH4_FLUX IS \'Total ammonium (NH4)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.NH4_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to NH4_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.NH4_CONC IS \'Mean ammonium (NH4)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.NH4_CONC_PCT IS \'Percent
completeness of hourly values aggregated to NH4_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.CA_FLUX IS \'Total calcium (Ca)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.CA_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to CA_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.CA_CONC IS \'Mean calcium (Ca)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.CA_CONC_PCT IS \'Percent
completeness of hourly values aggregated to CA_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.MG_FLUX IS \'Total magnesium (Mg)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.MG_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to MG_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.MG_CONC IS \'Mean magnesium (Mg)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.MG_CONC_PCT IS \'Percent
completeness of hourly values aggregated to MG_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.NA_FLUX IS \'Total sodium (Na)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.NA_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to NA_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.NA_CONC IS \'Mean sodium (Na)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.NA_CONC_PCT IS \'Percent
completeness of hourly values aggregated to NA_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.K_FLUX IS \'Total potassium (K)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.K_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to K_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.K_CONC IS \'Mean potassium (K)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.K_CONC_PCT IS \'Percent
completeness of hourly values aggregated to K_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.CL_FLUX IS \'Total chloride (Cl)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.CL_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to CL_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.CL_CONC IS \'Mean chloride (Cl)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.CL_CONC_PCT IS \'Percent
completeness of hourly values aggregated to CL_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.VERSION_NUMBER IS \'Version number
of the deposition model, as described in the MODEL_VERSION table.\';

COMMENT ON COLUMN MODEL_OUTPUT_ANNUAL.UPDATE_DATE IS \'Date and time of
last record update.\';

\-- MODEL_OUTPUT_QUARTER

CREATE MATERIALIZED VIEW MODEL_OUTPUT_QUARTER

NOCACHE

LOGGING

NOCOMPRESS

NOPARALLEL

BUILD IMMEDIATE

REFRESH FORCE ON DEMAND

WITH PRIMARY KEY

AS

SELECT site_id, MIN (a.dateon) AS dateon, MAX (a.dateoff) AS dateoff,

a.quarter, a.YEAR,

AVG (ozone_vd) AS ozone_vd, 100 \* COUNT (ozone_vd) / weeks AS
ozone_vd_pct,

AVG (ozone_flux) \* weeks AS ozone_flux, 100 \* COUNT (ozone_flux) /
weeks AS ozone_flux_pct,

AVG (ozone_conc) AS ozone_conc, 100 \* COUNT (ozone_conc) / weeks AS
ozone_conc_pct,

AVG (so2_vd) AS so2_vd, 100 \* COUNT (so2_vd) / weeks AS so2_vd_pct,

AVG (so2_flux) \* weeks AS so2_flux, 100 \* COUNT (so2_flux) / weeks AS
so2_flux_pct,

AVG (so2_conc) AS so2_conc, 100 \* COUNT (so2_conc) / weeks AS
so2_conc_pct,

AVG (hno3_vd) AS hno3_vd, 100 \* COUNT (hno3_vd) / weeks AS hno3_vd_pct,

AVG (hno3_flux) \* weeks AS hno3_flux, 100 \* COUNT (hno3_flux) / weeks
AS hno3_flux_pct,

AVG (hno3_conc) AS hno3_conc, 100 \* COUNT (hno3_conc) / weeks AS
hno3_conc_pct,

AVG (particulate_vd) AS particulate_vd, 100 \* COUNT (particulate_vd) /
weeks AS particulate_vd_pct,

AVG (so4_flux) \* weeks AS so4_flux, 100 \* COUNT (so4_flux) / weeks AS
so4_flux_pct,

AVG (so4_conc) AS so4_conc, 100 \* COUNT (so4_conc) / weeks AS
so4_conc_pct,

AVG (no3_flux) \* weeks AS no3_flux, 100 \* COUNT (no3_flux) / weeks AS
no3_flux_pct,

AVG (no3_conc) AS no3_conc, 100 \* COUNT (no3_conc) / weeks AS
no3_conc_pct,

AVG (nh4_flux) \* weeks AS nh4_flux, 100 \* COUNT (nh4_flux) / weeks AS
nh4_flux_pct,

AVG (nh4_conc) AS nh4_conc, 100 \* COUNT (nh4_conc) / weeks AS
nh4_conc_pct,

AVG (ca_flux) \* weeks AS ca_flux, 100 \* COUNT (ca_flux) / weeks AS
ca_flux_pct,

AVG (ca_conc) AS ca_conc, 100 \* COUNT (ca_conc) / weeks AS ca_conc_pct,

AVG (mg_flux) \* weeks AS mg_flux, 100 \* COUNT (mg_flux) / weeks AS
mg_flux_pct,

AVG (mg_conc) AS mg_conc, 100 \* COUNT (mg_conc) / weeks AS mg_conc_pct,

AVG (na_flux) \* weeks AS na_flux, 100 \* COUNT (na_flux) / weeks AS
na_flux_pct,

AVG (na_conc) AS na_conc, 100 \* COUNT (na_conc) / weeks AS na_conc_pct,

AVG (k_flux) \* weeks AS k_flux, 100 \* COUNT (k_flux) / weeks AS
k_flux_pct,

AVG (k_conc) AS k_conc, 100 \* COUNT (k_conc) / weeks AS k_conc_pct,

AVG (cl_flux) \* weeks AS cl_flux, 100 \* COUNT (cl_flux) / weeks AS
cl_flux_pct,

AVG (cl_conc) AS cl_conc, 100 \* COUNT (cl_conc) / weeks AS cl_conc_pct,

MAX (version_number) AS version_number, MAX (a.update_date) AS
update_date

FROM (SELECT site_id, dateon, dateoff,

DECODE (MONTH, 1, 1, 2, 1, 3, 1, 4, 2, 5, 2, 6, 2, 7, 3, 8, 3, 9, 3, 10,
4, 11, 4, 12, 4, NULL) \"QUARTER\", YEAR,

CASE

WHEN ozone_vd_pct \>= 69

THEN ozone_vd

ELSE NULL

END AS ozone_vd,

CASE

WHEN ozone_flux_pct \>= 69

THEN ozone_flux

ELSE NULL

END AS ozone_flux,

CASE

WHEN ozone_conc_pct \>= 69

THEN ozone_conc

ELSE NULL

END AS ozone_conc,

CASE

WHEN so2_vd_pct \>= 69

THEN so2_vd

ELSE NULL

END AS so2_vd,

CASE

WHEN so2_flux_pct \>= 69

THEN so2_flux

ELSE NULL

END AS so2_flux,

CASE

WHEN so2_conc_pct \>= 69

THEN so2_conc

ELSE NULL

END AS so2_conc,

CASE

WHEN hno3_vd_pct \>= 69

THEN hno3_vd

ELSE NULL

END AS hno3_vd,

CASE

WHEN hno3_flux_pct \>= 69

THEN hno3_flux

ELSE NULL

END AS hno3_flux,

CASE

WHEN hno3_conc_pct \>= 69

THEN hno3_conc

ELSE NULL

END AS hno3_conc,

CASE

WHEN particulate_vd_pct \>= 69

THEN particulate_vd

ELSE NULL

END AS particulate_vd,

CASE

WHEN so4_flux_pct \>= 69

THEN so4_flux

ELSE NULL

END AS so4_flux,

CASE

WHEN so4_conc_pct \>= 69

THEN so4_conc

ELSE NULL

END AS so4_conc,

CASE

WHEN no3_flux_pct \>= 69

THEN no3_flux

ELSE NULL

END AS no3_flux,

CASE

WHEN no3_conc_pct \>= 69

THEN no3_conc

ELSE NULL

END AS no3_conc,

CASE

WHEN nh4_flux_pct \>= 69

THEN nh4_flux

ELSE NULL

END AS nh4_flux,

CASE

WHEN nh4_conc_pct \>= 69

THEN nh4_conc

ELSE NULL

END AS nh4_conc,

CASE

WHEN ca_flux_pct \>= 69

THEN ca_flux

ELSE NULL

END AS ca_flux,

CASE

WHEN ca_conc_pct \>= 69

THEN ca_conc

ELSE NULL

END AS ca_conc,

CASE

WHEN mg_flux_pct \>= 69

THEN mg_flux

ELSE NULL

END AS mg_flux,

CASE

WHEN mg_conc_pct \>= 69

THEN mg_conc

ELSE NULL

END AS mg_conc,

CASE

WHEN na_flux_pct \>= 69

THEN na_flux

ELSE NULL

END AS na_flux,

CASE

WHEN na_conc_pct \>= 69

THEN na_conc

ELSE NULL

END AS na_conc,

CASE

WHEN k_flux_pct \>= 69

THEN k_flux

ELSE NULL

END AS k_flux,

CASE

WHEN k_conc_pct \>= 69

THEN k_conc

ELSE NULL

END AS k_conc,

CASE

WHEN cl_flux_pct \>= 69

THEN cl_flux

ELSE NULL

END AS cl_flux,

CASE

WHEN cl_conc_pct \>= 69

THEN cl_conc

ELSE NULL

END AS cl_conc, version_number, update_date

FROM castnet.model_output_week) a INNER JOIN castnet.period_definition b
ON a.quarter = b.quarter AND a.YEAR = b.YEAR

GROUP BY a.site_id, a.quarter, a.YEAR, b.weeks;

COMMENT ON MATERIALIZED VIEW MODEL_OUTPUT_QUARTER IS \'Aggregated Multi
Layer Model (MLM) output providing quarterly estimates for
concentration, dry deposition velocity, and dry deposition flux.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.SITE_ID IS \'Site identification
code.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.DATEON IS \'Date and time of
first hourly measurement in quarter, Local Standard Time; mm/dd/yyyy
hh:mm:ss.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.DATEOFF IS \'Date and time of
final hourly measurement in quarter, Local Standard Time; mm/dd/yyyy
hh:mm:ss.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.QUARTER IS \'Quarter of year.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.YEAR IS \'Year of data, using
standard Tuesday to Tuesday weeks.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.OZONE_VD IS \'Mean ozone (O3)
deposition velocity; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.OZONE_VD_PCT IS \'Percent
completeness of hourly values aggregated to OZONE_VD, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.OZONE_FLUX IS \'Total ozone (O3)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.OZONE_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to OZONE_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.OZONE_CONC IS \'Mean ozone (O3)
concentration; ppb.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.OZONE_CONC_PCT IS \'Percent
completeness of hourly records aggregated to OZONE_CONC, advised
criteria is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.SO2_VD IS \'Mean sulfur dioxide
(SO2) deposition velocity; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.SO2_VD_PCT IS \'Percent
completeness of hourly values aggregated to SO2_VD, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.SO2_FLUX IS \'Total sulfur
dioxide (SO2) flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.SO2_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to SO2_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.SO2_CONC IS \'Mean sulfur dioxide
(SO2) concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.SO2_CONC_PCT IS \'Percent
completeness of hourly values aggregated to SO2_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.HNO3_VD IS \'Mean nitric acid
(HNO3) deposition velocity; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.HNO3_VD_PCT IS \'Percent
completeness of hourly values aggregated to HNO3_VD, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.HNO3_FLUX IS \'Total nitric acid
(HNO3) flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.HNO3_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to HNO3_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.HNO3_CONC IS \'Mean nitric acid
(HNO3) concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.HNO3_CONC_PCT IS \'Percent
completeness of hourly values aggregated to HNO3_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.PARTICULATE_VD IS \'Mean
particulate deposition velocity, used for SO4_FLUX, NO3_FLUX and
NH4_FLUX; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.PARTICULATE_VD_PCT IS \'Percent
completeness of hourly values aggregated to PARTICULATE_VD, advised
criteria is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.SO4_FLUX IS \'Total sulfate (SO4)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.SO4_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to SO4_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.SO4_CONC IS \'Mean sulfate (SO4)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.SO4_CONC_PCT IS \'Percent
completeness of hourly values aggregated to SO4_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.NO3_FLUX IS \'Particulate nitrate
(NO3) flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.NO3_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to NO3_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.NO3_CONC IS \'Particulate nitrate
(NO3) concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.NO3_CONC_PCT IS \'Percent
completeness of hourly values aggregated to NO3_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.NH4_FLUX IS \'Total ammonium
(NH4) flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.NH4_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to NH4_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.NH4_CONC IS \'Mean ammonium (NH4)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.NH4_CONC_PCT IS \'Percent
completeness of hourly values aggregated to NH4_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.CA_FLUX IS \'Total calcium (Ca)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.CA_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to CA_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.CA_CONC IS \'Mean calcium (Ca)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.CA_CONC_PCT IS \'Percent
completeness of hourly values aggregated to CA_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.MG_FLUX IS \'Total magnesium (Mg)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.MG_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to MG_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.MG_CONC IS \'Mean magnesium (Mg)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.MG_CONC_PCT IS \'Percent
completeness of hourly values aggregated to MG_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.NA_FLUX IS \'Total sodium (Na)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.NA_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to NA_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.NA_CONC IS \'Mean sodium (Na)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.NA_CONC_PCT IS \'Percent
completeness of hourly values aggregated to NA_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.K_FLUX IS \'Total potassium (K)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.K_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to K_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.K_CONC IS \'Mean potassium (K)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.K_CONC_PCT IS \'Percent
completeness of hourly values aggregated to K_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.CL_FLUX IS \'Total chloride (Cl)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.CL_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to CL_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.CL_CONC IS \'Mean chloride (Cl)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.CL_CONC_PCT IS \'Percent
completeness of hourly values aggregated to CL_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.VERSION_NUMBER IS \'Version
number of the deposition model, as described in the MODEL_VERSION
table.\';

COMMENT ON COLUMN MODEL_OUTPUT_QUARTER.UPDATE_DATE IS \'Date and time of
last record update.\';

\-- MODEL_OUTPUT_SEASON

CREATE MATERIALIZED VIEW MODEL_OUTPUT_SEASON

NOCACHE

LOGGING

NOCOMPRESS

NOPARALLEL

BUILD IMMEDIATE

REFRESH FORCE ON DEMAND

WITH PRIMARY KEY

AS

SELECT site_id, MIN (a.dateon) AS dateon, MAX (a.dateoff) AS dateoff,

a.season, a.YEAR,

AVG (ozone_vd) AS ozone_vd, 100 \* COUNT (ozone_vd) / weeks AS
ozone_vd_pct,

AVG (ozone_flux) \* weeks AS ozone_flux, 100 \* COUNT (ozone_flux) /
weeks AS ozone_flux_pct,

AVG (ozone_conc) AS ozone_conc, 100 \* COUNT (ozone_conc) / weeks AS
ozone_conc_pct,

AVG (so2_vd) AS so2_vd, 100 \* COUNT (so2_vd) / weeks AS so2_vd_pct,

AVG (so2_flux) \* weeks AS so2_flux, 100 \* COUNT (so2_flux) / weeks AS
so2_flux_pct,

AVG (so2_conc) AS so2_conc, 100 \* COUNT (so2_conc) / weeks AS
so2_conc_pct,

AVG (hno3_vd) AS hno3_vd, 100 \* COUNT (hno3_vd) / weeks AS hno3_vd_pct,

AVG (hno3_flux) \* weeks AS hno3_flux, 100 \* COUNT (hno3_flux) / weeks
AS hno3_flux_pct,

AVG (hno3_conc) AS hno3_conc, 100 \* COUNT (hno3_conc) / weeks AS
hno3_conc_pct,

AVG (particulate_vd) AS particulate_vd, 100 \* COUNT (particulate_vd) /
weeks AS particulate_vd_pct,

AVG (so4_flux) \* weeks AS so4_flux, 100 \* COUNT (so4_flux) / weeks AS
so4_flux_pct,

AVG (so4_conc) AS so4_conc, 100 \* COUNT (so4_conc) / weeks AS
so4_conc_pct,

AVG (no3_flux) \* weeks AS no3_flux, 100 \* COUNT (no3_flux) / weeks AS
no3_flux_pct,

AVG (no3_conc) AS no3_conc, 100 \* COUNT (no3_conc) / weeks AS
no3_conc_pct,

AVG (nh4_flux) \* weeks AS nh4_flux, 100 \* COUNT (nh4_flux) / weeks AS
nh4_flux_pct,

AVG (nh4_conc) AS nh4_conc, 100 \* COUNT (nh4_conc) / weeks AS
nh4_conc_pct,

AVG (ca_flux) \* weeks AS ca_flux, 100 \* COUNT (ca_flux) / weeks AS
ca_flux_pct,

AVG (ca_conc) AS ca_conc, 100 \* COUNT (ca_conc) / weeks AS ca_conc_pct,

AVG (mg_flux) \* weeks AS mg_flux, 100 \* COUNT (mg_flux) / weeks AS
mg_flux_pct,

AVG (mg_conc) AS mg_conc, 100 \* COUNT (mg_conc) / weeks AS mg_conc_pct,

AVG (na_flux) \* weeks AS na_flux, 100 \* COUNT (na_flux) / weeks AS
na_flux_pct,

AVG (na_conc) AS na_conc, 100 \* COUNT (na_conc) / weeks AS na_conc_pct,

AVG (k_flux) \* weeks AS k_flux, 100 \* COUNT (k_flux) / weeks AS
k_flux_pct, AVG (k_conc) AS k_conc, 100 \* COUNT (k_conc) / weeks AS
k_conc_pct,

AVG (cl_flux) \* weeks AS cl_flux, 100 \* COUNT (cl_flux) / weeks AS
cl_flux_pct,

AVG (cl_conc) AS cl_conc, 100 \* COUNT (cl_conc) / weeks AS cl_conc_pct,

MAX (version_number) AS version_number, MAX (a.update_date) AS
update_date

FROM (SELECT site_id, dateon, dateoff,

DECODE (MONTH, 1, \'WI\', 2, \'WI\', 3, \'SP\', 4, \'SP\', 5, \'SP\', 6,
\'SU\', 7, \'SU\', 8, \'SU\', 9, \'FA\', 10, \'FA\', 11, \'FA\', 12,
\'WI\', NULL) \"SEASON\",

DECODE (SIGN (MONTH - 11), -1, YEAR, 0, YEAR, +1, YEAR + 1, NULL)
\"YEAR\",

CASE

WHEN ozone_vd_pct \>= 69

THEN ozone_vd

ELSE NULL

END AS ozone_vd,

CASE

WHEN ozone_flux_pct \>= 69

THEN ozone_flux

ELSE NULL

END AS ozone_flux,

CASE

WHEN ozone_conc_pct \>= 69

THEN ozone_conc

ELSE NULL

END AS ozone_conc,

CASE

WHEN so2_vd_pct \>= 69

THEN so2_vd

ELSE NULL

END AS so2_vd,

CASE

WHEN so2_flux_pct \>= 69

THEN so2_flux

ELSE NULL

END AS so2_flux,

CASE

WHEN so2_conc_pct \>= 69

THEN so2_conc

ELSE NULL

END AS so2_conc,

CASE

WHEN hno3_vd_pct \>= 69

THEN hno3_vd

ELSE NULL

END AS hno3_vd,

CASE

WHEN hno3_flux_pct \>= 69

THEN hno3_flux

ELSE NULL

END AS hno3_flux,

CASE

WHEN hno3_conc_pct \>= 69

THEN hno3_conc

ELSE NULL

END AS hno3_conc,

CASE

WHEN particulate_vd_pct \>= 69

THEN particulate_vd

ELSE NULL

END AS particulate_vd,

CASE

WHEN so4_flux_pct \>= 69

THEN so4_flux

ELSE NULL

END AS so4_flux,

CASE

WHEN so4_conc_pct \>= 69

THEN so4_conc

ELSE NULL

END AS so4_conc,

CASE

WHEN no3_flux_pct \>= 69

THEN no3_flux

ELSE NULL

END AS no3_flux,

CASE

WHEN no3_conc_pct \>= 69

THEN no3_conc

ELSE NULL

END AS no3_conc,

CASE

WHEN nh4_flux_pct \>= 69

THEN nh4_flux

ELSE NULL

END AS nh4_flux,

CASE

WHEN nh4_conc_pct \>= 69

THEN nh4_conc

ELSE NULL

END AS nh4_conc,

CASE

WHEN ca_flux_pct \>= 69

THEN ca_flux

ELSE NULL

END AS ca_flux,

CASE

WHEN ca_conc_pct \>= 69

THEN ca_conc

ELSE NULL

END AS ca_conc,

CASE

WHEN mg_flux_pct \>= 69

THEN mg_flux

ELSE NULL

END AS mg_flux,

CASE

WHEN mg_conc_pct \>= 69

THEN mg_conc

ELSE NULL

END AS mg_conc,

CASE

WHEN na_flux_pct \>= 69

THEN na_flux

ELSE NULL

END AS na_flux,

CASE

WHEN na_conc_pct \>= 69

THEN na_conc

ELSE NULL

END AS na_conc,

CASE

WHEN k_flux_pct \>= 69

THEN k_flux

ELSE NULL

END AS k_flux,

CASE

WHEN k_conc_pct \>= 69

THEN k_conc

ELSE NULL

END AS k_conc,

CASE

WHEN cl_flux_pct \>= 69

THEN cl_flux

ELSE NULL

END AS cl_flux,

CASE

WHEN cl_conc_pct \>= 69

THEN cl_conc

ELSE NULL

END AS cl_conc, version_number, update_date

FROM castnet.model_output_week) a INNER JOIN castnet.period_definition b
ON a.season = b.season AND a.YEAR = b.YEAR

GROUP BY a.site_id, a.season, a.YEAR, b.weeks;

COMMENT ON MATERIALIZED VIEW MODEL_OUTPUT_SEASON IS \'Aggregated Multi
Layer Model (MLM) output providing seasonal estimates for concentration,
dry deposition velocity, and dry deposition flux.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.SITE_ID IS \'Site identification
code.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.DATEON IS \'Date and time of first
hourly measurement in season, Local Standard Time; mm/dd/yyyy
hh:mm:ss.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.DATEOFF IS \'Date and time of
final hourly measurement in season, Local Standard Time; mm/dd/yyyy
hh:mm:ss.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.SEASON IS \'Season of year.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.YEAR IS \'Year of data, using
standard Tuesday to Tuesday weeks.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.OZONE_VD IS \'Mean ozone (O3)
deposition velocity; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.OZONE_VD_PCT IS \'Percent
completeness of hourly values aggregated to OZONE_VD, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.OZONE_FLUX IS \'Total ozone (O3)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.OZONE_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to OZONE_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.OZONE_CONC IS \'Mean ozone (O3)
concentration; ppb.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.OZONE_CONC_PCT IS \'Percent
completeness of hourly records aggregated to OZONE_CONC, advised
criteria is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.SO2_VD IS \'Mean sulfur dioxide
(SO2) deposition velocity; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.SO2_VD_PCT IS \'Percent
completeness of hourly values aggregated to SO2_VD, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.SO2_FLUX IS \'Total sulfur dioxide
(SO2) flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.SO2_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to SO2_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.SO2_CONC IS \'Mean sulfur dioxide
(SO2) concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.SO2_CONC_PCT IS \'Percent
completeness of hourly values aggregated to SO2_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.HNO3_VD IS \'Mean nitric acid
(HNO3) deposition velocity; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.HNO3_VD_PCT IS \'Percent
completeness of hourly values aggregated to HNO3_VD, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.HNO3_FLUX IS \'Total nitric acid
(HNO3) flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.HNO3_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to HNO3_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.HNO3_CONC IS \'Mean nitric acid
(HNO3) concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.HNO3_CONC_PCT IS \'Percent
completeness of hourly values aggregated to HNO3_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.PARTICULATE_VD IS \'Mean
particulate deposition velocity, used for SO4_FLUX, NO3_FLUX and
NH4_FLUX; cm/sec.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.PARTICULATE_VD_PCT IS \'Percent
completeness of hourly values aggregated to PARTICULATE_VD, advised
criteria is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.SO4_FLUX IS \'Total sulfate (SO4)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.SO4_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to SO4_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.SO4_CONC IS \'Mean sulfate (SO4)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.SO4_CONC_PCT IS \'Percent
completeness of hourly values aggregated to SO4_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.NO3_FLUX IS \'Particulate nitrate
(NO3) flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.NO3_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to NO3_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.NO3_CONC IS \'Particulate nitrate
(NO3) concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.NO3_CONC_PCT IS \'Percent
completeness of hourly values aggregated to NO3_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.NH4_FLUX IS \'Total ammonium (NH4)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.NH4_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to NH4_FLUX, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.NH4_CONC IS \'Mean ammonium (NH4)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.NH4_CONC_PCT IS \'Percent
completeness of hourly values aggregated to NH4_CONC, advised criteria
is \>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.CA_FLUX IS \'Total calcium (Ca)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.CA_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to CA_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.CA_CONC IS \'Mean calcium (Ca)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.CA_CONC_PCT IS \'Percent
completeness of hourly values aggregated to CA_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.MG_FLUX IS \'Total magnesium (Mg)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.MG_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to MG_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.MG_CONC IS \'Mean magnesium (Mg)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.MG_CONC_PCT IS \'Percent
completeness of hourly values aggregated to MG_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.NA_FLUX IS \'Total sodium (Na)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.NA_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to NA_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.NA_CONC IS \'Mean sodium (Na)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.NA_CONC_PCT IS \'Percent
completeness of hourly values aggregated to NA_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.K_FLUX IS \'Total potassium (K)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.K_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to K_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.K_CONC IS \'Mean potassium (K)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.K_CONC_PCT IS \'Percent
completeness of hourly values aggregated to K_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.CL_FLUX IS \'Total chloride (Cl)
flux; kg/ha.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.CL_FLUX_PCT IS \'Percent
completeness of hourly values aggregated to CL_FLUX, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.CL_CONC IS \'Mean chloride (Cl)
concentration; ug/m\^3.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.CL_CONC_PCT IS \'Percent
completeness of hourly values aggregated to CL_CONC, advised criteria is
\>= 69.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.VERSION_NUMBER IS \'Version number
of the deposition model, as described in the MODEL_VERSION table.\';

COMMENT ON COLUMN MODEL_OUTPUT_SEASON.UPDATE_DATE IS \'Date and time of
last record update.\';

\--NADP_AIRMON

CREATE MATERIALIZED VIEW NADP_AIRMON

NOCACHE

LOGGING

NOCOMPRESS

NOPARALLEL

BUILD IMMEDIATE

REFRESH FORCE ON DEMAND

WITH PRIMARY KEY

AS

SELECT 10\*TO_NUMBER(coalesce(a.state_fips, b.state_fips) \|\| SUBSTR
(site_id, 3, 2),\'99999\') AS site_num,

site_id, site_name, status, latitude, longitude,

elevation, state, coalesce(a.state_fips, b.state_fips) state_fips

FROM nadp_site a left join state b

USING (state)

WHERE network = \'AIRMoN\' AND
REGEXP_LIKE(site_id,\'\[A-Z\]\[A-Z\]\[0-9\]\[0-9\]\')

AND status in (\'A\',\'I\');

COMMENT ON MATERIALIZED VIEW NADP_AIRMON IS \'Snapshot of site
information for the NADP/AIRMON network.\';

COMMENT ON COLUMN NADP_AIRMON.SITE_NUM IS \'Numeric unique site
identification\';

COMMENT ON COLUMN NADP_AIRMON.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN NADP_AIRMON.SITE_NAME IS \'Site name\';

COMMENT ON COLUMN NADP_AIRMON.STATUS IS \'Status (inactive=I
active=A)\';

COMMENT ON COLUMN NADP_AIRMON.LATITUDE IS \'Latitude; decimal
degrees.\';

COMMENT ON COLUMN NADP_AIRMON.LONGITUDE IS \'Longitude; decimal
degrees.\';

COMMENT ON COLUMN NADP_AIRMON.ELEVATION IS \'Elevation; m.\';

COMMENT ON COLUMN NADP_AIRMON.STATE IS \'State abbreviation.\';

COMMENT ON COLUMN NADP_AIRMON.STATE_FIPS IS \'State FIPS\';

\-- NADP_ANNUAL

CREATE MATERIALIZED VIEW NADP_ANNUAL

NOCACHE

NOLOGGING

NOCOMPRESS

NOPARALLEL

BUILD IMMEDIATE

REFRESH FORCE ON COMMIT

WITH PRIMARY KEY

AS

SELECT site_id, period, YEAR, criteria1, criteria2, criteria3,
criteria4,

ca, mg, k, na, nh4, no3, cl, so4, ph, (ca \* precip \* 0.1) AS ca_d,

(mg \* precip \* 0.1) AS mg_d, (k \* precip \* 0.1) AS k_d,

(na \* precip \* 0.1) AS na_d, (nh4 \* precip \* 0.1) AS nh4_d,

(no3 \* precip \* 0.1) AS no3_d,

(nh4 \* precip \* 0.1) \* 14 / 18

\+ (no3 \* precip \* 0.1) \* 14 / 62 AS inorg_n,

(cl \* precip \* 0.1) AS cl_d, (so4 \* precip \* 0.1) AS so4_d,

POWER (10, -ph) \* 1000 AS h,

(POWER (10, -ph) \* 1000 \* precip \* 0.1) AS h_d,

POWER (10, -field_ph) \* 1000 AS h_fld, conductivity, field_ph,

field_conductivity, cation_anion_ratio, sample_volume, precip,

pct_precip_fld, valid_lab_samples, valid_field_samples, days,

period_start, period_end,

CASE

WHEN criteria1 \>= 74.5

AND criteria2 \>= 89.5

AND criteria3 \>= 74.5

AND criteria4 \>= 74.5

THEN \'Y\'

ELSE \'N\'

END MEETS_CRITERIA

FROM CASTNET.nadp_summary

WHERE period = \'Annual\';

COMMENT ON MATERIALIZED VIEW NADP_ANNUAL IS \'Annual aggregations for
NADP/NTN, using NADP\'\'s completeness criteria.\';

COMMENT ON COLUMN NADP_ANNUAL.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN NADP_ANNUAL.PERIOD IS \'Period of aggregation.\';

COMMENT ON COLUMN NADP_ANNUAL.YEAR IS \'Year of data, using standard
Tuesday to Tuesday weeks.\';

COMMENT ON COLUMN NADP_ANNUAL.CRITERIA1 IS \'Percentage of the summary
period for which there are valid samples.\';

COMMENT ON COLUMN NADP_ANNUAL.CRITERIA2 IS \'Percentage of the summary
period for which precipitation amounts are available either from the
rain gage or from the sample volume.\';

COMMENT ON COLUMN NADP_ANNUAL.CRITERIA3 IS \'Percentage of the total
measured precipitation associated with valid samples.\';

COMMENT ON COLUMN NADP_ANNUAL.CRITERIA4 IS \'Collection efficiency,
calculated from the sum of the sample bucket depths (in centimeters)
divided by the sum of the rain gage amounts (in centimeters) for all
valid samples where both values are available.\';

COMMENT ON COLUMN NADP_ANNUAL.CA IS \'Precipitation-weighted mean of
calcium (Ca) concentration; ug/m\^3.\';

COMMENT ON COLUMN NADP_ANNUAL.MG IS \'Precipitation-weighted mean of
magnesium (Mg) concentration; ug/m\^3.\';

COMMENT ON COLUMN NADP_ANNUAL.K IS \'Precipitation-weighted mean of
potassium (K) concentration; ug/m\^3.\';

COMMENT ON COLUMN NADP_ANNUAL.NA IS \'Precipitation-weighted mean of
sodium (Na) concentrations; ug/m\^3.\';

COMMENT ON COLUMN NADP_ANNUAL.NH4 IS \'Precipitation-weighted mean of
ammonium (NH4) concentrations; ug/m\^3.\';

COMMENT ON COLUMN NADP_ANNUAL.NO3 IS \'Precipitation-weighted mean of
nitrate (NO3) concentrations; ug/m\^3.\';

COMMENT ON COLUMN NADP_ANNUAL.CL IS \'Precipitation-weighted mean of
chloride (Cl) concentrations; ug/m\^3.\';

COMMENT ON COLUMN NADP_ANNUAL.SO4 IS \'Precipitation-weighted mean of
sulfate (SO4) concentrations; ug/m\^3.\';

COMMENT ON COLUMN NADP_ANNUAL.PH IS \'Precipitation weighted mean of
hydrogen concentration, in pH units.\';

COMMENT ON COLUMN NADP_ANNUAL.CA_D IS \'Wet calcium (Ca) flux; kg/ha.\';

COMMENT ON COLUMN NADP_ANNUAL.MG_D IS \'Wet magnesium (Mg) flux;
kg/ha.\';

COMMENT ON COLUMN NADP_ANNUAL.K_D IS \'Wet potassium (K) flux; kg/ha.\';

COMMENT ON COLUMN NADP_ANNUAL.NA_D IS \'Wet sodium (Na) flux; kg/ha.\';

COMMENT ON COLUMN NADP_ANNUAL.NH4_D IS \'Wet ammonium (NH4) flux;
kg/ha.\';

COMMENT ON COLUMN NADP_ANNUAL.NO3_D IS \'Wet ntrate (NO3) flux;
kg/ha.\';

COMMENT ON COLUMN NADP_ANNUAL.INORG_N IS \'Inorganic nitrogen (N)
calculated as the sum of nitrate (NO3) and ammonium (NH4); kg/ha.\';

COMMENT ON COLUMN NADP_ANNUAL.CL_D IS \'Wet chloride (Cl) flux;
kg/ha.\';

COMMENT ON COLUMN NADP_ANNUAL.SO4_D IS \'Wet sulfate (SO4) flux;
kg/ha.\';

COMMENT ON COLUMN NADP_ANNUAL.H IS \'Precipitation weighted mean of
hydrogen (H) concentration, in pH units; ug/m\^3.\';

COMMENT ON COLUMN NADP_ANNUAL.H_D IS \'Wet hydrogen (H) flux; kg/ha.\';

COMMENT ON COLUMN NADP_ANNUAL.H_FLD IS \'Hydrogen concentration in field
sample; ug/m\^3.\';

COMMENT ON COLUMN NADP_ANNUAL.CONDUCTIVITY IS \'Precipitation-weighted
mean of conductivity; uS/cm.\';

COMMENT ON COLUMN NADP_ANNUAL.FIELD_PH IS \'Precipitation-weighted mean
of hydrogen concentration as measured in the field, in pH units.\';

COMMENT ON COLUMN NADP_ANNUAL.FIELD_CONDUCTIVITY IS
\'Precipitation-weighted mean of conductivity as measured in the field;
uS/cm.\';

COMMENT ON COLUMN NADP_ANNUAL.CATION_ANION_RATIO IS
\'Precipitation-weighted mean of equivalence ratio of cations to
anions.\';

COMMENT ON COLUMN NADP_ANNUAL.SAMPLE_VOLUME IS \'Volume of sample;
mL.\';

COMMENT ON COLUMN NADP_ANNUAL.PRECIP IS \'Precipitation; cm.\';

COMMENT ON COLUMN NADP_ANNUAL.PCT_PRECIP_FLD IS \'Percentage of
precipitation represented by the field samples\';

COMMENT ON COLUMN NADP_ANNUAL.VALID_LAB_SAMPLES IS \'Number of samples
used in calculating precipitation-weighted means from the laboratory.\';

COMMENT ON COLUMN NADP_ANNUAL.VALID_FIELD_SAMPLES IS \'Number of samples
used in calculating precipitation-weighted means from the field.\';

COMMENT ON COLUMN NADP_ANNUAL.DAYS IS \'Number of days included in the
summary period.\';

COMMENT ON COLUMN NADP_ANNUAL.PERIOD_START IS \'The beginning date of
the first sample of the summary period.\';

COMMENT ON COLUMN NADP_ANNUAL.PERIOD_END IS \'The ending date of the
last sample included in the summary period, in GMT.\';

COMMENT ON COLUMN NADP_ANNUAL.MEETS_CRITERIA IS \'Meets NADP\'\'s
completeness criteria. See
http://nadp.sws.uiuc.edu/documentation/notes-depo.html\';

CREATE UNIQUE INDEX PK_NADP_SUMMARY1 ON NADP_ANNUAL

(SITE_ID, PERIOD, YEAR)

LOGGING

NOPARALLEL;

\-- NADP_MDN

CREATE MATERIALIZED VIEW NADP_MDN

NOCACHE

LOGGING

NOCOMPRESS

NOPARALLEL

BUILD IMMEDIATE

REFRESH FORCE ON DEMAND

WITH PRIMARY KEY

AS

SELECT TO_NUMBER(coalesce(a.state_fips, b.state_fips) \|\| SUBSTR
(site_id, 3, 2),\'99999\') AS site_num,

site_id, site_name, status, latitude, longitude,

elevation, state, coalesce(a.state_fips, b.state_fips) state_fips

FROM nadp_site a left join state b

USING (state)

WHERE network = \'MDN\' AND
REGEXP_LIKE(site_id,\'\[A-Z\]\[A-Z\]\[0-9\]\[0-9\]\')

AND status in (\'A\',\'I\');

COMMENT ON MATERIALIZED VIEW NADP_MDN IS \'Site information for the
NADP/MDN network.\';

COMMENT ON COLUMN NADP_MDN.SITE_NUM IS \'Numeric unique site
identification\';

COMMENT ON COLUMN NADP_MDN.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN NADP_MDN.SITE_NAME IS \'Site name\';

COMMENT ON COLUMN NADP_MDN.STATUS IS \'Status (inactive=I active=A)\';

COMMENT ON COLUMN NADP_MDN.LATITUDE IS \'Latitude; decimal degrees.\';

COMMENT ON COLUMN NADP_MDN.LONGITUDE IS \'Longitude; decimal degrees.\';

COMMENT ON COLUMN NADP_MDN.ELEVATION IS \'Elevation; m.\';

COMMENT ON COLUMN NADP_MDN.STATE IS \'State abbreviation.\';

COMMENT ON COLUMN NADP_MDN.STATE_FIPS IS \'State FIPS\';

\-- NADP_NTN

CREATE MATERIALIZED VIEW NADP_NTN

NOCACHE

LOGGING

NOCOMPRESS

NOPARALLEL

BUILD IMMEDIATE

REFRESH FORCE ON DEMAND

WITH PRIMARY KEY

AS

SELECT TO_NUMBER (coalesce(a.state_fips, b.state_fips) \|\| SUBSTR
(site_id, 3, 2), \'9999\') AS site_num,

site_id, site_name, status, latitude, longitude,

elevation, state, coalesce(a.state_fips, b.state_fips) state_fips

FROM nadp_site a left join state b

USING (state)

WHERE network = \'NTN\' AND
REGEXP_LIKE(site_id,\'\[A-Z\]\[A-Z\]\[0-9\]\[0-9\]\');

COMMENT ON MATERIALIZED VIEW NADP_NTN IS \'Site information for the
NADP/NTN network.\';

COMMENT ON COLUMN NADP_NTN.SITE_NUM IS \'Numeric unique site
identification\';

COMMENT ON COLUMN NADP_NTN.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN NADP_NTN.SITE_NAME IS \'Site name\';

COMMENT ON COLUMN NADP_NTN.STATUS IS \'Status (inactive=I active=A)\';

COMMENT ON COLUMN NADP_NTN.LATITUDE IS \'Latitude; decimal degrees.\';

COMMENT ON COLUMN NADP_NTN.LONGITUDE IS \'Longitude; decimal degrees.\';

COMMENT ON COLUMN NADP_NTN.ELEVATION IS \'Elevation; m.\';

COMMENT ON COLUMN NADP_NTN.STATE IS \'State abbreviation.\';

COMMENT ON COLUMN NADP_NTN.STATE_FIPS IS \'State FIPS\';

\-- NADP_SEASON

CREATE MATERIALIZED VIEW NADP_SEASON

NOCACHE

NOLOGGING

NOCOMPRESS

NOPARALLEL

BUILD IMMEDIATE

REFRESH FORCE ON DEMAND

WITH PRIMARY KEY

AS

SELECT site_id, UPPER(SUBSTR(period,1,2)) \"SEASON\" , YEAR, criteria1,
criteria2, criteria3, criteria4,

ca, mg, k, na, nh4, no3, cl, so4, ph, (ca \* precip \* 0.1) AS ca_d,

(mg \* precip \* 0.1) AS mg_d, (k \* precip \* 0.1) AS k_d,

(na \* precip \* 0.1) AS na_d, (nh4 \* precip \* 0.1) AS nh4_d,

(no3 \* precip \* 0.1) AS no3_d,

ROUND ( (nh4 \* precip \* 0.1) \* 14 / 18

\+ (no3 \* precip \* 0.1) \* 14 / 62,

2

) AS inorg_n,

(cl \* precip \* 0.1) AS cl_d, (so4 \* precip \* 0.1) AS so4_d,

ROUND (POWER (10, -ph) \* 10000, 2) AS h,

ROUND ((POWER (10, -ph) \* 10000 \* precip \* 0.1), 2) AS h_d,

ROUND (POWER (10, -field_ph) \* 10000, 2) AS h_fld, conductivity,

field_ph, field_conductivity, cation_anion_ratio, sample_volume,

precip, pct_precip_fld, valid_lab_samples, valid_field_samples,

days, period_start, period_end,

CASE

WHEN criteria1 \>= 74.5

AND criteria2 \>= 89.5

AND criteria3 \>= 74.5

AND criteria4 \>= 74.5

THEN \'Y\'

ELSE \'N\'

END MEETS_CRITERIA

FROM nadp_summary

WHERE period IN (\'Winter\', \'Spring\', \'Summer\', \'Fall\');

COMMENT ON MATERIALIZED VIEW NADP_SEASON IS \'Snapshot of seasonal
aggregations for NADP/NTN, using NADP\'\'s completeness criteria.\';

COMMENT ON COLUMN NADP_SEASON.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN NADP_SEASON.SEASON IS \'Season of aggregation\';

COMMENT ON COLUMN NADP_SEASON.YEAR IS \'Year of data, using standard
Tuesday to Tuesday weeks.\';

COMMENT ON COLUMN NADP_SEASON.CRITERIA1 IS \'Percentage of the summary
period for which there are valid samples.\';

COMMENT ON COLUMN NADP_SEASON.CRITERIA2 IS \'Percentage of the summary
period for which precipitation amounts are available either from the
rain gage or from the sample volume.\';

COMMENT ON COLUMN NADP_SEASON.CRITERIA3 IS \'Percentage of the total
measured precipitation associated with valid samples.\';

COMMENT ON COLUMN NADP_SEASON.CRITERIA4 IS \'Collection efficiency,
calculated from the sum of the sample bucket depths (in centimeters)
divided by the sum of the rain gage amounts (in centimeters) for all
valid samples where both values are available.\';

COMMENT ON COLUMN NADP_SEASON.CA IS \'Precipitation-weighted mean of
calcium (Ca) concentration; ug/m\^3.\';

COMMENT ON COLUMN NADP_SEASON.MG IS \'Precipitation-weighted mean of
magnesium (Mg) concentration; ug/m\^3.\';

COMMENT ON COLUMN NADP_SEASON.K IS \'Precipitation-weighted mean of
potassium (K) concentration; ug/m\^3.\';

COMMENT ON COLUMN NADP_SEASON.NA IS \'Precipitation-weighted mean of
sodium (Na) concentrations; ug/m\^3.\';

COMMENT ON COLUMN NADP_SEASON.NH4 IS \'Precipitation-weighted mean of
ammonium (NH4) concentrations; ug/m\^3.\';

COMMENT ON COLUMN NADP_SEASON.NO3 IS \'Precipitation-weighted mean of
nitrate (NO3) concentrations; ug/m\^3.\';

COMMENT ON COLUMN NADP_SEASON.CL IS \'Precipitation-weighted mean of
chloride (Cl) concentrations; ug/m\^3.\';

COMMENT ON COLUMN NADP_SEASON.SO4 IS \'Precipitation-weighted mean of
sulfate (SO4) concentrations; ug/m\^3.\';

COMMENT ON COLUMN NADP_SEASON.PH IS \'Precipitation weighted mean of
hydrogen concentration, in pH units.\';

COMMENT ON COLUMN NADP_SEASON.CA_D IS \'Wet calcium (Ca) flux; kg/ha.\';

COMMENT ON COLUMN NADP_SEASON.MG_D IS \'Wet magnesium (Mg) flux;
kg/ha.\';

COMMENT ON COLUMN NADP_SEASON.K_D IS \'Wet potassium (K) flux; kg/ha.\';

COMMENT ON COLUMN NADP_SEASON.NA_D IS \'Wet sodium (Na) flux; kg/ha.\';

COMMENT ON COLUMN NADP_SEASON.NH4_D IS \'Wet ammonium (NH4) flux;
kg/ha.\';

COMMENT ON COLUMN NADP_SEASON.NO3_D IS \'Wet nitrate (NO3) flux;
kg/ha.\';

COMMENT ON COLUMN NADP_SEASON.INORG_N IS \'Inorganic nitrogen (N);
kg/ha.\';

COMMENT ON COLUMN NADP_SEASON.CL_D IS \'Wet chloride (Cl) flux;
kg/ha.\';

COMMENT ON COLUMN NADP_SEASON.SO4_D IS \'Wet sulfate (SO4) flux;
kg/ha.\';

COMMENT ON COLUMN NADP_SEASON.H IS \'Precipitation weighted mean of
hydrogen (H) concentration, in pH units; ug/m\^3.\';

COMMENT ON COLUMN NADP_SEASON.H_D IS \'Wet hydrogen (H) flux; kg/ha.\';

COMMENT ON COLUMN NADP_SEASON.H_FLD IS \'Hydrogen concentration in field
sample; ug/m\^3\';

COMMENT ON COLUMN NADP_SEASON.CONDUCTIVITY IS \'Precipitation-weighted
mean of conductivity; uS/cm.\';

COMMENT ON COLUMN NADP_SEASON.FIELD_PH IS \'Precipitation-weighted mean
of hydrogen concentration as measured in the field, in pH units.\';

COMMENT ON COLUMN NADP_SEASON.FIELD_CONDUCTIVITY IS
\'Precipitation-weighted mean of conductivity as measured in the field;
uS/cm.\';

COMMENT ON COLUMN NADP_SEASON.CATION_ANION_RATIO IS
\'Precipitation-weighted mean of equivalence ratio of cations to
anions.\';

COMMENT ON COLUMN NADP_SEASON.SAMPLE_VOLUME IS \'Volume of sample;
mL.\';

COMMENT ON COLUMN NADP_SEASON.PRECIP IS \'Precipitation; cm.\';

COMMENT ON COLUMN NADP_SEASON.PCT_PRECIP_FLD IS \'Percent of
precipitation represented by field samples\';

COMMENT ON COLUMN NADP_SEASON.VALID_LAB_SAMPLES IS \'Number of samples
used in calculating precipitation-weighted means from the laboratory.\';

COMMENT ON COLUMN NADP_SEASON.VALID_FIELD_SAMPLES IS \'Number of samples
used in calculating precipitation-weighted means from the field.\';

COMMENT ON COLUMN NADP_SEASON.DAYS IS \'Number of days included in the
summary period.\';

COMMENT ON COLUMN NADP_SEASON.PERIOD_START IS \'The beginning date of
the first sample of the summary period.\';

COMMENT ON COLUMN NADP_SEASON.PERIOD_END IS \'The ending date of the
last sample included in the summary period, in GMT.\';

COMMENT ON COLUMN NADP_SEASON.MEETS_CRITERIA IS \'Meets NADP\'\'s
completeness criteria. See
http://nadp.sws.uiuc.edu/documentation/notes-depo.html .\';

CREATE UNIQUE INDEX SYS_C0061152 ON NADP_SEASON

(SITE_ID, SEASON, YEAR)

NOLOGGING

NOPARALLEL;

\-- OZONE

CREATE MATERIALIZED VIEW OZONE

PARTITION BY RANGE (DATE_TIME)

(

PARTITION Y1987 VALUES LESS THAN (TO_DATE(\' 1988-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\'))

LOGGING

NOCOMPRESS,

PARTITION Y1988 VALUES LESS THAN (TO_DATE(\' 1989-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\'))

LOGGING

NOCOMPRESS,

PARTITION Y1989 VALUES LESS THAN (TO_DATE(\' 1990-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\'))

LOGGING

NOCOMPRESS,

PARTITION Y1990 VALUES LESS THAN (TO_DATE(\' 1991-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\'))

LOGGING

NOCOMPRESS,

PARTITION Y1991 VALUES LESS THAN (TO_DATE(\' 1992-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\'))

LOGGING

NOCOMPRESS,

PARTITION Y1992 VALUES LESS THAN (TO_DATE(\' 1993-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\'))

LOGGING

NOCOMPRESS,

PARTITION Y1993 VALUES LESS THAN (TO_DATE(\' 1994-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\'))

LOGGING

NOCOMPRESS,

PARTITION Y1994 VALUES LESS THAN (TO_DATE(\' 1995-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\'))

LOGGING

NOCOMPRESS,

PARTITION Y1995 VALUES LESS THAN (TO_DATE(\' 1996-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\'))

LOGGING

NOCOMPRESS,

PARTITION Y1996 VALUES LESS THAN (TO_DATE(\' 1997-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\'))

LOGGING

NOCOMPRESS,

PARTITION Y1997 VALUES LESS THAN (TO_DATE(\' 1998-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\'))

LOGGING

NOCOMPRESS,

PARTITION Y1998 VALUES LESS THAN (TO_DATE(\' 1999-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\'))

LOGGING

NOCOMPRESS,

PARTITION Y1999 VALUES LESS THAN (TO_DATE(\' 2000-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\'))

LOGGING

NOCOMPRESS,

PARTITION Y2000 VALUES LESS THAN (TO_DATE(\' 2001-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\'))

LOGGING

NOCOMPRESS,

PARTITION Y2001 VALUES LESS THAN (TO_DATE(\' 2002-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\'))

LOGGING

NOCOMPRESS,

PARTITION Y2002 VALUES LESS THAN (TO_DATE(\' 2003-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\'))

LOGGING

NOCOMPRESS,

PARTITION Y2003 VALUES LESS THAN (TO_DATE(\' 2004-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\'))

LOGGING

NOCOMPRESS,

PARTITION Y2004 VALUES LESS THAN (TO_DATE(\' 2005-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\'))

LOGGING

NOCOMPRESS,

PARTITION Y2005 VALUES LESS THAN (TO_DATE(\' 2006-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\'))

LOGGING

NOCOMPRESS,

PARTITION Y2006 VALUES LESS THAN (TO_DATE(\' 2007-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\'))

LOGGING

NOCOMPRESS,

PARTITION Y2007 VALUES LESS THAN (TO_DATE(\' 2008-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\'))

LOGGING

NOCOMPRESS,

PARTITION Y2008 VALUES LESS THAN (TO_DATE(\' 2009-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\'))

LOGGING

NOCOMPRESS,

PARTITION Y2009 VALUES LESS THAN (TO_DATE(\' 2010-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\'))

LOGGING

NOCOMPRESS,

PARTITION Y2010 VALUES LESS THAN (TO_DATE(\' 2011-01-01 00:00:00\',
\'SYYYY-MM-DD HH24:MI:SS\', \'NLS_CALENDAR=GREGORIAN\'))

LOGGING

NOCOMPRESS,

PARTITION OTHER VALUES LESS THAN (MAXVALUE)

LOGGING

NOCOMPRESS

)

NOCACHE

NOCOMPRESS

NOPARALLEL

BUILD IMMEDIATE

REFRESH FORCE ON DEMAND

WITH PRIMARY KEY

AS

SELECT site_id, date_time,

TO_NUMBER( CASE WHEN ozone_f IN
(\'B\',\'C\',\'D\',\'F\',\'I\',\'M\',\'P\')

THEN NULL

ELSE

DECODE(SIGN(OZONE),null,null,-1,0,TRUNC(ozone))

END) ozone

, ozone_f, qa_code, update_date

FROM castnet.metdata;

COMMENT ON MATERIALIZED VIEW OZONE IS \'Hourly ozone concentration
data.\';

COMMENT ON COLUMN OZONE.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN OZONE.DATE_TIME IS \'Date and time sample collection
began, Local Standard Time; mm/dd/yyyy hh:mm:ss.\';

COMMENT ON COLUMN OZONE.OZONE IS \'Ozone concentration; ppb.\';

COMMENT ON COLUMN OZONE.OZONE_F IS \'Data quality code for OZONE.\';

COMMENT ON COLUMN OZONE.QA_CODE IS \'Quality assurance level of the
record. (see QAPP for definition of quality assurance levels)\';

COMMENT ON COLUMN OZONE.UPDATE_DATE IS \'Date and time of last record
update\';

CREATE UNIQUE INDEX PK_METDATA1 ON OZONE

(SITE_ID, DATE_TIME)

LOGGING

NOPARALLEL;

\-- OZONE_8HR_AVG

CREATE MATERIALIZED VIEW OZONE_8HR_AVG

NOCACHE

LOGGING

NOCOMPRESS

PARALLEL ( DEGREE DEFAULT INSTANCES DEFAULT )

BUILD IMMEDIATE

REFRESH FORCE ON DEMAND

WITH PRIMARY KEY

AS

SELECT site_id, year, date_time

, CASE WHEN cnt_8hr \>= 6 THEN ozone_8hr_avg

WHEN ozone_8hr_avg_sub \> 80 THEN ozone_8hr_avg_sub

ELSE NULL

END ozone_8hr_avg

, cnt_8hr

, DECODE(SIGN(cnt_8hr-6),-1,\'I\',\'V\') ozone_8hr_f

, update_date

FROM (

select site_id, year, date_time

, COUNT(ozone) OVER (partition by site_id, year order by date_time ROWS
BETWEEN CURRENT ROW AND 7 FOLLOWING) AS cnt_8hr

, TRUNC(AVG(ozone) OVER (partition by site_id, year order by date_time
ROWS BETWEEN CURRENT ROW AND 7 FOLLOWING)) AS ozone_8hr_avg

, TRUNC(AVG(ozone_sub) OVER (partition by site_id, year order by
date_time ROWS BETWEEN CURRENT ROW AND 7 FOLLOWING)) AS
ozone_8hr_avg_sub

, MAX(update_date) OVER (partition by site_id, year order by date_time
ROWS BETWEEN CURRENT ROW AND 7 FOLLOWING) AS update_date

FROM (

SELECT site_id, EXTRACT(year FROM date_time) year, date_time

, ozone

, CASE WHEN ozone is NULL

THEN 10

ELSE

TO_NUMBER(DECODE(SIGN(ozone),null,null,-1,0,TRUNC(ozone)))

END ozone_sub

, update_date

FROM castnet.ozone

)

);

COMMENT ON MATERIALIZED VIEW OZONE_8HR_AVG IS \'Hourly rolling 8-hour
average ambient concentration, calculated according to 40CFR Part58.\';

COMMENT ON COLUMN OZONE_8HR_AVG.SITE_ID IS \'Site identification
code.\';

COMMENT ON COLUMN OZONE_8HR_AVG.YEAR IS \'Year of measurement, used in
annual aggregations and statistics.\';

COMMENT ON COLUMN OZONE_8HR_AVG.DATE_TIME IS \'Date and time sample
collection began, Local Standard Time; mm/dd/yyyy hh:mm:ss.\';

COMMENT ON COLUMN OZONE_8HR_AVG.OZONE_8HR_AVG IS \'Rolling eight hour
average for the time period beginning with the date and time of the
record; ppb.\';

COMMENT ON COLUMN OZONE_8HR_AVG.CNT_8HR IS \'Number of valid hours in
the 8-hour period.\';

COMMENT ON COLUMN OZONE_8HR_AVG.OZONE_8HR_F IS \'Data quality code for
OZONE_8HR_F.\';

COMMENT ON COLUMN OZONE_8HR_AVG.UPDATE_DATE IS \'Last date record
updated\';

CREATE INDEX IDX_OZONE8HRAVG ON OZONE_8HR_AVG

(SITE_ID, DATE_TIME)

LOGGING

NOPARALLEL;

CREATE MATERIALIZED VIEW OZONE_8HR_DMAX

NOCACHE

LOGGING

NOCOMPRESS

NOPARALLEL

BUILD IMMEDIATE

REFRESH FORCE ON DEMAND

WITH PRIMARY KEY

AS

SELECT site_id, year, ddate, ozone_8hr_daily_max

, RANK() OVER (PARTITION BY site_id, year ORDER BY ozone_8hr_daily_max
DESC) rank

, update_date

FROM (

SELECT site_id

, to_char(ddate,\'yyyy\') year

, ddate

, CASE WHEN cnt \< 18 AND ozone_8hr_daily_max \< 80

THEN null

ELSE ozone_8hr_daily_max

END ozone_8hr_daily_max

, update_date

FROM (

SELECT site_id, state, state_name,

to_date(coalesce(mmdd_begin,\'05/01\')\|\|EXTRACT(year FROM
date_time),\'mm/ddyyyy\') as mmdd_begin,

to_date(coalesce(mmdd_end,\'09/30\')\|\|EXTRACT(year FROM
date_time),\'mm/ddyyyy\') as mmdd_end

, TRUNC(date_time) ddate

, MAX(ozone_8hr_avg) ozone_8hr_daily_max

, COUNT(ozone_8hr_avg) cnt

, MAX(update_date) update_date

FROM castnet.ozone_8hr_avg

LEFT JOIN (select site_id, state from castnet.site)

USING(site_id)

LEFT JOIN (select state, state_name, state_group, mmdd_begin, mmdd_end
from aqs.ozone_season where state_group=1)

using(state)

WHERE date_time BETWEEN

TO_DATE( coalesce(mmdd_begin,\'05/01\')\|\|EXTRACT(year FROM
date_time),\'mm/ddyyyy\') AND

TO_DATE( coalesce(mmdd_end,\'09/30\')\|\|EXTRACT(year FROM
date_time),\'mm/ddyyyy\')

GROUP BY site_id, state, state_name,

to_date(coalesce(mmdd_begin,\'05/01\')\|\|EXTRACT(year FROM
date_time),\'mm/ddyyyy\'),

to_date(coalesce(mmdd_end,\'09/30\')\|\|EXTRACT(year FROM
date_time),\'mm/ddyyyy\'),

TRUNC(date_time)

)

)

WHERE ozone_8hr_daily_max IS NOT NULL;

COMMENT ON MATERIALIZED VIEW OZONE_8HR_DMAX IS \'Daily maximum of
rolling 8-hour average ambient concentration, calculated according to
40CFR Part58.\';

COMMENT ON COLUMN OZONE_8HR_DMAX.SITE_ID IS \'Site identification
code.\';

COMMENT ON COLUMN OZONE_8HR_DMAX.YEAR IS \'Year of measurement.\';

COMMENT ON COLUMN OZONE_8HR_DMAX.DDATE IS \'Date for which
OZONE_8HR_DAILY_MAX was computed.\';

COMMENT ON COLUMN OZONE_8HR_DMAX.OZONE_8HR_DAILY_MAX IS \'Daily maximum
value of the 8-hour rolling average, calculated according to 40CFR Part
58; in ppb.\';

COMMENT ON COLUMN OZONE_8HR_DMAX.RANK IS \'Annual rank of the 8-hour
daily max.\';

COMMENT ON COLUMN OZONE_8HR_DMAX.UPDATE_DATE IS \'Last date record
updated\';

CREATE MATERIALIZED VIEW OZONE_W126

NOCACHE

LOGGING

NOCOMPRESS

NOPARALLEL

BUILD IMMEDIATE

REFRESH FORCE ON DEMAND

WITH PRIMARY KEY

AS

SELECT \* FROM (

/\*\*\* Calculate rolling 3-month average where month has \> 75%
completeness \*\*\*/

SELECT site_id, year, month

, count(w126) OVER

(PARTITION BY site_id, year

ORDER BY month

ROWS BETWEEN CURRENT ROW AND 2 FOLLOWING) valid_months

, sum(w126) OVER

(PARTITION BY site_id, year

ORDER BY month

ROWS BETWEEN CURRENT ROW AND 2 FOLLOWING) w126

FROM ozone_w126_month

WHERE pct_valid_hours \>= 75

)

where VALID_MONTHS =3;

COMMENT ON MATERIALIZED VIEW OZONE_W126 IS \'Rolling sum of 3-month
12-hour W126 statistic for ozone; use maximum 3-month value for annual
statistic.\';

COMMENT ON COLUMN OZONE_W126.SITE_ID IS \'Site identification code.\';

COMMENT ON COLUMN OZONE_W126.YEAR IS \'Year of measurement.\';

COMMENT ON COLUMN OZONE_W126.MONTH IS \'Begining month of 3-month
rolling sum.\';

COMMENT ON COLUMN OZONE_W126.VALID_MONTHS IS \'Number of valid months in
3-month rolling sum.\';

COMMENT ON COLUMN OZONE_W126.W126 IS \'Rolling 3-month 12-hour sum of
W126; ppm-hours.\';

CREATE MATERIALIZED VIEW OZONE_W126_MONTH

NOCACHE

LOGGING

NOCOMPRESS

NOPARALLEL

BUILD IMMEDIATE

REFRESH FORCE ON DEMAND

WITH PRIMARY KEY

AS

SELECT site_id, year, month

, sum(ozone_w126) w126_unadj

, round(100\*count(ozone) / MAX(days_in_month\*12),1) pct_valid_hours

, sum(ozone_w126) / (count(ozone) / MAX(days_in_month\*12)) w126

from (

/\*\*\* Calculate hourly wozone statistic \*\*\*/

SELECT a.\*

, ozone\*(1/(1+(4403\*exp(-(126\*ozone))))) ozone_w126

FROM (

/\*\*\* Get valid ozone in ppm during daylight hours during ozone season
\*\*\*/

SELECT site_id

, DATE_TIME

, CASE WHEN ozone_f IS NULL

THEN ozone/1000

WHEN ozone_f IN (SELECT code FROM ozone_f_cd WHERE valid=\'V\')

THEN ozone/1000

ELSE NULL

END ozone

, EXTRACT(YEAR FROM date_time) year

, EXTRACT(MONTH FROM date_time) month

, (TRUNC(date_time,\'MONTH\')+ INTERVAL \'1\'
MONTH)-TRUNC(date_time,\'MONTH\') days_in_month

, TO_NUMBER( TO_CHAR(date_time,\'HH24\')) hour

FROM castnet.ozone

where EXTRACT(MONTH FROM date_time) BETWEEN 5 AND 9

and TO_CHAR(date_time,\'HH24\') BETWEEN 8 AND 19

) a

)

group by site_id, year, month;

COMMENT ON MATERIALIZED VIEW OZONE_W126_MONTH IS \'Monthly sum of
12-hour W126 statistic for ozone.\';

COMMENT ON COLUMN OZONE_W126_MONTH.SITE_ID IS \'Site identification
code.\';

COMMENT ON COLUMN OZONE_W126_MONTH.YEAR IS \'Year of measurement.\';

COMMENT ON COLUMN OZONE_W126_MONTH.MONTH IS \'Month of measurement\';

COMMENT ON COLUMN OZONE_W126_MONTH.W126_UNADJ IS \'Sum of 12-hour W126
statistic, not adjusted for missing data; ppm-hours.\';

COMMENT ON COLUMN OZONE_W126_MONTH.PCT_VALID_HOURS IS \'Percent
completeness of hourly values.\';

COMMENT ON COLUMN OZONE_W126_MONTH.W126 IS \'Sum of 12-hour W126
statistic, adjusted for missing data; ppm-hours.\';

CREATE MATERIALIZED VIEW TOTAL_DEPOSITION

NOCACHE

LOGGING

NOCOMPRESS

NOPARALLEL

BUILD IMMEDIATE

REFRESH FORCE ON DEMAND

WITH PRIMARY KEY

AS

SELECT d.site_id, d.YEAR, w.precip,

ROUND (w.so4_d \* 32 / 96, 2) AS so4_wet_s,

ROUND (d.so2_flux \* 32 / 64, 2) AS so2_dry_s,

ROUND (d.so4_flux \* 32 / 96, 2) AS so4_dry_s,

ROUND (w.so4_d \* 32 / 96, 2) AS wet_s,

ROUND (d.so2_flux \* 32 / 64 + d.so4_flux \* 32 / 96, 2) AS dry_s,

ROUND (w.so4_d \* 32 / 96 + d.so2_flux \* 32 / 64 + d.so4_flux \* 32 /
96, 2) AS total_s,

ROUND (w.no3_d \* 14 / 62, 2) AS no3_wet_n,

ROUND (w.nh4_d \* 14 / 18, 2) AS nh4_wet_n,

ROUND (d.hno3_flux \* 14 / 63, 2) AS hno3_dry_n,

ROUND (d.no3_flux \* 14 / 62, 2) AS no3_dry_n,

ROUND (d.nh4_flux \* 14 / 18, 2) AS nh4_dry_n,

ROUND (w.no3_d \* 14 / 62 + w.nh4_d \* 14 / 18, 2) AS wet_n,

ROUND (d.hno3_flux \* 14 / 63 + d.no3_flux \* 14 / 62 + d.nh4_flux \* 14
/ 18, 2) AS dry_n,

ROUND (w.no3_d \* 14 / 62 + w.nh4_d \* 14 / 18 + d.hno3_flux \* 14 / 63

\+ d.no3_flux \* 14 / 62 + d.nh4_flux \* 14 / 18, 2) AS total_n,

sysdate as update_date

FROM (SELECT site_id, YEAR,

CASE

WHEN so2_flux_pct \>= 69

THEN so2_flux

ELSE NULL

END AS so2_flux,

CASE

WHEN so4_flux_pct \>= 69

THEN so4_flux

ELSE NULL

END AS so4_flux,

CASE

WHEN hno3_flux_pct \>= 69

THEN hno3_flux

ELSE NULL

END AS hno3_flux,

CASE

WHEN no3_flux_pct \>= 69

THEN no3_flux

ELSE NULL

END AS no3_flux,

CASE

WHEN nh4_flux_pct \>= 69

THEN nh4_flux

ELSE NULL

END AS nh4_flux

FROM castnet.model_output_annual) d, castnet.wetdep w

WHERE d.site_id = w.site_id(+) AND d.YEAR = w.YEAR(+);

COMMENT ON MATERIALIZED VIEW TOTAL_DEPOSITION IS \'Total annual
deposition at CASTNET sites using MODEL_OUTPUT_ANNUAL as the source of
dry deposition and WETDEP (interpolated NADP/NTN) as the source of wet
deposition.\';

COMMENT ON COLUMN TOTAL_DEPOSITION.SITE_ID IS \'Site identification
code.\';

COMMENT ON COLUMN TOTAL_DEPOSITION.YEAR IS \'Year of data, using
standard Tuesday to Tuesday weeks.\';

COMMENT ON COLUMN TOTAL_DEPOSITION.PRECIP IS \'Precipitation; cm.\';

COMMENT ON COLUMN TOTAL_DEPOSITION.SO4_WET_S IS \'Wet sulfate
deposition; kg-S/ha.\';

COMMENT ON COLUMN TOTAL_DEPOSITION.SO2_DRY_S IS \'Dry sulfur dioxide
deposition; kg-S/ha\';

COMMENT ON COLUMN TOTAL_DEPOSITION.SO4_DRY_S IS \'Dry sulfate
deposition; kg-S/ha\';

COMMENT ON COLUMN TOTAL_DEPOSITION.WET_S IS \'Total wet sulfur
deposition; kg-S/ha.\';

COMMENT ON COLUMN TOTAL_DEPOSITION.DRY_S IS \'Total dry sulfur
deposition; kg-S/ha\';

COMMENT ON COLUMN TOTAL_DEPOSITION.TOTAL_S IS \'Total sulfur deposition;
kg-S/ha.\';

COMMENT ON COLUMN TOTAL_DEPOSITION.NO3_WET_N IS \'Wet nitrate
deposition; kg-N/ha.\';

COMMENT ON COLUMN TOTAL_DEPOSITION.NH4_WET_N IS \'Wet ammonium
deposition; kg-N/ha.\';

COMMENT ON COLUMN TOTAL_DEPOSITION.HNO3_DRY_N IS \'Dry nitric acid
deposition; kg-N/ha\';

COMMENT ON COLUMN TOTAL_DEPOSITION.NO3_DRY_N IS \'Dry particulate
nitrate deposition; kg-N/ha.\';

COMMENT ON COLUMN TOTAL_DEPOSITION.NH4_DRY_N IS \'Dry particulate
ammonium deposition; kg-N/ha.\';

COMMENT ON COLUMN TOTAL_DEPOSITION.WET_N IS \'Total wet nitrogen
deposition; kg-N/ha.\';

COMMENT ON COLUMN TOTAL_DEPOSITION.DRY_N IS \'Total dry nitrogen
deposition; kg-N/ha\';

COMMENT ON COLUMN TOTAL_DEPOSITION.TOTAL_N IS \'Total nitrogen
deposition; kg-N/ha.\';

COMMENT ON COLUMN TOTAL_DEPOSITION.UPDATE_DATE IS \'Date and time of
last record update.\';

CREATE UNIQUE INDEX PK_TOTAL_DEPOSITION ON TOTAL_DEPOSITION

(SITE_ID, YEAR)

NOLOGGING

NOPARALLEL;

CREATE MATERIALIZED VIEW WET_CONCENTRATION_ANNUAL

NOCACHE

LOGGING

NOCOMPRESS

NOPARALLEL

BUILD IMMEDIATE

REFRESH FORCE ON DEMAND

WITH PRIMARY KEY

AS

SELECT site_id, \'Annual\' PERIOD, YEAR,p.period_days,

ROUND ( 100

\* SUM (DECODE (valcode, \'\', 0, ROUND (dateoff - dateon)))

/ p.period_days

) AS criteria1,

ROUND ( 100

\* SUM (DECODE (sub_ppt, NULL, 0, ROUND (dateoff - dateon)))

/ p.period_days

) AS criteria2,

ROUND (100 \* SUM (DECODE (valcode, \'\', 0, sub_ppt))

/ SUM (sub_ppt)

) AS criteria3,

ROUND ( 100

\* SUM (DECODE (valcode, \'\', 0, svol \* (10 / 678.9)))

/ NULLIF (SUM (DECODE (valcode, \'\', 0, sub_ppt)), 0)

) AS criteria4,

ROUND ( SUM (DECODE (INSTR (valcode, \'w\'),

1, ca \* sub_ppt,

NULL

))

/ SUM (DECODE (INSTR (valcode, \'w\'), 1, sub_ppt, NULL)),

3

) \"CA\",

ROUND ( SUM (DECODE (INSTR (valcode, \'w\'),

1, mg \* sub_ppt,

NULL

))

/ SUM (DECODE (INSTR (valcode, \'w\'), 1, sub_ppt, NULL)),

3

) \"MG\",

ROUND ( SUM (DECODE (INSTR (valcode, \'w\'), 1, k \* sub_ppt, NULL))

/ SUM (DECODE (INSTR (valcode, \'w\'), 1, sub_ppt, NULL)),

3

) \"K\",

ROUND ( SUM (DECODE (INSTR (valcode, \'w\'),

1, na \* sub_ppt,

NULL

))

/ SUM (DECODE (INSTR (valcode, \'w\'), 1, sub_ppt, NULL)),

3

) \"NA\",

ROUND ( SUM (DECODE (INSTR (valcode, \'w\'),

1, nh4 \* sub_ppt,

NULL

)

)

/ SUM (DECODE (INSTR (valcode, \'w\'), 1, sub_ppt, NULL)),

3

) \"NH4\",

ROUND ( SUM (DECODE (INSTR (valcode, \'w\'),

1, no3 \* sub_ppt,

NULL

)

)

/ SUM (DECODE (INSTR (valcode, \'w\'), 1, sub_ppt, NULL)),

3

) \"NO3\",

ROUND ( SUM (DECODE (INSTR (valcode, \'w\'),

1, cl \* sub_ppt,

NULL

))

/ SUM (DECODE (INSTR (valcode, \'w\'), 1, sub_ppt, NULL)),

3

) \"CL\",

ROUND ( SUM (DECODE (INSTR (valcode, \'w\'),

1, so4 \* sub_ppt,

NULL

)

)

/ SUM (DECODE (INSTR (valcode, \'w\'), 1, sub_ppt, NULL)),

3

) \"SO4\",

ROUND (-LOG (10,

( SUM (DECODE (INSTR (valcode, \'w\'),

1, POWER (10, -ph) \* 1000 \* sub_ppt,

NULL

)

)

/ SUM (DECODE (INSTR (valcode, \'w\'),

1, sub_ppt,

NULL

)

)

)

/ 1000

),

2

) \"PH\",

ROUND ( SUM (DECODE (INSTR (valcode, \'w\'),

1, cond \* sub_ppt,

NULL

)

)

/ SUM (DECODE (INSTR (valcode, \'w\'), 1, sub_ppt, NULL)),

3

) \"CONDUCTIVITY\",

ROUND ( SUM (DECODE (INSTR (valcode, \'w\'),

1, ( ca \* 49.90

\+ mg \* 82.26

\+ k \* 25.57

\+ na \* 43.50

\+ nh4 \* 55.44

\+ POWER (10, -ph) \* 1000000

)

\* sub_ppt,

NULL

)

)

/ SUM (DECODE (INSTR (valcode, \'w\'),

1, (so4 \* 20.83 + no3 \* 16.13 + cl \* 28.21

)

\* sub_ppt,

NULL

)

),

3

) \"CATION_ANION_RATIO\",

SUM (DECODE (valcode, \'\', 0, svol)) \"SAMPLE_VOLUME\",

ROUND (SUM (sub_ppt) / 10, 2) \"PRECIP\",

COUNT (DECODE (INSTR (valcode, \'w\'), 1, 1, NULL)) \"VALID_SAMPLES\",

p.period_days \"DAYS\", MIN (dateon) \"PERIOD_START\",

MAX (dateoff) \"PERIOD_END\"

FROM wet_concentration w,

(select year, trunc(min(dateon)) begin_date, trunc(max(dateoff))
end_date, sum(weeks\*7) period_days from mlm_quarter group by year) p

WHERE dateon \>= begin_date

AND dateoff \<= end_date

GROUP BY site_id, YEAR, p.period_days;

COMMENT ON MATERIALIZED VIEW WET_CONCENTRATION_ANNUAL IS \'Snapshot of
wet concentrations from CASTNET wet deposition sites in the form of
NADP/NTN tables. All CASTNET wet depostion sites were discontinued in
1999.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.SITE_ID IS \'Site
identification code.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.PERIOD IS \'Period of
aggregation.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.YEAR IS \'Year of data, using
standard Tuesday to Tuesday weeks.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.PERIOD_DAYS IS \'Number of
days in the summary period.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.CRITERIA1 IS \'Percentage of
the summary period for which there are valid samples.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.CRITERIA2 IS \'Percentage of
the summary period for which precipitation amounts are available either
from the rain gage or from the sample volume.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.CRITERIA3 IS \'Percentage of
the total measured precipitation associated with valid samples.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.CRITERIA4 IS \'Collection
efficiency, calculated from the sum of the sample bucket depths (in
centimeters) divided by the sum of the rain gage amounts (in
centimeters) for all valid samples where both values are available.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.CA IS
\'Precipitation-weighted mean of calcium (Ca) concentration; ug/m\^3.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.MG IS
\'Precipitation-weighted mean of magnesium (Mg) concentration;
ug/m\^3.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.K IS \'Precipitation-weighted
mean of potassium (K) concentration; ug/m\^3.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.NA IS
\'Precipitation-weighted mean of sodium (Na) concentrations; ug/m\^3.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.NH4 IS
\'Precipitation-weighted mean of ammonium (NH4) concentrations;
ug/m\^3.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.NO3 IS
\'Precipitation-weighted mean of nitrate (NO3) concentrations;
ug/m\^3.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.CL IS
\'Precipitation-weighted mean of chloride (Cl) concentrations;
ug/m\^3.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.SO4 IS
\'Precipitation-weighted mean of sulfate (SO4) concentrations;
ug/m\^3.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.PH IS \'Precipitation
weighted mean of hydrogen (H) concentration, in pH units; ug/m\^3.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.CONDUCTIVITY IS
\'Precipitation-weighted mean of conductivity; uS/cm.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.CATION_ANION_RATIO IS
\'Precipitation-weighted mean of equivalence ratio of cations to
anions.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.SAMPLE_VOLUME IS \'Volume of
sample; mL.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.PRECIP IS \'Precipitation;
mm/hr.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.VALID_SAMPLES IS \'Number of
valid samples in the summary period.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.DAYS IS \'Number of days
included in the summary period.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.PERIOD_START IS \'The
beginning date of the first sample of the summary period.\';

COMMENT ON COLUMN WET_CONCENTRATION_ANNUAL.PERIOD_END IS \'The ending
date of the last sample included in the summary period, in GMT.\';