diff --git a/articles/wcs-ssurgo.html b/articles/wcs-ssurgo.html index f76d2612..da190157 100644 --- a/articles/wcs-ssurgo.html +++ b/articles/wcs-ssurgo.html @@ -379,7 +379,7 @@

Map Unit Key Grids#> extent : -1365495, -1358925, 2869245, 2873655 (xmin, xmax, ymin, ymax) #> coord. ref. : NAD83 / Conus Albers (EPSG:5070) #> source(s) : memory -#> varname : file20677765ff85 +#> varname : file200349480674 #> categories : mukey #> name : mukey #> min value : 144983 @@ -487,7 +487,7 @@

Raster Soil Survey Data#> extent : 1129005, 1135005, 1402995, 1411005 (xmin, xmax, ymin, ymax) #> coord. ref. : NAD83 / Conus Albers (EPSG:5070) #> source(s) : memory -#> varname : file2067553ba0d0 +#> varname : file200369a3c7ea #> categories : mukey #> name : mukey #> min value : 545800 @@ -501,7 +501,7 @@

Raster Soil Survey Data#> extent : 1129005, 1135005, 1402995, 1411005 (xmin, xmax, ymin, ymax) #> coord. ref. : NAD83 / Conus Albers (EPSG:5070) #> source(s) : memory -#> varname : file20672b1bceda +#> varname : file20031318f33 #> categories : mukey #> name : mukey #> min value : 545800 @@ -515,7 +515,7 @@

Raster Soil Survey Data#> extent : 1129005, 1135005, 1402995, 1411005 (xmin, xmax, ymin, ymax) #> coord. ref. : NAD83 / Conus Albers (EPSG:5070) #> source(s) : memory -#> varname : file206767d70b42 +#> varname : file20031e5c99d8 #> categories : mukey #> name : mukey #> min value : 3244721 @@ -570,7 +570,7 @@

STATSGO#> extent : 1129005, 1135005, 1402995, 1411095 (xmin, xmax, ymin, ymax) #> coord. ref. : NAD83 / Conus Albers (EPSG:5070) #> source(s) : memory -#> varname : file2067565a87fb +#> varname : file20036c3745c2 #> categories : mukey #> name : mukey #> min value : 659074 diff --git a/articles/wcs-ssurgo_files/figure-html/unnamed-chunk-10-1.png b/articles/wcs-ssurgo_files/figure-html/unnamed-chunk-10-1.png index 098608bf..efdcf973 100644 Binary files a/articles/wcs-ssurgo_files/figure-html/unnamed-chunk-10-1.png and b/articles/wcs-ssurgo_files/figure-html/unnamed-chunk-10-1.png differ diff --git a/news/index.html b/news/index.html index 9f0e1460..2196b20d 100644 --- a/news/index.html +++ b/news/index.html @@ -44,7 +44,10 @@

soilDB
  • createStaticNASIS() removed workaround for {odbc}/nanoodbc VARCHAR(MAX) columns; now can directly use DBI::dbReadTable() for all tables via NASIS ODBC connection
  • -fetchNASIS() changed default behavior to mixColors = FALSE which returns dominant condition for each moisture state rather than mixing LAB color coordinates
  • +fetchNASIS() changed default behavior to mixColors = FALSE which returns dominant condition for each moisture state rather than mixing LAB color coordinates +
    • +get_colors_from_NASIS_db() deprecate mixColors argument, add method argument with options “dominant”, “mixed”, and “none”. New aggregation method "none" returns long format representation of color data from phcolor table with no aggregation applied.
    • +

    soilDB 2.8.5 (2024-11-04)

    CRAN release: 2024-11-05

    diff --git a/pkgdown.yml b/pkgdown.yml index 5ffb3fc4..c4fe716d 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -4,7 +4,7 @@ pkgdown_sha: ~ articles: fetchNASIS: fetchNASIS.html wcs-ssurgo: wcs-ssurgo.html -last_built: 2024-11-14T23:38Z +last_built: 2024-11-14T23:56Z urls: reference: http://ncss-tech.github.io/soilDB/reference article: http://ncss-tech.github.io/soilDB/articles diff --git a/reference/fetchOSD.html b/reference/fetchOSD.html index 14919753..eddc0c85 100644 --- a/reference/fetchOSD.html +++ b/reference/fetchOSD.html @@ -155,7 +155,7 @@

    Examples#> $ climate.annual :'data.frame': 88 obs. of 12 variables: #> $ climate.monthly :'data.frame': 264 obs. of 14 variables: #> $ NCCPI :'data.frame': 11 obs. of 16 variables: -#> $ soilweb.metadata:'data.frame': 25 obs. of 2 variables: +#> $ soilweb.metadata:'data.frame': 23 obs. of 2 variables: # } diff --git a/reference/fetchSDA_spatial.html b/reference/fetchSDA_spatial.html index 012905fb..c3523858 100644 --- a/reference/fetchSDA_spatial.html +++ b/reference/fetchSDA_spatial.html @@ -130,13 +130,13 @@

    Examples single.mukey <- try(fetchSDA_spatial(x = "2924882")) #> Using 1 chunks... #> Chunk #1 completed (n = 1; 0.2 secs) -#> Done in 0.2 secs; mean/chunk: 0.2 secs; mean/symbol: 0.22 secs. +#> Done in 0.2 secs; mean/chunk: 0.2 secs; mean/symbol: 0.21 secs. # demonstrate fetching full extent (multi-mukey) of national musym full.extent.nmusym <- try(fetchSDA_spatial(x = "2x8l5", by = "nmusym")) #> Using 1 chunks... -#> Chunk #1 completed (n = 3; 0.8 secs) -#> Done in 1 secs; mean/chunk: 0.8 secs; mean/symbol: 0.33 secs. +#> Chunk #1 completed (n = 3; 1.1 secs) +#> Done in 1.3 secs; mean/chunk: 1.1 secs; mean/symbol: 0.42 secs. # compare extent of nmusym to single mukey within it if (!inherits(single.mukey, 'try-error') && @@ -156,7 +156,7 @@

    Examples head(try(fetchSDA_spatial(x = "2x8l5", by="nmusym", add.fields="muname"))) #> Using 1 chunks... #> Chunk #1 completed (n = 3; 0.5 secs) -#> Done in 0.7 secs; mean/chunk: 0.5 secs; mean/symbol: 0.23 secs. +#> Done in 0.7 secs; mean/chunk: 0.5 secs; mean/symbol: 0.22 secs. #> Simple feature collection with 6 features and 4 fields #> Geometry type: POLYGON #> Dimension: XY diff --git a/reference/get_colors_from_NASIS_db.html b/reference/get_colors_from_NASIS_db.html index 8f0ba78f..878f0bef 100644 --- a/reference/get_colors_from_NASIS_db.html +++ b/reference/get_colors_from_NASIS_db.html @@ -44,7 +44,12 @@

    Get Soil Color Data from a local NASIS Database

    Usage

    -
    get_colors_from_NASIS_db(SS = TRUE, mixColors = TRUE, dsn = NULL)
    +
    get_colors_from_NASIS_db(
    +  SS = TRUE,
    +  method = "dominant",
    +  mixColors = FALSE,
    +  dsn = NULL
    +)
    @@ -56,8 +61,12 @@

    Argumentsmethod +

    Aggregation method to handle multiple colors per horizon and moisture state. Default "dominant" for dominant condition (or first record) within moisture state. Other options include "mixed" to calculate mixture using simplifyColorData() and "none" to do no aggregation (returns a long format representation that may have multiple values per horizon and moisture state)

    + +
    mixColors
    -

    should mixed colors be calculated (Default: TRUE) where multiple colors are populated for the same moisture state in a horizon? FALSE takes the dominant color based on colorpct or first record based on horizon ID (phiid) sorting for "moist" and "dry" state. Pedon Horizon Color records without a moisture state populated are ignored.

    +

    Deprecated. See method. Should mixed colors be calculated where multiple colors are populated for the same moisture state in a horizon? Default FALSE takes the dominant color based on colorpct or first record based on horizon ID (phiid) sorting for "moist" and "dry" state. Pedon Horizon Color records without a moisture state populated are ignored.

    dsn
    diff --git a/reference/get_soilDB_env.html b/reference/get_soilDB_env.html index 0c7bd87d..c8a2be24 100644 --- a/reference/get_soilDB_env.html +++ b/reference/get_soilDB_env.html @@ -64,7 +64,7 @@

    Value

    Examples

    get_soilDB_env()
    -#> <environment: 0x5581035bdd00>
    +#> <environment: 0x55ad844929a8>