Description Usage Arguments Value Note Examples
Take the velox raster and crop the velox objects down to the area where the SPDF points are
1 | crop_raster_to_country(raster_list, spdf, country_iso, data_directory)
|
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. |
raster cropped to the area where soil points are so that we don't care the raw soil rasters through the extract process.
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.
1 | ## Not run: crop_raster_to_country("ph_soil_raster.tif", "KEN", "/path/to/directory")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.