Skip to content

Commit b8a2a5f

Browse files
hls configuration
1 parent 29193f8 commit b8a2a5f

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

inst/extdata/sources/config_source_hls.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# The parameters enable access to the cloud collections
33

44
HLS_ACCESS_URL: "machine.urs.earthdata.nasa.gov"
5-
5+
HLS_NETRC_FILE_PATH: "~/.netrc"
6+
HLS_NETRC_FILE_PATH_WIN: "%HOME%\\_netrc"
67
sources:
78
HLS :
89
s3_class : ["hls_cube", "stac_cube", "eo_cube",

tests/testthat/test-cube-cdse.R

+3-4
Original file line numberDiff line numberDiff line change
@@ -99,18 +99,17 @@ test_that("Creating Sentinel-1 RTC cubes from CDSE", {
9999
cube = cube_s1_rtc,
100100
period = "P1M",
101101
res = 240,
102-
tiles = c("36NXG", "36NVG"),
102+
tiles = c("36NWH"),
103103
multicores = 1,
104104
output_dir = output_dir,
105105
progress = TRUE
106106
)
107107
expect_equal(length(sits_timeline(cube_s1_rtc_reg)), 3)
108-
expect_true(all(c("36NXG", "36NVG") %in%
109-
cube_s1_rtc_reg$tile))
108+
expect_true("36NWH" %in% cube_s1_rtc_reg$tile)
110109
expect_true("EPSG:32636" %in% cube_s1_rtc_reg$crs)
111110

112111
bbox <- sits_bbox(cube_s1_rtc_reg, as_crs = "EPSG:4326")
113-
roi_cube_s1 <- sits_mgrs_to_roi(c("36NXG", "36NVG"))
112+
roi_cube_s1 <- sits_mgrs_to_roi("36NWH")
114113

115114
expect_equal(bbox[["xmin"]], roi_cube_s1[["lon_min"]], tolerance = 0.01)
116115
expect_equal(bbox[["xmax"]], roi_cube_s1[["lon_max"]], tolerance = 0.03)

tests/testthat/test-cube-hls.R

-1
This file was deleted.

0 commit comments

Comments
 (0)