Save rds files containing data frames of grid cell indices for the intersection of common SNAP spatial polygons with SNAP template raster layers. Indices are stored for two conditions: matching to all raster cell indices and matching to new cell indices based on first removing all NA-valued cells and re-indexing.

save_poly_cells(file_akcan = "cells_akcan1km2km.rds",
  file_ak = "cells_ak1km.rds", out_dir = snapdef()$celldir, mc.cores = 32)

Arguments

file_akcan

file name for cell index table based on the Alaska/western Canada SNAP spatial domain.

file_ak

file name for cell index table based on the Alaska "statewide" classic ALFRESCO SNAP spatial domain.

out_dir

output directory.

mc.cores

number of processors.

Value

invisible, writes files.

Details

Note that this function also folds in FMO area unions from `snapgrid::swfmo` for the Alaska domain.

Examples

# NOT RUN {
save_poly_cells()
# }