crop_raster_to_country: Take the velox raster and crop the velox objects down to the...

Description Usage Arguments Value Note Examples

View source: R/crop_raster_to_country.R

Description

Take the velox raster and crop the velox objects down to the area where the SPDF points are

Usage

1
crop_raster_to_country(raster_list, spdf, country_iso, data_directory)

Arguments

raster_list

The original list of raster before converting to velox.

country_iso

The country iso code to indicate which country the GPS points are in to know how to trim the data

Value

raster cropped to the area where soil points are so that we don't care the raw soil rasters through the extract process.

Note

I've included an if statement in the event there's only one requested soil parameter. There must be a cleaner way to do this.

Examples

1
crop_raster_to_country("ph_soil_raster.tif", "KEN", "/path/to/directory")

one-acre-fund/soilgrids documentation built on Feb. 14, 2019, 1:30 p.m.