IHFS DATABASE (VERSION OB-4  BASELINE)
Relative to IHFS Database Version OB-3 Baseline
(REVISED: 06/18/2004)

Unmodified Tables = 169
Deleted Tables = 32
New Tables = 4
Modified Tables = 10
Table Count = 151

Unmodified Views = 17
Deleted Views = 4
New Views = 0
Modified Views = 3
View Count = 16

Unmodified Stored Procedures = 10
Deleted Stored Procedures = 0
New Stored Procedures = 0
Modified Stored Procedures = 2
Procedure Count = 12

Unmodified Triggers = 6
Deleted Triggers = 0
New Triggers = 0
Modified Triggers = 0
Trigger Count = 6
 


DATABASE TABLES

  • AdjustFactor
  • Admin
  • AgencyInvolved (Deleted Table)
  • Dam Catalogue table no longer used
  • Agricultural
  • AlertAlarmVal
  • Benchmark
  • City
  • ColorName
  • ColorOverlay
  • ColorValue
  • CommentValue
  • Contacts (Modified Table)
  • Added column "email" (char(60));
  • ContingencyValue
  • CoopComms
  • CoopRecip
  • CoopSpons
  • Counties
  • CountyTransmit
  • Countynum (Modified Table)
  • removed foreign key referencing RiverStat;  added foreign key (lid) references Location;
  • Crest (Modified Table)
  • Renamed column "old" to "olddatum"; old is a reserved word for PostgreSQL.
  • Modified prelim field's value.  All "X" set to "P" for preliminary; all " " set to "O" for official.  Then the max stage has its prelim value set to "R" for record.  This change was actually implemented for OB3.3.
  • CurPrecip
  • DPAAdapt (Modified Table)
  • Added columns "beam_width" (smallfloat), "blockage_thresh" (smallfloat), "clutter_thresh" (smallfloat), "weight_thresh" (smallfloat), "hybrid_scan_thresh" (smallfloat), "low_reflect_thresh" (smallfloat), "detect_reflect_thr" (smallfloat), "detect_area_thr" (smallfloat), "detect_time_thresh" (smallfloat), "exclusion_zones" (smallfloat)
  • DPARadar (Modified Table)
  • Added columns "block_bins_reject" (int), "clutter_bins_rej" (int), "bins_smoothed" (int), "scan_bins_filled" (smallfloat), "high_elev_angle" (smallfloat), "scan_rain_area" (smallfloat)
  • DamBreak (Deleted Table)
  • Dam Catalogue table no longer used
  • DamBrkFcstPoint (Deleted Table)
  • Dam Catalogue table no longer used
  • DamBrkImpact (Deleted Table)
  • Dam Catalogue table no longer used
  • DamBrkModelType (Deleted Table)
  • Dam Catalogue table no longer used
  • DamTypes
  • DataLimits
  • Datum
  • Dcp
  • DcpOwner
  • Descrip
  • Discharge
  • Eligzon
  • Evaporation
  • FcstDischarge
  • FcstHeight
  • FcstOther
  • FcstPrecip
  • FcstTemperature
  • FishCount
  • Flood
  • FloodTs
  • Floodcat
  • Floodstmt
  • FpPrevProd (Modified Table)
  • Added field office_id (char(6)) to indicate the office which is responsible for the forecast point forecast represented in the product issuance.  Note that this change was actually implemented with OB3.3.
  • Gage
  • GageMaint
  • GageOwner
  • GageRadarLoc
  • GageType
  • GateDam
  • GeoArea
  • GeoLine
  • Ground
  • Height
  • Hsa
  • HvAbsDesiredProd
  • HvRelDesiredProd
  • Ice
  • IngestFilter
  • InvolvementType (Deleted Table)
  • Dam Catalogue table no longer used
  • Lake
  • LatestBiasLong (Deleted Table)
  • Stage2 table no longer used
  • LatestBiasShort (Deleted Table)
  • Stage2 table no longer used
  • LatestObsValue
  • Lightning
  • LineSegs
  • LocDataLimits
  • LocExtAgency
  • LocImage
  • Location
  • Lowwater
  • Moisture
  • MonthlyValues (New Table)
  • table contains columns "lid" (char(8)), "pe" (char(2)), "dur" (smallint), "ts" (char(2)), "extremum" (char(1)), "adjustment" (char(1)), "postingtime" (datetime year to sec), "jan_value" (float), "feb_value" (float), "mar_value" (float), "apr_value" (float), "may_value" (float), "jun_value" (float), "jul_value" (float), "aug_value" (float), "sep_value" (float), "oct_value" (float), "nov_value" (float), "dec_value" (float); used by SiteSpecific application;
  • NIDDamType (Deleted Table)
  • Dam Catalogue table no longer used
  • NIDFedAgency (Deleted Table)
  • Dam Catalogue table no longer used
  • NIDHazard (Deleted Table)
  • Dam Catalogue table no longer used
  • NIDOwnerType (Deleted Table)
  • Dam Catalogue table no longer used
  • NIDPlanCode (Deleted Table)
  • Dam Catalogu table no longer used
  • NIDPurpose (Deleted Table)
  • Dam Catalogue table no longer used
  • NIDSpillwayType (Deleted Table)
  • Dam Catalogue table no longer used
  • NWRTransmitter
  • NatCounty (Deleted Table)
  • Dam Catalogue table no longer used
  • NatDamAdmin (Deleted Table)
  • Dam Catalogue table no longer used
  • NatDamLocation (Deleted Table)
  • Dam Catalogue table no longer used
  • NatRfc (Deleted Table)
  • Dam Catalogue table no longer used
  • NatState (Deleted Table)
  • Dam Catalogue table no longer used
  • NatWfo (Deleted Table)
  • Dam Catalogue table no longer used
  • NationalDam (Deleted Table)
  • Dam Catalogue table no longer used
  • Network
  • OFSDataTrans
  • OFSStnTrans
  • Observer (Modified Table)
  • Added column "email" (char(60));
  • PairedValue
  • PerfLog
  • PointDataPresets
  • Power
  • Precip
  • Pressure
  • ProcPrecip
  • ProcValue
  • ProductLink
  • Proximity
  • PseudoGageRadarVal (Deleted table)
  • Stage2/Stage3 table no longer used
  • PseudoGageVal
  • Pub
  • PurgeDynData (Modified Table)
  • no structural change; added record for new SacSmaState table; removed records for LatestBiasLong, LatestBiasShort, Stage2Result, RWVerif and PseudoGageRadarVal tables;
  • PurgeProduct
  • RWBiasDyn
  • RWBiasStat
  • RWParams
  • RWPrefs
  • RWRadarResult
  • RWResult
  • RWVerif (Deleted Table)
  • unused table
  • RadarLoc
  • RadarResp
  • Radiation
  • Rating
  • RatingShift
  • Refer
  • RejectedData
  • ResOwner
  • Rescap
  • Reservoir
  • Rfc
  • RiverStatus
  • Riverstat
  • RpfFcstGroup
  • RpfFcstPoint (Modified Table)
  • Added columns "primary_back" (char(3)) and "secondary_back" (char(3)).  Note that this changes was actually implemented with OB3.3.
  • RpfParams
  • S2BiasCalcParams (Deleted Table)
  • Stage2 table no longer used
  • S2GageRadarVal
  • S2GeneralParams (Deleted Table)
  • Stage2 table no longer used
  • S2ggGridParams (Deleted Table)
  • Stage2 table no longer used
  • S2mlGridParams (Deleted Table)
  • Stage2 table no longer used
  • S3GridManip
  • S3PostAnalParams
  • S3PostAnalPrefs
  • SacSmaParams (New Table)
  • table contains columns "basin_id" (char (8)), "source" (char (20)), "validtime" (datetime year to sec), "postingtime" (datetime year to sec), "uztwm" (float), "uzfwm" (float), "uzk" (float), "pctim" (float), "adimp" (float), "riva" (float), "zperc" (float),  "rexp" (float), "lztwm" (float), "lzfsm" (float), "lzfpm" (float), "lzsk" (float), "lzpk" (float), "pfree" (float), "rserv" (float), "side" (float), "peadj" (float), "pxadj" (float), "efc" (float);  each record contains one set of parameters for the Sacramento Soil Moisture Accounting Model for a particular location and time; used by SiteSpecific application;
  • SacSmaState (New Table)
  • table contains columns "basin_id" (char (8)), "source" (char (20)), "validtime" (datetime year to sec), "basistime" (datetime year to sec), "postingtime" (datetime year to sec), "uztwc" (float), "uzfwc" (float), "lztwc" (float), "lzfsc" (float), "lzfpc" (float), "adimc" (float); each record contains one set of state (carryover) variables for the Sacramento Soil Moisture Accounting Model for a particular location and time; used by SiteSpecific application;
  • ShefDur
  • ShefEx
  • ShefPETrans
  • ShefPe
  • ShefProb
  • ShefQc
  • ShefTs
  • Snow
  • SSHPConfig (New Table)
  • table contains columns "lid" (char(8)), "basin_id" (char(8)), "postingtime" (datetime year to sec), "model_pref" (char(20)), "auto_process" (char(1)), "source_pref" (char(20)), "use_static_evap" (char(1)); used by SiteSpecific application;
  • Stage2Result (Deleted Table)
  • Stage2 table no longer used
  • Stage3Params (Deleted Table)
  • Stage3 table no longer used
  • Stage3Prefs (Deleted Table)
  • Stage3 table no longer used
  • Stage3Result
  • State
  • StnClass
  • Telem
  • TelmOwner
  • TelmPayor
  • TelmType
  • Temperature
  • TextProduct
  • TimeZone
  • UnitGraph
  • UnkStn
  • UnkStnValue
  • UserPrefs
  • VTECaction
  • VTECcause
  • VTECevent
  • VTECphenom
  • VTECrecord
  • VTECsever
  • VTECsignif
  • WaterQuality
  • Weather
  • Wfo
  • WfoDamInterest (Deleted Table)
  • Dam Catalogue table no longer used
  • Wind
  • YUnique
  • Zonenum (Modified Table)
  • removed foreign key referencing RiverStat; added foreign key (lid) references Location;

  • DATABASE VIEWS

  • AgencyOfficeUnique
  • CountyInfo
  • DamCounty (Deleted View)
  • Dam Catalogue view no longer used
  • DamRiver (Deleted View)
  • Dam Catalogue view no longer used
  • DamSummary (Deleted View)
  • Dam Catalogue view no longer used
  • DownStream
  • FpInfo (Modified View)
  • Added columns primary_back and secondary_back from RpfFcstPoint table.  Note that this changes was actually implemented with OB3.3.
  • HvStation
  • HwStages
  • LocClass
  • LocTransmit
  • LocView (Modified View)
  • Added hsa field to select list;
  • LocWfo
  • NatDamInfo (Deleted View)
  • Dam Catalogue view no longer used
  • ParamName
  • PrevProd (Modified View)
  • Modified where clause associated with view to include all products that are not O, F, or C (observed, forecast, contingency).  Note that this changes was actually implemented with OB3.3.
  • SigStages
  • StatProf
  • StationList
  • ZoneInfo

  • DATABASE PROCEDURES

  • delete_location (Modified Procedure)
  • removed RWVerif table from list of tables;
  • delete_radar (Modified Procedure)
  • removed PseudoGageRadarVal, Stage2Result, LatestBiasLong, LatestBiasShort, S2BiasCalcParams, S2GeneralParams, S2ggGridParams and S2mlGridParams tables from list of tables;
  • delete_resvr
  • delete_riverstat
  • fcst_pe
  • latestobs
  • load_obs_river
  • obs_pe
  • obs_precip_ins
  • obs_precip_upd
  • obs_river_ins
  • obs_river_upd

  • DATABASE TRIGGERS

  • obs_discharge_ins
  • obs_discharge_upd
  • obs_height_ins
  • obs_height_upd
  • obs_precip_ins
  • obs_precip_upd