使用流域形状文件对选定流域使用Rstudio问题的AVHRR GIMMS NDVI3g数据处理

时间:2018-11-29 22:23:12

标签: r binary gis raster geotiff

我想通过每月数据为我的流域提取NDVI。我正在按月数据使用以下链接获取NDVI的二进制数据集 https://ecocast.arc.nasa.gov/data/pub/gimms/3g.v0/1980s_new/

数据是二进制数据。我正在使用GIMMS软件包来提取数据,方法是先使用以下两个链接将二进制数据转换为栅格tif格式 https://metvurst.wordpress.com/2015/10/14/introducing-the-gimms-package-6/ https://cran.r-project.org/web/packages/gimms/gimms.pdf

## install 'gimms' package
install.packages("gimms")

## load 'gimms' package
library(gimms)

library(devtools)
install_github("environmentalinformatics-marburg/gimms", ref = "develop")


gimms_files <- updateInventory(sort = TRUE)

## Trying to update GIMMS inventory from server...
## Online update of the GIMMS file inventory successful!

gimms_files[1:5]

## [1] "http://ecocast.arc.nasa.gov/data/pub/gimms/3g.v0/1980s_new/geo81jul15a.n07-VI3g"
## [2] "http://ecocast.arc.nasa.gov/data/pub/gimms/3g.v0/1980s_new/geo81jul15b.n07-VI3g"
## [3] "http://ecocast.arc.nasa.gov/data/pub/gimms/3g.v0/1980s_new/geo81aug15a.n07-VI3g"
## [4] "http://ecocast.arc.nasa.gov/data/pub/gimms/3g.v0/1980s_new/geo81aug15b.n07-VI3g"
## [5] "http://ecocast.arc.nasa.gov/data/pub/gimms/3g.v0/1980s_new/geo81sep15a.n07-VI3g"

我在以下代码中发现以下错误。如何消除这些错误。谢谢

gimms_files <- updateInventory(sort = TRUE)
Error in updateInventory(sort = TRUE) : 
  could not find function "updateInventory"
> 
> ## Trying to update GIMMS inventory from server...
> ## Online update of the GIMMS file inventory successful!
> 
> gimms_files[1:5]
Error: object 'gimms_files' not found
> 
> ## [1] "http://ecocast.arc.nasa.gov/data/pub/gimms/3g.v0/1980s_new/geo81jul15a.n07-VI3g"
> ## [2] "http://ecocast.arc.nasa.gov/data/pub/gimms/3g.v0/1980s_new/geo81jul15b.n07-VI3g"
> ## [3] "http://ecocast.arc.nasa.gov/data/pub/gimms/3g.v0/1980s_new/geo81aug15a.n07-VI3g"
> ## [4] "http://ecocast.arc.nasa.gov/data/pub/gimms/3g.v0/1980s_new/geo81aug15b.n07-VI3g"
> ## [5] "http://ecocast.arc.nasa.gov/data/pub/gimms/3g.v0/1980s_new/geo81sep15a.n07-VI3g"
> gimms_files <- updateInventory(sort = TRUE)
Error in updateInventory(sort = TRUE) : 
  could not find function "updateInventory"
> 
> ## Trying to update GIMMS inventory from server...
> ## Online update of the GIMMS file inventory successful!
> 
> gimms_files[1:5]
Error: object 'gimms_files' not found
> 
> ## [1] "http://ecocast.arc.nasa.gov/data/pub/gimms/3g.v0/1980s_new/geo81jul15a.n07-VI3g"
> ## [2] "http://ecocast.arc.nasa.gov/data/pub/gimms/3g.v0/1980s_new/geo81jul15b.n07-VI3g"
> ## [3] "http://ecocast.arc.nasa.gov/data/pub/gimms/3g.v0/1980s_new/geo81aug15a.n07-VI3g"
> ## [4] "http://ecocast.arc.nasa.gov/data/pub/gimms/3g.v0/1980s_new/geo81aug15b.n07-VI3g"
> ## [5] "http://ecocast.arc.nasa.gov/data/pub/gimms/3g.v0/1980s_new/geo81sep15a.n07-VI3g"

0 个答案:

没有答案