Skip to content

Commit

Permalink
Merge pull request #9 from bluegreen-labs/patch-hwsd-v2
Browse files Browse the repository at this point in the history
Patch hwsd v2
  • Loading branch information
khufkens authored Aug 7, 2023
2 parents 04ab742 + 5404054 commit e503d61
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# hwsdr 1.1

- removing {raster} dependencies
- removing {raster} dependencies for {terra}
- adding support for HWSD v2.0 (experimental but functionally complete)

# hwsdr 1.0

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ This is an experimental feature, awaiting an update of the ORNL DAAC API to vers

The HWSD v2.0 data is distributed as a gridded spatial map where homogeneous regions are indicated with indices (integers). Although the underlying database is included in the package and can be accessed using `hwsdr::hwsd2`, the spatial data accompanying the database is too large for inclusion in the package. This spatial data needs to be downloaded explicitly to a desired path before any other functions will work.

```{r eval = FALSE}
``` r
# set the ws_path variable using a FULL path name
path <- ws_download(
ws_path = "/your/full/path",
Expand All @@ -99,7 +99,7 @@ path <- ws_download(

Get world soil values for a single site using the following format, specifying coordinates as a pair of longitude, latitude coordinates (longitude, latitude). Here the call only extracts the top soil (layer = "D1") fraction of sand and silt (% weight) for one specific location. Note that you will need to specify the correct version to be used in processing.

```{r eval = FALSE}
``` r
values <- ws_subset(
site = "HWSD_V2",
location = c(-81, 34),
Expand All @@ -114,7 +114,7 @@ values <- ws_subset(

You can grab gridded data by specifying a bounding box c(lon, lat, lon, lat) defined by a bottom left and top right coordinates. Here the call only extracts the top soil (D1 layer) fraction of sand (%).

```{r eval = FALSE}
``` r
sand <- ws_subset(
location = c(32, -81, 34, -80),
param = "SAND",
Expand Down
6 changes: 3 additions & 3 deletions cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ http://cran.r-project.org/web/packages/policies.html

## test environments, local, CI and r-hub

- Ubuntu 16.04 install on R 4.1.0
- Ubuntu 20.04 on github actions (devel / release)
- Ubuntu 22.04 install on R 4.3.1
- Ubuntu 22.04 on github actions (devel / release)
- github actions on Windows / MacOS (release)
- codecov.io code coverage at ~96%
- codecov.io code coverage at ~85%

## local / Travis CI R CMD check results

Expand Down

0 comments on commit e503d61

Please sign in to comment.