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

Can not find GTiff data in my PROCESSED file #108

Closed ljs19930709 closed 3 years ago

ljs19930709 commented 3 years ago

Hi,

I had struggled with this problem two days. My system is Windows 10. My codes as follows: library(MODIS) EarthdataLogin(usr = 'jingshan', pwd = 'L.........') lap = "D:/temp/MODIS/MODIS_ARC" odp = file.path(lap,"PROCESSED") MODISoptions(localArcPath = lap, outDirPath = odp) dates <- as.POSIXct( as.Date(c("02/06/2019","02/06/2019"),format = "%d/%m/%Y") ) dates2 <- transDate(dates[1],dates[2]) h = "11" v = "02" bands = c("110000000010000001") runGdal(product= 'MCD19A1',begin=dates2$beginDOY,end = dates2$endDOY,tileH = h,tileV = v, SDSstring = bands)

After I run this code, I just found that I have downloaded .hdf file in my MCD19A1.006 file and not .tiff file in my PROCESSED file.

Thanks a lot.

Best,

Jingshan

ljs19930709 commented 3 years ago

My sessionInfo() is R version 4.0.3 (2020-10-10) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 18362)

Matrix products: default

locale: [1] LC_COLLATE=Chinese (Simplified)_China.936 LC_CTYPE=Chinese (Simplified)_China.936
[3] LC_MONETARY=Chinese (Simplified)_China.936 LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_China.936

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

other attached packages: [1] ks_1.12.0 segmented_1.3-1 insol_1.2.2 RStoolbox_0.2.6 MODIS_1.2.3
[6] mapdata_2.3.0 maps_3.3.0 geosphere_1.5-10 openxlsx_4.2.3 rowr_1.1.3
[11] gdalUtils_2.0.3.2 ggplot2_3.3.3 rgdal_1.5-23 raster_3.4-5 sp_1.4-4
[16] pscl_1.5.5 ncdf4_1.17

loaded via a namespace (and not attached): [1] colorspace_2.0-0 ellipsis_0.3.1 class_7.3-17 mclust_5.4.7
[5] rprojroot_2.0.2 fs_1.5.0 proxy_0.4-25 remotes_2.2.0
[9] mvtnorm_1.1-1 prodlim_2019.11.13 fansi_0.4.1 lubridate_1.7.10
[13] codetools_0.2-16 splines_4.0.3 R.methodsS3_1.8.1 doParallel_1.0.16
[17] cachem_1.0.4 pkgload_1.2.0 nloptr_1.2.2.2 ptw_1.9-15
[21] pROC_1.17.0.1 caret_6.0-86 R.oo_1.24.0 rgeos_0.5-5
[25] shiny_1.5.0 compiler_4.0.3 assertthat_0.2.1 Matrix_1.2-18
[29] fastmap_1.1.0 cli_2.3.1 later_1.1.0.1 htmltools_0.5.1.1
[33] prettyunits_1.1.1 tools_4.0.3 gtable_0.3.0 glue_1.4.2
[37] reshape2_1.4.4 dplyr_1.0.5 tinytex_0.27 Rcpp_1.0.6
[41] vctrs_0.3.5 nlme_3.1-149 iterators_1.0.13 timeDate_3043.102
[45] xfun_0.19 gower_0.2.2 stringr_1.4.0 ps_1.6.0
[49] testthat_3.0.0 mime_0.10 lifecycle_1.0.0 devtools_2.3.2
[53] XML_3.99-0.5 MASS_7.3-53 scales_1.1.1 ipred_0.9-11
[57] promises_1.2.0.1 parallel_4.0.3 mapedit_0.6.0 curl_4.3
[61] memoise_2.0.0 rpart_4.1-15 stringi_1.4.6 maptools_1.1-1
[65] desc_1.3.0 foreach_1.5.1 e1071_1.7-6 pkgbuild_1.2.0
[69] zip_2.1.1 lava_1.6.9 rlang_0.4.10 pkgconfig_2.0.3
[73] bitops_1.0-6 lattice_0.20-41 purrr_0.3.4 sf_0.9-6
[77] recipes_0.1.15 processx_3.5.0 tidyselect_1.1.0 plyr_1.8.6
[81] magrittr_2.0.1 R6_2.5.0 generics_0.1.0 DBI_1.1.1
[85] pillar_1.5.1 foreign_0.8-80 withr_2.3.0 units_0.6-7
[89] survival_3.2-7 nnet_7.3-14 tibble_3.0.4 crayon_1.4.1
[93] KernSmooth_2.23-17 utf8_1.1.4 usethis_2.0.0 grid_4.0.3
[97] data.table_1.14.0 callr_3.6.0 ModelMetrics_1.2.2.2 digest_0.6.27
[101] classInt_0.4-3 xtable_1.8-4 httpuv_1.5.5 R.utils_2.10.1
[105] stats4_4.0.3 munsell_0.5.0 sessioninfo_1.1.1

ljs19930709 commented 3 years ago

MODISoptions()

STORAGE:


localArcPath : D:/学习材料/卫星影像处理学习/MODIS/MODIS_ARC outDirPath : D:/学习材料/卫星影像处理学习/MODIS/MODIS_ARC/PROCESSED

DOWNLOAD:


MODISserverOrder : LPDAAC, LAADS dlmethod : curl stubbornness : high wait : 0.5 quiet : TRUE

PROCESSING:


GDAL : 3.0.4 MRT : Enabled pixelSize : asIn outProj : asIn resamplingType : NN dataFormat : GTiff cellchunk : 1

ljs19930709 commented 3 years ago

I have solved it. When I changed my path into C:/, it works. I thought the reason was that my GDAL was installed into C:/.