Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use terra/sf to replace raster/sp/rgdal #229

Merged
merged 47 commits into from
Apr 28, 2022
Merged
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
1088cb4
Remove sp/raster/rgdal
brownag Dec 22, 2021
e049cd9
Remove mapunit_geom_by_ll_bbox
brownag Dec 22, 2021
2ad1075
Replace sp in tests
brownag Dec 22, 2021
1a0fad7
mukey.wcs and ISSR800.wcs
brownag Dec 22, 2021
351c9bc
seriesExtent
brownag Dec 22, 2021
688e9eb
taxaExtent
brownag Dec 22, 2021
cd52f3e
fetchHenry
brownag Dec 22, 2021
a3d6e30
fetchSoilGrids
brownag Dec 22, 2021
f2c7210
fetchSDA_spatial
brownag Dec 22, 2021
4b3be9a
get_NOAA_stations_near_XY
brownag Dec 22, 2021
f50761e
Allow Raster*/SpatRaster/SpatVector inputs to SDA_spatialQuery
brownag Dec 22, 2021
07060e9
Merge branch 'master' into useTerra
brownag Jan 15, 2022
ea8a804
typo
dylanbeaudette Feb 7, 2022
ee019ab
force a well-known CRS
dylanbeaudette Feb 7, 2022
b6bbe51
example and CRS
dylanbeaudette Feb 7, 2022
bdbcfc4
excluding this test for now
dylanbeaudette Feb 7, 2022
9d4a500
namespace
dylanbeaudette Feb 7, 2022
cf211da
could be either sf or sfc
dylanbeaudette Feb 7, 2022
b40bc84
safer handling of levels, but still not sure if this is best practice…
dylanbeaudette Feb 7, 2022
77983f1
keep onkly unique categories
dylanbeaudette Feb 7, 2022
3efad47
CHERRY-PICK/MERGE: tests that will be used to check terra alternative
dylanbeaudette Feb 7, 2022
5f108f8
Merge branch 'master' into useTerra
brownag Feb 10, 2022
8ecaad4
taxaExtent: update example for terra
brownag Feb 10, 2022
a46a3ae
leave temporary files in place
dylanbeaudette Feb 18, 2022
87d9bfd
reverting to cleanup of tempfile / load into memory
dylanbeaudette Feb 18, 2022
2d010b7
still not quite right, see PR comments
dylanbeaudette Feb 18, 2022
c53f1f4
Fix typo
brownag Feb 18, 2022
69d694c
mukey.wcs: fix RAT / default plot
brownag Feb 18, 2022
7606243
Merge branch 'master' into useTerra
brownag Feb 18, 2022
0527219
mukey.wcs: terra::classify not needed
brownag Feb 18, 2022
ed74ddc
Merge branch 'master' into useTerra
brownag Apr 10, 2022
fc3a99e
Render README.Rmd
invalid-email-address Apr 25, 2022
503114e
bump
brownag Apr 25, 2022
2de9ae4
Merge branch 'master' into useTerra
brownag Apr 25, 2022
8947c85
fix empty test (2)
brownag Apr 25, 2022
d4995ce
wrong expectation
brownag Apr 25, 2022
2aacab1
Updates to WCS client-side projection/bbox info
brownag Apr 26, 2022
9ca18cc
mukey.wcs/ISSR800.wcs: updates
brownag Apr 26, 2022
65c59b7
Add raster in Suggests
brownag Apr 26, 2022
91ca533
fetchSDA_spatial/SDA_spatialQuery: add `as_Spatial` argument + soilDB…
brownag Apr 26, 2022
8885912
Close connection
brownag Apr 26, 2022
4645272
Docs
brownag Apr 26, 2022
b7f2ca4
adding RSS option, spec, normalizaing names using in terra object to …
dylanbeaudette Apr 27, 2022
76913b0
quick test of new WCS interface to RSS
dylanbeaudette Apr 27, 2022
93db4a9
RSS uses 0 for NODATA
dylanbeaudette Apr 27, 2022
9f55cc7
Docs
brownag Apr 27, 2022
37bcee0
Merge branch 'master' into useTerra
brownag Apr 28, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
excluding this test for now
  • Loading branch information
dylanbeaudette committed Feb 7, 2022
commit bdbcfc4c13bc5b25463ab6d00fa44da9f26387c9
10 changes: 6 additions & 4 deletions tests/testthat/test-ISSR800.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ test_that("ISSR800.wcs works", {
quiet = TRUE
)

expect_true(inherits(x2, 'SpatRaster') || inherits(x2, 'try-error'))
if (!inherits(x2, 'try-error')) {
expect_equal(nrow(terra::cats(x2)[[1]]), 66)
}
## DEB: disabling for now, there is no guaranteed result

# expect_true(inherits(x2, 'SpatRaster') || inherits(x2, 'try-error'))
# if (!inherits(x2, 'try-error')) {
# expect_equal(nrow(terra::cats(x2)[[1]]), 66)
# }
})