2

我是使用 R 的新手……我正在尝试预处理哨兵 1 数据;我正在使用一个包getSpatialDatahttps://rdrr.io/github/16EAGLE/getSpatialData/man/getSpatialData-package.html)。我下载了图像,它可以工作。但是,当我尝试使用该功能时,prepSentinel我会收到以下错误消息:

    Preparing 'C:....get_data/Sentinel- 
    1//S1A_IW_SLC__1SDV_20190120T170653_20190120T170720_025564_02D624_98F9.zip'...
    Error: Selected tiles are not contained within dataset.

我遵循了这段代码(简单地从 GitHub 复制...)

    ## Define time range and platform
    time_range <-  c("2019-01-08", "2019-01-21")
    platform <- "Sentinel-1"

   ## set login credentials and an archive directory
   login_CopHub(username = "------", password = '------') #asks for password or define 'password'
   #set_archive("/path/to/archive/")
   set_archive('C:/Users/mfrig/Desktop/tesi/ISAT_nuovo')

   ## Use getSentinel_query to search for data (using the session AOI)
   records <- getSentinel_query(time_range = time_range, platform = platform)

   ## Get an overview of the records
   View(records) #get an overview about the search records
   colnames(records) #see all available filter attributes
   unique(records$producttype) #use one of the, e.g. to see available processing levels


   ## Filter the records
   records_filtered <- records[which(records$producttype == "GRD"),] #filter by Level
   #records_filtered <- records_filtered[as.numeric(records_filtered$cloudcoverpercentage) <= 100, ] 
   #filter by clouds
   View(records_filtered)


   ## Download some datasets
   datasets <- getSentinel_data(records [c(1),])

   # Make them ready to use
   datasets_prep <- prepSentinel(datasets, format = "tiff")

我已经尝试prepSentinel使用 Sentinel 2 数据的功能并且它可以工作,但是当我下载 Sentinel 1 数据时没有。有什么建议吗?

多谢

4

0 回答 0