From 35efa15f0cde70df0b89d9ef81bb801d5ea3004a Mon Sep 17 00:00:00 2001 From: Beaudette Date: Thu, 11 Jan 2024 09:24:55 -0800 Subject: [PATCH] metadata note --- AQP/soilDB/WCS-demonstration-01.Rmd | 14 ++++----- AQP/soilDB/WCS-demonstration-01.html | 46 +++++++++++++++++++++++----- 2 files changed, 45 insertions(+), 15 deletions(-) diff --git a/AQP/soilDB/WCS-demonstration-01.Rmd b/AQP/soilDB/WCS-demonstration-01.Rmd index 4bad4f8..3d8e814 100644 --- a/AQP/soilDB/WCS-demonstration-01.Rmd +++ b/AQP/soilDB/WCS-demonstration-01.Rmd @@ -138,6 +138,13 @@ plot(mu, legend = FALSE, axes = FALSE, main = metags(mu, name = 'description')) plot(st_transform(x, 5070), add = TRUE) ``` +### Metadata +Print attached metadata with the `terra::metags()` function. Currently, a short description and "vintage" are included. The gNATSGO, gSSURGO, and derivatives are typically created 2-3 months after the annual SSURGO refresh on October 1st of each year (beginning of US federal fiscal year). +```{r, results='asis', echo=FALSE} +# pretty-print metadata +kableExtra::kable_styling(knitr::kable(t(metags(mu)), format = 'html')) +``` + A buffer applied to a [single WGS84 coordinate](https://casoilresource.lawr.ucdavis.edu/gmap/?loc=36.52578,-118.55639,z13) can create a BBOX: ```{r fig.width = 5, fig.height = 5} @@ -175,13 +182,6 @@ plot(st_transform(p, 5070), add = TRUE, pch = 16) ``` - - - - - - - # Setup Need the latest version of `soilDB` and `terra`, along with all packages specified below (CRAN versions fine). ```{r eval = FALSE} diff --git a/AQP/soilDB/WCS-demonstration-01.html b/AQP/soilDB/WCS-demonstration-01.html index 627e91d..10286ae 100644 --- a/AQP/soilDB/WCS-demonstration-01.html +++ b/AQP/soilDB/WCS-demonstration-01.html @@ -10,7 +10,7 @@ - + Map Unit Key Web Coverage Service @@ -1704,7 +1704,7 @@

Map Unit Key Web Coverage Service

-

2024-01-10

+

2024-01-11

@@ -1898,6 +1898,35 @@

Manually Creating bounding-boxes for WCS requests

# add original BBOX, after transforming to mukey grid CRS plot(st_transform(x, 5070), add = TRUE)

+
+

Metadata

+Print attached metadata with the terra::metags() function. +Currently, a short description and “vintage” are included. The gNATSGO, +gSSURGO, and derivatives are typically created 2-3 months after the +annual SSURGO refresh on October 1st of each year (beginning of US +federal fiscal year). + + + + + + + + + + + + + +
+description + +vintage +
+gSSURGO map unit keys + +FY2024 +

A buffer applied to a single WGS84 coordinate can create a BBOX:

library(sf)
@@ -1933,6 +1962,7 @@ 

Manually Creating bounding-boxes for WCS requests

+

Setup

Need the latest version of soilDB and @@ -2000,7 +2030,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 : file3f4032bc4ded +## varname : file28981ffa1d44 ## categories : mukey ## name : mukey ## min value : 144983 @@ -2094,7 +2124,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 : file3f40378c7ce +## varname : file28981d747250 ## categories : mukey ## name : mukey ## min value : 545800 @@ -2107,7 +2137,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 : file3f406884b1d +## varname : file289812665711 ## categories : mukey ## name : mukey ## min value : 545800 @@ -2120,7 +2150,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 : file3f4069937e1e +## varname : file28985779737a ## categories : mukey ## name : mukey ## min value : 3244721 @@ -2154,7 +2184,7 @@

STATSGO

## extent : 1129005, 1135005, 1402995, 1411095 (xmin, xmax, ymin, ymax) ## coord. ref. : NAD83 / Conus Albers (EPSG:5070) ## source(s) : memory -## varname : file3f4040b969a8 +## varname : file289852165e17 ## categories : mukey ## name : mukey ## min value : 659074 @@ -3246,7 +3276,7 @@

Classification

## extent : -2178800, -2065200, 1816400, 1946800 (xmin, xmax, ymin, ymax) ## coord. ref. : NAD83 / Conus Albers (EPSG:5070) ## source(s) : memory -## varname : file3f405dac4c2f +## varname : file28983b4d58c7 ## categories : label ## name : FAO Salt Severity ## min value : extremely saline