make_extrapolation_info.ndd: modified from Jim Thorson's...

Description Usage Arguments Value

View source: R/make_extrapolation_info.ndd.r

Description

modified from Jim Thorson's FishStatUtils::Prepare_User_Extrapolation_Data_Fn.R uses my Convert_EN_to_LL_Fn.ndd and Convert_LL_to_EastNorth_Fn.ndd functions also modifies strata.limits to match strata.sp if it is present

Usage

1
2
3
4
5
6
7
8
make_extrapolation_info.ndd(
  Region,
  strata.limits,
  input.grid,
  crs.en,
  crs.ll,
  strata.sp
)

Arguments

Region

user

strata.limits

data frame with strata limits

input.grid

user created extrapolation grid

crs.en

Character string of the crs for the E-N projection

crs.ll

Character string of the crs for the current lat-lon projections

strata.sp

[Optional] If present, a shapefile containing the strata boundaries to calculate the indicies for

Value

returns a tagged list used in other functions

a_el

The area associated with each extrapolation grid cell (rows) and strata (columns)

Data_Extrap

A data frame describing the extrapolation grid with columns: Lon, Lat, Area_km2, Include, E_km, N_km. Include appears to be set to 1 for all areas? or set it to 0 for grid cells where you don't want an extrapolation??

Area_km2_x

the area associated with each row of Data_Extrap, in units square-kilometers

zone
flip_around_dateline

N-DucharmeBarth/ndd.vast.utils documentation built on April 5, 2020, 9 p.m.