Closed nreguera closed 5 years ago
Hi,
This sounds like a possible download error.
Could you delete all files and folder with "KEN" in the name in the polygons folder in your data directory?
Then rerun for the download of polygons to repeat.
So, this is what I did:
I couldn´t see anything in the data folder (/.Rnightlights/data), and the message kept arising.
I tried with another country (MMR), and it worked almost until the end, where I got another error. You can see this error attaced.
Then I tried again with KEN, and it worked, but happened the same as previously with MMR. If you want I can open another wire for this, as it looks a different issue.
Btw, after the two previous loads (MMR and KEN) in the data folder only appears one file (NL_STRUCT_MMR_GADM-3.6)
This looks like the problem related to downloading the tile:
This is the kind of output we are expecting:
Is it possible the downloads are being interrupted?
Mmm I deleted all the files and tried again, but I still get the same messages (the ones you pointed out).
I am in a public wireless hotspot but the connection is quite good...
Should I remove all the files related to the countries and try again?
Hmm. Could they be restricting large downloads? Try downloading the tile directly e.g. try this https://data.ngdc.noaa.gov/instruments/remote-sensing/passive/spectrometers-radiometers/imaging/viirs/dnb_composites/v10//201204/vcmcfg/SVDNB_npp_20120401-20120430_75N060W_vcmcfg_v10_c201605121456.tgz
Don´t thing so, I have downloaded virtual machines of 3/4 Gbs...
I have reset and deleted all data, even in R session, and now it looks it´s downloading properly, despite a bit slow. Wait until it finish and I will let you know.
Okay. Yes. This looks positive. If the download completes fine it should run successfully.
If you want faster downloads you can experiment with the aria2
option by installing https://aria2.github.io/ and setting pkgOptions(downloadMethod="aria")
Hi Chris,
Yesterday I had to interrupt the download because I needed to leave, and now I am getting the same problems. What should I clean to restart the download?
Hi Natxo,
Delete the .tif and/or .tgz files corresponding to the interrupted download in the tiles folder.
Ok, it was working until the internet connection fell down, so I need to restart right? It would be nice to be able to continue the download where it was cut...
Noted. The aria option has this capability but it is a bit more complex when using the default R downloader.
I am going to try with aria. I just downloaded it, and I am wondering if I need to install it or set it up to use it with Rnightlights package...
Just install it and ensure you can access it globally by running aria2c from the commandline. (If it is not accessible after install, you can add the installation folder to the PATH
environment variable). Then run pkgOptions(downloadMethod='aria')
before running getCtryNlData
.
Thanks for your support Chris, I think we can close this issue and move on.
Hi Chris,
I am trying to reproduce the example in your blog, but I got an error message:
I attach you a screenshot where you can see the few lines I input when got the message.
Thanks.