Calculate Hycom profile likelihood surface
calc.hycom(pdt, filename, hycom.dir, focalDim = 9, dateVec, use.se = TRUE)input PDT data output from read.wc and
extract.pdt
is the first part of the filename specified to the download
function get.env. For example, if downloaded files were
specific to a particular dataset, you may want to identify that with a name
like 'tuna' or 'shark1'. This results in a downloaded filename of, for
example, 'tuna_date.nc'. This filename is required here so the calc
function knows where to get the env data.
directory of downloaded hycom (or other) data
is integer for dimensions of raster::focal used to calculate sd() of temperature grid cell. Recommend focalDim = 9 for Hycom data at 0.08deg resolution.
vector of complete dates (from tag to pop by day) for data range. This should be in 'Date' format
is logical indicating whether or not to use SE when using regression to predict temperature at specific depth levels.
a raster brick of Hycom profile likelihood