Comments (21)
@AlkaRani29 unfortunately the owner can no longer provide assistance for this package. If you need to ask for help or make a question about {MODIStsp} functionalities, refer to the package documentation first, and check if the topic was already addressed within closed issues. Then, address remaining doubts to public forums like StackOverflow, where other users could eventually provide useful ticks. If you are able to correct a bug, please address your changes in a pull request.
from modistsp.
This was fixed with #256, you need to update the package from Github using the command remotes::install_github("ropensci/MODIStsp")
from modistsp.
I leave this issue opened until CRAN version will be updated.
from modistsp.
Issue remains after installing from github ropensci/MODIStsp.
from modistsp.
O problema permanece após a instalação do github ropensci/MODIStsp.
Eu havia instalado pelo CRAN (v.2.0.8), deu usuário/senha inválida, então desinstalei, instalei novamente pelo #remotes::install_github("ropensci/MODIStsp"), aí funcionou bem (v.2.0.7)
from modistsp.
I have updated R to version R version 4.2.1 (2022-06-23 ucrt) and installed remotes::install_github("ropensci/MODIStsp") (v.2.0.7) and get the same result User name and password not valid. I have double checked my login on the earth data website. I have included a reproducible example below.
#--Load Libraries
remotes::install_github("mikejohnson51/AOI")
remotes::install_github("ropensci/MODIStsp", force=TRUE)
packageVersion("MODIStsp")
library(sf)
library(AOI)
library(MODIStsp)
#--Make and set working dir
working.dir.path<-file.path(tempdir(), "temp")
dir.create(working.dir.path)
setwd(working.dir.path)
#--Set Area of Interest
AOI = aoi_get(state = "IL")
st_write(AOI, dsn=file.path(working.dir.path), layer="tmp.poly.shp", driver='ESRI Shapefile', delete_layer=TRUE)
spatial.file.path <- paste0(file.path(working.dir.path,"tmp.poly.shp"))
#--Get MODIS Landcover data
MODIStsp(gui = FALSE,
out_folder = working.dir.path,
out_folder_mod = working.dir.path,
selprod = "LandCover_Type_Yearly_500m (MCD12Q1)",
bandsel = "LC1",
sensor = "Terra",
user = "login" ,
password = "password",
start_date = "2020.01.01",
end_date = "2020.12.31",
verbose = TRUE,
spatmeth = "file",
spafile = dirname(spatial.file.path),
delete_hdf = TRUE,
out_format = "GTiff",
ts_format = "R RasterStack",
reprocess = TRUE,
parallel = 8
)
GDAL version in use: 3.4.3
[Thu Aug 25 15:34:36 2022] MODIStsp --> Starting processing
[Thu Aug 25 15:34:36 2022] Accessing http server at: https://e4ftl01.cr.usgs.gov/MOTA/MCD12Q1.006/
[Thu Aug 25 15:34:37 2022] Retrieving list of available Terra
Files for Year 2020
Error in MODIStsp_download(modislist, proc_opts$out_folder_mod, download_server, :
Username and/or password are not valid. Please provide
valid ones!
from modistsp.
@rsmiller74 it is an issue related to your credentials, as you can see below.
#--Get MODIS Landcover data
MODIStsp(gui = FALSE,
...,
user = "rsmiller" ,
password = "Dall2020hunt",
...
)
GDAL version in use: 3.5.1
[Fri Aug 26 08:28:27 2022] MODIStsp --> Starting processing
[Fri Aug 26 08:28:27 2022] Accessing http server at: https://e4ftl01.cr.usgs.gov/MOTA/MCD12Q1.006/
[Fri Aug 26 08:28:28 2022] Retrieving list of available ` Terra ` Files for Year 2020
Errore in MODIStsp_download(modislist, proc_opts$out_folder_mod, download_server, :
Username and/or password are not valid. Please provide
valid ones!
#--Get MODIS Landcover data
MODIStsp(gui = FALSE,
...,
user = "*** my username ***" ,
password = "*** my password ***",
...
)
GDAL version in use: 3.5.1
[Fri Aug 26 08:29:14 2022] MODIStsp --> Starting processing
[Fri Aug 26 08:29:14 2022] Accessing http server at: https://e4ftl01.cr.usgs.gov/MOTA/MCD12Q1.006/
[Fri Aug 26 08:29:14 2022] Retrieving list of available ` Terra ` Files for Year 2020
[Fri Aug 26 08:29:19 2022] Downloading Terra Files for date: 2020_01_01 : 1 of: 4
[Fri Aug 26 08:29:35 2022] Downloading Terra Files for date: 2020_01_01 : 2 of: 4
[Fri Aug 26 08:29:50 2022] Downloading Terra Files for date: 2020_01_01 : 3 of: 4
[Fri Aug 26 08:30:12 2022] Downloading Terra Files for date: 2020_01_01 : 4 of: 4
[Fri Aug 26 08:30:26 2022] [Fri Aug 26 08:30:26 2022] 4 files for date: 2020.01.01 were successfully downloaded!
...
from modistsp.
from modistsp.
Version 2.0.9, which includes the fix for this issue, was released on CRAN; I'm closing this.
from modistsp.
Related Issues (20)
- MODIStsp GUI issues HOT 6
- KNDVI (expression) - MODIStsp HOT 3
- bounding box does not work HOT 1
- Error in .local(.Object, ...) when trying to use MODIStsp_extract HOT 2
- M*D17A3H server change HOT 2
- Update products HOT 5
- Problems of processing MCD19A1 and MCD19A3 HOT 1
- Timeout HOT 1
- Timeout MODIS server error when downloading HOT 4
- Problem with GUI in GitHub version 2.0.6.9000 of MODIStsp HOT 2
- Connection refused HOT 2
- How to download the NDVI-MODIS product of the version 6.1 using the package MODIStsp v.2.0.6 HOT 2
- The package doesn't work on the new Spectral Indexes I added HOT 1
- Missing dependency for pkgdown HOT 2
- Fix image location for pkgdown HOT 7
- Call for maintainer HOT 9
- Issues related to product version update in #238 HOT 23
- Spatial packages update HOT 2
- Error: http server seems to be down! Please try again later. Aborting! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modistsp.