prepf: Generate an object for kftrack or kfsst (or ukfsst)...

Description Usage Arguments Value Author(s) See Also Examples

Description

This function takes an object created by MWTextract and returns a data frame with 7 columns suitable for kf estimation. This also sets some limits on where in the world the fish may have gone. These limits are meant to be extremely broad and exist to filter only the most egregiously erroneous light measurements.

Usage

1
prepf(tag, xmin = 100, xmax = 0, ymin = 10, ymax = 55, keepall = F)

Arguments

tag

object returned from MWTextract

xmin

Southern longitude cutoff

xmax

Northern longitude cutoff

ymin

Southern latitude cutoff

ymax

Northern latitude cutoff

keepall

If you do not wish to use these cutoffs, keepall = T. Default is keepall = F

Value

Dataframe with 7 columns: Day, Month, Year, Longitude, Latitude, Max Daily Depth, Max Daily Ambient Temperature

Author(s)

Benjamin Galuardi

See Also

kftrack,kfsst

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
Mydir = 'C:/MYDATA/';   # Data arranged by year in the DATA folder
tyear = 2008;						  # Year fish was tagged 
taglocfile = paste(Mydir, 'Tagginglocations.txt', sep = "");	# ASCII file containing Tag ID,  year,  month,  day,  longitude and latitude of tagging locations. This is neccesary in order to properly read in the data.
tagID = '12345'
tyear = 2008
xlsfile = paste('Mydir', tyear, tagID, '/', tagID, '/', '.xls', sep = "")

tagdata <- MWTextract(tagID, tyear, xlsfile, taglocfile)

xdata=prepf(tagdata)

galuardi/analyzepsat documentation built on May 17, 2019, 3:25 p.m.