MODIS_Opts.R 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # This file contains default values for the R package 'MODIS'.
  2. # version 0.8.13
  3. # Consult '?MODISoptions' for details and explanations!
  4. #########################
  5. # 1.) Set path for HDF-archive and processing output location.
  6. # ON WINDOWS ALSO USE SINGLE FORWARD SLASH '/'
  7. # If path does not exist it is created!
  8. # Work also with network share!
  9. # consult '?MODISoptions' for more details
  10. # All HDF-data will be (properly) stored in this directory.
  11. localArcPath <- file.path(gsub("\\\\", "/", tempdir()), 'MODIS_ARC')
  12. # Default output location for MODIS package processing results.
  13. outDirPath <- file.path(localArcPath, 'PROCESSED')
  14. #########################
  15. # 2.) Download:
  16. # consult '?MODISoptions' for more details
  17. dlmethod <- 'auto' # Download method passed to ?download.file, 'auto' is always a good choice, if you encouter problems (like 'file not found') switch to 'wget'
  18. stubbornness <- 'high' # How stubborn should MODIS re-try to connect to ftp/http?
  19. wait <- 0.5
  20. quiet <- FALSE
  21. #########################
  22. # 3.) Processing defaults
  23. # It is highly recommended to not modify here, at least not 'resamplingType' as there are several layers that require NN (i.e. VI_Quality, Day of the year,...)!
  24. # consult '?MODISoptions' for more details
  25. resamplingType <- 'NN'
  26. outProj <- 'asIn'
  27. pixelSize <- 'asIn'
  28. dataFormat <- 'GTiff'
  29. #########################
  30. # 4.) Set path to GDAL _bin_ directory
  31. # More related to Windows, but also to other OS in case of a non standard location of GDAL
  32. # ON WINDOWS install 'OSGeo4W' (recommanded) or 'FWTools', and use SINGLE FORWARD SLASH ('/')!
  33. # consult '?MODISoptions' for more details
  34. # Run: 'MODIS:::.checkTools()' to try to autodetect.
  35. # Example:
  36. # gdalPath <- 'C:/OSGeo4W/bin'