LandCover.Rd 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. \name{LandCover}
  2. \alias{LandCover}
  3. \title{Summaries on tiles of land cover data.}
  4. \description{The MODIS product MCD12Q1 contains data bands for land cover types. This function summarises that data, reporting: the most common land cover type, the richness of land cover types, and landscape diversity and heterogeneity using Simpson's D and Simpson's measure of evenness.
  5. }
  6. \usage{
  7. LandCover(Dir=".", Band)
  8. }
  9. \arguments{
  10. \item{Dir}{Character string; an optional argument to specify the subdirectory where downloaded ascii files to be processed are located and the ouput is written: default Dir="." extracts files from the working directory.
  11. }
  12. \item{Band}{Character string; the shortname code that identifies what band type of land cover data from the MCD12Q1 product is being processed.
  13. }
  14. }
  15. \details{No data fill values are removed from the tiles before summaries are reported. Additional to the no data fill values, the land cover bands include an 'Unclassified' land cover class. This would indicate poor quality, but is not removed.
  16. }
  17. \value{One csv file is written as an output to the function. It contains all of the summaries for each tile input, from all ascii files read in. Each row corresponds to a different tile of pixels - from a different time-step in the time-series, or from a different time-series (ascii file) altogether. Columns are: latitude, longitude, date, land cover band type, most common land cover class, landscape richness, Simpson's D, Simpson's evenness, proportion of data that are no data fill values.
  18. }
  19. \references{
  20. \url{https://lpdaac.usgs.gov/products/modis_products_table/mcd12q1}
  21. }
  22. \author{Sean Tuck}
  23. \seealso{ \code{\link[MODISTools:MODISSubsets]{MODISSubsets}}
  24. \code{\link[MODISTools:MODISSummaries]{MODISSummaries}}
  25. }
  26. \examples{
  27. \dontrun{ # dontrun() used because running the example requires internet access.
  28. data(SubsetExample)
  29. # Extend the years to download for
  30. SubsetExample$start.date <- 2001
  31. SubsetExample$end.date <- 2009
  32. MODISSubsets(LoadDat=SubsetExample, Product="MCD12Q1", Bands=c("Land_Cover_Type_1"),
  33. Size=c(3,3), StartDate=TRUE)
  34. LandCover(Band="Land_Cover_Type_1")
  35. }
  36. }