View source: R/make_extrapolation_info.R
make_extrapolation_info | R Documentation |
make_extrapolation_data
builds an object used to determine areas to extrapolation densities to when calculating indices
make_extrapolation_info(
Region,
projargs = NA,
zone = NA,
strata.limits = data.frame(STRATA = "All_areas"),
create_strata_per_region = FALSE,
max_cells = NULL,
input_grid = NULL,
observations_LL = NULL,
grid_dim_km = c(2, 2),
maximum_distance_from_sample = NULL,
grid_in_UTM = TRUE,
grid_dim_LL = c(0.1, 0.1),
region = c("south_coast", "west_coast"),
strata_to_use = c("SOG", "WCVI", "QCS", "HS", "WCHG"),
epu_to_use = c("All", "Georges_Bank", "Mid_Atlantic_Bight", "Scotian_Shelf",
"Gulf_of_Maine", "Other")[1],
survey = "Chatham_rise",
surveyname = "propInWCGBTS",
flip_around_dateline,
nstart = 100,
area_tolerance = 0.05,
backwards_compatible_kmeans = FALSE,
DirPath = getwd(),
...
)
Region |
a character vector, where each element is matched against potential values to create the extrapolation grid, where densities are then predicted at the midpoint of each grid cell when calculating derived quantities or visualizing model outputs. Users will typically supply a single character-string, representing the footprint of a single survey. However, it is also possible to provide a character-vector, where the extrapolation-grid will be created for each string, and then combined together; this is then helpful when extrapolating densities across multiple survey domains. Current options are:
|
projargs |
A character string of projection arguments; the arguments must be entered exactly as in the PROJ.4 documentation; if the projection is unknown, use |
zone |
UTM zone used for projecting Lat-Lon to km distances; use |
strata.limits |
an input for determining stratification of indices (see example script) |
create_strata_per_region |
Boolean indicating whether to create a single stratum for all regions listed in |
max_cells |
Maximum number of extrapolation-grid cells. If number of cells in extrapolation-grid is less than this number, then its value is ignored. Default |
input_grid |
a matrix with three columns (labeled |
observations_LL |
a matrix with two columns (labeled 'Lat' and 'Lon') giving latitude and longitude for each observation; only used when |
grid_dim_km |
numeric-vector with length two, giving the distance in km between cells in the automatically generated extrapolation grid; only used if |
maximum_distance_from_sample |
maximum distance that an extrapolation grid cell can be from the nearest sample and still be included in area-weighted extrapolation of density; only used if |
grid_in_UTM |
Boolean stating whether to automatically generate an extrapolation grid based on sampling locations in km within the UTM projection of within Lat-Lon coordinates; only used if |
grid_dim_LL |
same as |
region |
which coast to use for South Africa extrapolation grid; only used if |
strata_to_use |
strata to include by default for the BC coast extrapolation grid; only used if |
epu_to_use |
EPU to include for the Northwest Atlantic (NWA) extrapolation grid, default is "All"; only used if |
survey |
survey to use for New Zealand extrapolation grid; only used if |
surveyname |
area of West Coast to include in area-weighted extrapolation for California Current;
only used if
|
flip_around_dateline |
DEPRECATED INPUT; boolean specifying whether to flip Lat-Lon locations around the dateline, and then retransform back (only useful if Lat-Lon straddle the dateline) |
nstart |
the number of times that the k-means algorithm is run while searching for the best solution (default=100) |
backwards_compatible_kmeans |
a boolean stating how to deal with changes in the kmeans algorithm implemented in R version 3.6.0,
where |
DirPath |
a directory where the function looks for a previously-saved output (default is working directory) |
... |
other objects passed for individual regions (see example script) |
To do area-weighted extrapolation of estimated density for use in calculating abundance indices,
it is necessary to have a precise measurement of the footprint for a given survey design.
Using VAST, analysts do this by including an "extrapolation grid" where densities are predicted
at the location of each grid cell and where each grid cell is associated with a known area within a given survey design.
Collaborators have worked with the package author to include the extrapolation-grid for several
regions automatically in VAST. For new regions an analyst can either (1) detect
the grid automatically using Region="Other"
, or (2) input an extrapolation-grid manually
using Region="User"
, or supply a GIS shapefile Region="[directory_path/file_name].shp"
.
The extrapolation is also used to determine where to drawn pixels when plotting predictions of density.
If a user supplies a character-vector with more than one of these, then they are combined to
assemble a combined extrapolation-grid.
When supplying a shapefile, I recommend using a UTM projection for projargs, which appears to have lower projection errors regarding total area than rnaturalearth.
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
zone
the zone used to convert Lat-Long to UTM by PBSmapping package
flip_around_dateline
a boolean stating whether the Lat-Long is flipped around the dateline during conversion to UTM
Area_km2_x
the area associated with each row of Data_Extrap, in units square-kilometers
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.