SoilGrids tools
cycles.soilgrids
SoilGrids(path, *, maps=ALL_MAPS, crs=None, aggregated=None)
Read SoilGrids rasters and build Cycles-compatible soil profiles.
| Parameters: |
|
|---|
| Attributes: |
|
|---|
reproject_match(*, reference_xds, reference_name, boundary)
Reproject loaded maps to a reference raster grid.
| Parameters: |
|
|---|
| Returns: |
|
|---|
get_soil_profile(lat_lon)
Sample loaded maps at a coordinate and build a soil profile.
| Parameters: |
|
|---|
| Returns: |
|
|---|
generate_soil_file(fn, lat_lon, *, desc=None, hsg='', slope=None)
Generate a Cycles soil file from SoilGrids values.
| Parameters: |
|
|---|
| Returns: |
|
|---|
download_soilgrids_data(path, *, maps=ALL_MAPS, boundary=None, bbox=None, crs='epsg:4326')
Download SoilGrids raster layers via WCS.
You can provide either a boundary polygon or an explicit bounding box. Bounding boxes are expected in
(west, south, east, north) order.
| Parameters: |
|
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|