fdetsch / MODIS

Download and processing framework for MODIS imagery. The package provides automated access to the global online data archives LP DAAC, LAADS and NSIDC as well as processing capabilities such as file conversion, mosaicking, subsetting and time series.
Other
58 stars 27 forks source link

MCD15A2H not downloading/processing all products? #40

Closed cherrytree456 closed 6 years ago

cherrytree456 commented 6 years ago

I'm downloading and processing MCD15A2H which is supposed to have 6 layers. When I use this package to download and project this product I only see three products: Fpar_500m, FparLai_QC, and FparExtra_QC.

> tfs
$MCD15A2H.006
$MCD15A2H.006$`2017-07-20`
[1] "c:/Temp/MODIS/processed/MCD15A2H.006/MCD15A2H.A2017201.Fpar_500m.tif"   "c:/Temp/MODIS/processed/MCD15A2H.006/MCD15A2H.A2017201.FparLai_QC.tif"  
[3] "c:/Temp/MODIS/processed/MCD15A2H.006/MCD15A2H.A2017201.FparExtra_QC.tif"

R script

devtools::install_github("MatMatt/MODIS", ref = "develop")
library(MODIS)
MODISoptions(MODISserverOrder = c("LPDAAC", "LAADS"),
             dlmethod = "wget",
             quiet = TRUE,
             gdalPath = "C:/OSGeo4W64/bin/",
             pixelSize = "asIn")
tfs <- runGdal(product = "MCD15A2H",
               tileH = 11, tileV = 4, outProj="EPSG:32615", 
               begin = "2017200", end = "2017206", 
               SDSstring = "101100", job = "MCD15A2H.006")

Console output

> devtools::install_github("MatMatt/MODIS", ref = "develop")
Skipping install of 'MODIS' from a github remote, the SHA1 (0892cc8b) has not changed since last install.
  Use `force = TRUE` to force installation
> library(MODIS)
Loading required package: mapdata
Loading required package: maps
Loading required package: raster
Loading required package: sp
> MODISoptions(MODISserverOrder = c("LPDAAC", "LAADS"),
+              dlmethod = "wget",
+              quiet = TRUE,
+              gdalPath = "C:/OSGeo4W64/bin/",
+              pixelSize = "asIn")
Detecting available write drivers!
Found: 61 candidate drivers, detecting file extensions...
44 usable drivers detected!

STORAGE:
_______________
localArcPath : c:/MODIS/temp/ 
outDirPath   : c:/Temp/MODIS/processed/ 

DOWNLOAD:
_______________
MODISserverOrder : LPDAAC, LAADS 
dlmethod         : wget 
stubbornness     : high 
wait             : 0.5 
quiet            : TRUE 

PROCESSING:
_______________
GDAL           : GDAL 1.11.2, released 2015/02/10 
MRT            : Version 4.1 (March 2011) 
pixelSize      : asIn 
outProj        : asIn 
resamplingType : NN 
dataFormat     : GTiff 

> tfs <- runGdal(product = "MCD15A2H",
+                tileH = 11, tileV = 4, outProj="EPSG:32615", 
+                begin = "2017200", end = "2017206", 
+                SDSstring = "101100", job = "MCD15A2H.006")
########################
outProj          =  +init=epsg:32615 +proj=utm +zone=15 +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0 
pixelSize        =  asIn 
resamplingType   =  near 
Output Directory =  c:/Temp/MODIS/processed//MCD15A2H.006 
########################
Downloading structure on 'LPDAAC' for: MCD15A2H.006
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = c:\wget\GnuWin32/etc/wgetrc
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = c:\wget\GnuWin32/etc/wgetrc

Session info:

R version 3.4.3 (2017-11-30)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                           LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] MODIS_1.1.3   raster_2.6-7  sp_1.2-7      mapdata_2.2-6 maps_3.2.0   

loaded via a namespace (and not attached):
 [1] rgdal_1.2-16    units_0.5-1     digest_0.6.14   htmltools_0.3.6 ptw_1.9-12      R6_2.2.2        curl_3.1        XML_3.98-1.9    grid_3.4.3     
[10] bitops_1.0-6    e1071_1.6-8     devtools_1.13.4 httr_1.3.1      pillar_1.1.0    compiler_3.4.3  sf_0.6-0        httpuv_1.3.5    rgeos_0.3-26   
[19] git2r_0.21.0    lattice_0.20-35 mime_0.5        DBI_0.7         shiny_1.0.5     mapedit_0.3.2   classInt_0.1-24 magrittr_1.5    rlang_0.1.6    
[28] udunits2_0.13   maptools_0.9-2  foreign_0.8-69  RCurl_1.95-4.10 yaml_2.1.16     tools_3.4.3     parallel_3.4.3  withr_2.1.1     nloptr_1.0.4   
[37] xtable_1.8-2    class_7.3-14    memoise_1.1.0   Rcpp_0.12.15   
cherrytree456 commented 6 years ago

I'm sorry, I found the error in my code. I needed to change my SDString to 111111. Sorry to bother you w/ this issue.

fdetsch commented 6 years ago

No worries, always glad to help. Maybe you should consider either deleting your SO question or marking it as solved.

cherrytree456 commented 6 years ago

Agreed, SO question deleted.

On Thu, Feb 8, 2018 at 2:20 AM, Florian Detsch notifications@github.com wrote:

No worries, always glad to help. Maybe you should consider either deleting your SO question https://stackoverflow.com/questions/48569113/r-modis-packageremote-connection-failed/48580643?noredirect=1#comment84177563_48580643 or mark it as solved.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/MatMatt/MODIS/issues/40#issuecomment-364035697, or mute the thread https://github.com/notifications/unsubscribe-auth/AiiAP0ihTrBH3ockzuPXKPwFqOaMl55mks5tSq5EgaJpZM4R80-S .