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

Description Usage Arguments Value Note Examples

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.

spdf

SpatialPointsDataFrame to determine extent of interest.

country_iso

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

data_directory

The data directory where the polygons are saved.

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
## Not run: crop_raster_to_country("ph_soil_raster.tif", "KEN", "/path/to/directory")

one-acre-fund/soilgrids documentation built on May 16, 2019, 5:02 a.m.