save_poly_cells: Save rds files containing raster cell tables for polygons

Description Usage Arguments Details Value Examples

Description

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.

Usage

1
2
3
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.

Details

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

Value

invisible, writes files.

Examples

1
## Not run: save_poly_cells()

leonawicz/snapprep documentation built on May 14, 2019, 8:54 a.m.