You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to use the earthdatalogin function to create netrc files and download data in HIL, the following problems always occur. What is the cause and how to solve them
This is my code
library(earthdatalogin)
Sys.setenv(EDGE_NETRC = "D:/文档/.netrc")
roi <- c(
lon_min = 45.6422, lat_min = 24.0335,
lon_max = 45.0840, lat_max = 23.6178
)
hls_cube_s2 <- sits_cube(
source = 'HLS',
collection = 'HLSS30',
roi = roi,
bands = c('BLUE', 'GREEN', 'RED', 'CLOUD'),
start_date = as.Date('2020-06-01'),
end_date = as.Date('2020-09-01'),
progress = FALSE
)
plot(hls_cube_s2, red = 'RED', green = 'GREEN', blue = 'BLUE', date = '2020-06-20')
This is the problem that shows up
错误: .check_stac_items: NULL value not allowed for items - collection search returned no items
check 'roi', 'start_date', 'end_date', and 'tile' parameters
此外: Warning message:
In .check_netrc_gdal(attributes = .conf("HLS_ACCESS_URL")) :
netrc environment variable configuration detected (GDAL_HTTP_NETRC_FILE)
please, make sure it is available to all R sessions. To learn more, see the instructions in Chapter 4 of the online book
The text was updated successfully, but these errors were encountered:
Dear @LJ5233, we successfully reproduced your error.
Last year, EarthData STAC changed the date format to datetime.
We have fixed this in the dev branch. Please install dev using: devtools::install_github("e-sensing/sits@dev").
When I try to use the earthdatalogin function to create netrc files and download data in HIL, the following problems always occur. What is the cause and how to solve them
This is my code
library(earthdatalogin)
Sys.setenv(EDGE_NETRC = "D:/文档/.netrc")
earthdatalogin::edl_netrc(
username = '[email protected]',
password = ''
)
设置 .netrc 文件路径
Sys.setenv(EDGE_NETRC = "E:/netrc")
roi <- c(
lon_min = 45.6422, lat_min = 24.0335,
lon_max = 45.0840, lat_max = 23.6178
)
hls_cube_s2 <- sits_cube(
source = 'HLS',
collection = 'HLSS30',
roi = roi,
bands = c('BLUE', 'GREEN', 'RED', 'CLOUD'),
start_date = as.Date('2020-06-01'),
end_date = as.Date('2020-09-01'),
progress = FALSE
)
plot(hls_cube_s2, red = 'RED', green = 'GREEN', blue = 'BLUE', date = '2020-06-20')
This is the problem that shows up
错误: .check_stac_items: NULL value not allowed for items - collection search returned no items
check 'roi', 'start_date', 'end_date', and 'tile' parameters
此外: Warning message:
In .check_netrc_gdal(attributes = .conf("HLS_ACCESS_URL")) :
netrc environment variable configuration detected (GDAL_HTTP_NETRC_FILE)
please, make sure it is available to all R sessions. To learn more, see the instructions in Chapter 4 of the online book
The text was updated successfully, but these errors were encountered: