bird_observ
070321 - njc:
Need to join alongtrack(lat and lon) with this object.
Problem is that yrday_gmt is integer in bird and has 3-decimal time
added in alongtrack so there are no matches to join.
I think the solution has to do with the timedateparams formats:
=J for day of year
(=J.ooo for day with fraction of day?? - not correct)
=================
gb6.whoi.edu\data12\sodata\cribic\observations.varlist: (top level)
#Bird Studies variable list for Observations.
#
cruise yrday_gmt time_gmt n_d_flag species number flight_dir behav_code transect comments association
==================
================== Top Level:
gb6.whoi.edu\data12\sodata\cribic\observations.dat: (ori)
# Observations of Birds taken during NBP0103 and NBP0104
# Chris Ribic and Erik Chapman, PIs
# Notes: N = Night; D = Day;
# Flight_dir = Degrees relative to ship
# Behavior_code = see documentation
# Transect = see documentation
# Association = those environmental features associated with sighting.
#
#For an explanation of the species code,
# click here.
cruiseid yrday_gmt time_gmt n_d_flag species number flight_dir behav_code transect comments association
#Cruise yr_day TimeGMT N/D specs. # flght behav. Trnsct Notes Association
#234567890#2345#234567890#23#234567#23#2345#234567#23456#234567890123456789012345678901234567890123456789012345678901234567890#23456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
NBP0103 119 13:12:00 D cape 1 6 3
NBP0103 119 13:12:00 D sofu 1 130 3 3
NBP0103 119 13:12:00 D anpe 1 130 3 3
==================
gb6.whoi.edu\data12\sodata\cribic\nbp0103\observations0103.ind:
/data12/sodata/cribic/nbp0103/observations0103.dat
inpwidths = /data12/sodata/cribic/observations.widths
removals = \ cruise;
datafieldopts = \ significant_embedded_separators_in_fixed_field = FALSE
timedateparams = \ outtimename = time_gmt; invar1name = time_gmt; invar1template = HH:MM:SS
#latlonparams = \ inlonname=lon; inlonconvention=W; inlonformat=degdecmin; inlatname = lat; inlatconvention=S; inlatformat=degdecmin
diagnostics = \ addl-error_sink=/tmp/observations.err; other_comment_sink=/dev/null
varlist = /data12/sodata/cribic/observations.varlist
dispwidths = /data12/sodata/cribic/observations.dispwidths
==================
gb6.whoi.edu\data12\sodata\cribic\observations.varlist: (ori)
#Bird Studies variable list for Observations.
#
cruise yrday_gmt time_gmt n_d_flag species number flight_dir behav_code transect comments association
==================
gb6.whoi.edu\data12\sodata\cribic\observations.dispwidths: (ori)
#Bird Studies Observations dispwidths
cruiseid = 8
yrday_gmt = 9
time_gmt = 8
#startcode = 7
#visib = 7
n_d_flag = 8
species = 7
number = 6
flight_dir = 10
behav_code = 10
transect = 8
comments = 68
association = 80
==================
================== one level down, NBP0103:
/data12/sodata/cribic/nbp0103/observations0103.dat: (ori)
# Observations of Birds taken during NBP0103
# Chris Ribic and Erik Chapman, PIs
# Notes: N = Night; D = Day;
# Flight_dir = Degrees relative to ship
# Behavior_code = see documentation
# Transect = see documentation
# Association = those environmental features associated with sighting.
#
#For an explanation of the species code,
# click here.
cruise yrday_gmt time_gmt n_d_flag species number flight_dir behav_code transect comments association
#Cruise yr_day TimeGMT N/D specs. # flght behav. Trnsct Notes Associ
ation
#234567890#2345#234567890#23#234567#23#2345#234567#23456#234567890123456789012345678901234567890123456789012345678901234567890#23456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
NBP0103 119 13:12:00 D cape 1 6 3
NBP0103 119 13:12:00 D sofu 1 130 3 3
NBP0103 119 13:12:00 D anpe 1 130 3 3
==================
/data12/sodata/cribic/nbp0103/observation0103.ind: (ori)
/data12/sodata/cribic/nbp0103/observations0103.dat
inpwidths = /data12/sodata/cribic/observations.widths
removals = \ cruise;
datafieldopts = \ significant_embedded_separators_in_fixed_field = FALSE
timedateparams = \ outtimename = time_gmt; invar1name = time_gmt; invar1template = HH:MM:SS
#latlonparams = \ inlonname=lon; inlonconvention=W; inlonformat=degdecmin; inlatname = lat; inlatconvention=S; inlatformat=degdecmin
diagnostics = \ addl-error_sink=/tmp/observations.err; other_comment_sink=/dev/null
varlist = /data12/sodata/cribic/observations.varlist
dispwidths = /data12/sodata/cribic/observations.dispwidths
==================
To get the yrday_gmt to have decimal day (I created a file, observations0103.timedateparams:
(from rem'd out version for effort)
# Timedateparams for bird observations
outtimename = time_gmt;
invar1name = time_gmt;
invar1template = HH:MM:SS
invar2name = yrday_gmt;
invar2template = j;
outjulianname = yrday_gmt;
outjulianformat = J.ooo; #also tried JJJ.ooo - no luck)
==================
070330 - njc:
The 2002 data time has only HH:MM, no seconds so tdparams must be changed for these data.
The joins didn't work because the yrday_gmt's don't match up: bird_observ has 3 decimals
and alongtrack has 5.
I didn't want to muck things up so stopped here.
alongtrack:
yrday_gmt time_gmt 106.49792 1157.00
bird_observ 0202:
yrday_gmt time_gmt 104.498 1157
==========
NBP0204:
I changed allbirds.dat - commented out 0202 line, uncommented 0204 line.
allbirds.ind - commented out 0202 and added similar lines for nbp0204 to call birds0204.widths.
birsds0204.dat - changed yrday_gmt to dummy1.
birds0204.widths - changed yrday_gmt to dummy1.
Got it to serve but the same problem occurs here with the yrday_gmt number of decimals.
==================