Trip (lbk_trip)
|
\--- Tow/Haul (lbk_tow)
|
\--- Catch/Hail (lbk_catch)
With multiple catch records corresponding to one tow record, and multiple
tow records corresponding to one trip record.
Additionally there are code list tables which translate the agency codes for gear, port, species, strategy to the corresponding coast wide PacFIN codes (lbk_gr, lbk_pr, lbk_sp, lbk_strategy, respectively), as well as a table which links logbook records to the corresponding fish ticket records (lbk_ftid, this feature is not fully implemented yet). The whole logbook system, and its linkage to the existing PacFIN system, look like this:
pc
/
lbk_pr
/
lbk_trip
/ \ gr strategy
/ \ / /
ft / \ block_pos lbk_gr lbk_strategy
\ / \ /__________/____________/
\ / \ /
lbk_ftid--------------lbk_tow sp
\ /
\ asp
\ /
\ lbk_sp
\ /
lbk_catch
The following tables are related to data management:
lbk_ul contains information about the updates/data feeds
performed on the logbook system.
reject_lbk contains information about all records which were rejected
during the loading process.
Detailed column descriptions follow at the end of this document,
and are also available online using the show_coldsc script.
The agencies submit the follwing data:
00000000RRR00RRR000000indicating that there is an anomaly for the data in the 9th-11th and 14th-16th columns. (The return date was before the departure date in this case. All six columns are related to either return or departure time)
table COLUMN_NAME DESC_TEXT
---------- ------------- ---------------------------------------------
lbk_trip .... TABLE; trawl logbook trips
agid Data source agency ID
daysfished days fished (wdfw only)
daysout days at sea (wdfw only)
dday Date of departure, Orcale date
truncated to 12 am
dmonth Month of departure
dport departure port
drvid derived vessel ID, usually CG#
dtime departure time (hhmm)
dyear Year of departure
ft_match_flag Trip has been match(T), has not been matched(F) to tickets
ncrew Crewsize, including captain
ngal Fuel consumed in Gallons
ntows number of tows on trip (wdfw only)
rday Date of return, Orcale date
truncated to 12 am
region region of trip (wdfw only)
1=Canada, 2=Alaska, 3=Coastal, 4=Straits&Gulf,
5=Puget Sound & Hood Canal
rmonth Month of return
rport return port
rtime return time (hhmm)
lbk_trip ryear Year of return
towsrec number of tows recorded (wdfw only,
prior to 19?? only every 4th tow was recorded)
trip_id Trip ID, sequence generated
veid Vessel ID as in source data
vidtype type of veid, see vid-type in table cl
warning Warning flag, see WARNING in table cl
n-th charcter corresponds to flag for n-th column
table COLUMN_NAME DESC_TEXT
---------- ------------- ----------------------------------------------------
lbk_tow .... TABLE; Trawl logbook tows
adj_towtime wdfw adjusted tow time, represents
missing logs as well, see documentation for details
agid Data source agency ID
area state area
arid_psmfc PSCMFC area ID, might be filled from block_pos table
block block number (10x10 minutes)
block_or ODFW 5x5 minutes block number
ch_lat 1st Loran radio channel
ch_long 2nd Loran radio channel
depth1 1st depth in fathoms (see depth_type1)
depth2 2nd depth in fathoms (see depth_type1)
depth_type1 type of depth1 N=Net depth, B= Bottom depth,
A=Average depth, + = Max depth, - = Min depth
depth_type2 type of depth2 N=Net depth, B= Bottom depth,
A=Average depth, + = Max depth, - = Min depth
duration tow duration (up-set time) in hours
latlong_type source of lat/long info
L=Logbookentry
C=Center of general area, entered by agency staff
B=Center position of block from block_pos table
msec_lat milli seconds from 1st channel
lbk_tow msec_long milli seconds from 2nd channel
net_type net type
ps_grnd_code Puget Sound ground code, see maps in
"History of WA State Marine fish management areas"
WDFW technical report# MRD 97-04
ps_mgmt_area Puget Sound management area, see maps in
"History of WA State Marine fish management areas"
WDFW technical report# MRD 97-04
set_lat latitude of set position
set_long longitude of set position
set_time time net was set (hhmm)
target Target species/ strategy code
tow_date date tow occurred
townum number of tow on trip
trip_id Key to lbk_trip
up_lat latitude of up position
up_long longitude of up position
up_time time net was hauled up (hhmm)
warning Warning flag, see WARNING in table cl
n-th charcter corresponds to flag for n-th column
table COLUMN_NAME DESC_TEXT
---------- ------------- --------------------------------------------------
lbk_catch .... TABLE; trawl logbook catch records
agid Data source agency ID
apounds ticket adjusted pounds (on trip level)
apounds_wdfw ticket adjusted pounds (representing missing logs as well)
condition condition (possible future use)
disposition disposition (possible future use)
grade grade (possible future use)
hpounds hailed pounds
spcode species code
townum Key to lbk_tow
trip_id Key to lbk_trip
warning Warning flag, see WARNING in table cl
n-th charcter corresponds to flag for n-th column
table COLUMN_NAME DESC_TEXT
---------- ------------- ---------------------------------------------------
lbk_sp .... TABLE; logbook species codes
agid agency ID
category agency category code (link to asp)
created date code was first created
description description
lbk_spcode species code used on logbook
modified date code was last modified
table COLUMN_NAME DESC_TEXT
---------- ------------- -----------------------------------------------
lbk_gr .... TABLE; logbook gear/net-type codes
agid agency ID
created date code was first created
description description
grid agency gear code (link to gr)
modified date code was last modified
net_type gear code used on logbook
table COLUMN_NAME DESC_TEXT
---------- ------------- -----------------------------------------------
lbk_pr .... TABLE; logbook port codes
agid agency ID
created date code was first created
description description
lbk_port port code used on logbook
modified date code was last modified
pcid PacFIN port code (link to pc)
table COLUMN_NAME DESC_TEXT
---------- ------------- ---------------------------------------
lbk_strategy .... TABLE; strategy codes
agid agency ID
created date code was first created
lbk_strategy Strategy code used on logbook
modified date code was last modified
strategy PacFIN strategy code (link to strategy)
table COLUMN_NAME DESC_TEXT
---------- ------------- -----------------------------------------------
lbk_ftid .... TABLE; ftid-logbook matching tables
agid key to ft
ftid key to ft
pargrp key to ft
ticket_date date on ticket (use for key to ft)
townum key to lbk_tow
trip_id key to lbk_trip / lbk_tow
table COLUMN_NAME DESC_TEXT
---------- ------------- -------------------------------------------------
lbk_ul .... TABLE; logbook update log
agid data source agency ID
comments comments supplied by person processing the data
data_year year of data
datafile location of input data file as given to loading routine
proctime time data was loaded in DB (down to the second)
records number of records of this type loaded
type record type A=adjusted pounds (WDFW only)
C=catch, F= Fishticket match, H= Haul/Tow, T= Trip
Table Joining:
==============
The following keys join the various tables:
lbk_trip.trip_id --< lbk_tow.trip_id
lbk_tow.trip_id,townum --< lbk_catch.trip_id,townum
lbk_ftid.trip_id,townum --< lbk_tow.trip_id,townum
lbk_trip.agid,rport --- lbk_pr.agid,lbk_port
lbk_trip.agid,dport --- lbk_pr.agid,lbk_port
lbk_tow.block --- block_pos.block
lbk_tow.agid,net_type --- lbk_gr.agid,net_type
lbk_tow.agid,target --- lbk_sp.agid,lbk_spcode
lbk_tow.agid,target --- lbk_strategy.agid,lbk_strategy
lbk_catch.agid,spcode --- lbk_sp.agid,lbk_spcode
Codelist for WARNING flags
WARNING B Data was not supplied, filled from block_pos table
D Duplicate data (usually hail records)
I Invalid Code
L Longitude too far east (on Land)
N Value was set to NULL
O Value out of valid range
R Return date before departure date
S latitude given too far south
T Long towing time at shallow depth
V Vessel not in SV table
X Dummy trip
[Back To Logbook Index Page]