rspatial / geodata

download geographic data
GNU General Public License v3.0
147 stars 15 forks source link

cmip_tile doesn't seem to work - HTTP status was '404 Not Found' #26

Closed Canderson156 closed 1 year ago

Canderson156 commented 1 year ago

Based on the help file, I believe I've specified all of the inputs correctly, and the function does not seem to be able to retrieve any of these files:

cmip6_tile(-105, 70, "CanESM5", "245", "2041-2060", "bioc", path=tempdir(), res = 2.5) trying URL 'https://geodata.ucdavis.edu/cmip6/tiles/CanESM5/ssp245/wc2.1_30s_bioc_CanESM5_ssp245_2041-2060_tile-3.tif' Error in utils::download.file(url = url, destfile = filename, quiet = quiet, : cannot open URL 'https://geodata.ucdavis.edu/cmip6/tiles/CanESM5/ssp245/wc2.1_30s_bioc_CanESM5_ssp245_2041-2060_tile-3.tif' In addition: Warning messages: 1: In utils::download.file(url = url, destfile = filename, quiet = quiet, : downloaded length 0 != reported length 282 2: In utils::download.file(url = url, destfile = filename, quiet = quiet, : cannot open URL 'https://geodata.ucdavis.edu/cmip6/tiles/CanESM5/ssp245/wc2.1_30s_bioc_CanESM5_ssp245_2041-2060_tile-3.tif': HTTP status was '404 Not Found' Error in .downloadDirect(turl, outfname[i], ...) : download failed

cmip6_tile(-105, 70, "CanESM5", "245", "2041-2060", "bioc", path=tempdir(), res = 10) trying URL 'https://geodata.ucdavis.edu/cmip6/tiles/CanESM5/ssp245/wc2.1_30s_bioc_CanESM5_ssp245_2041-2060_tile-3.tif' Error in utils::download.file(url = url, destfile = filename, quiet = quiet, : cannot open URL 'https://geodata.ucdavis.edu/cmip6/tiles/CanESM5/ssp245/wc2.1_30s_bioc_CanESM5_ssp245_2041-2060_tile-3.tif' In addition: Warning messages: 1: In utils::download.file(url = url, destfile = filename, quiet = quiet, : downloaded length 0 != reported length 282 2: In utils::download.file(url = url, destfile = filename, quiet = quiet, : cannot open URL 'https://geodata.ucdavis.edu/cmip6/tiles/CanESM5/ssp245/wc2.1_30s_bioc_CanESM5_ssp245_2041-2060_tile-3.tif': HTTP status was '404 Not Found' Error in .downloadDirect(turl, outfname[i], ...) : download failed

cmip6_tile(-60, 45, "CanESM5", "245", "2041-2060", "bioc", path=tempdir(), res = 10) trying URL 'https://geodata.ucdavis.edu/cmip6/tiles/CanESM5/ssp245/wc2.1_30s_bioc_CanESM5_ssp245_2041-2060_tile-17.tif' Error in utils::download.file(url = url, destfile = filename, quiet = quiet, : cannot open URL 'https://geodata.ucdavis.edu/cmip6/tiles/CanESM5/ssp245/wc2.1_30s_bioc_CanESM5_ssp245_2041-2060_tile-17.tif' In addition: Warning messages: 1: In utils::download.file(url = url, destfile = filename, quiet = quiet, : downloaded length 0 != reported length 282 2: In utils::download.file(url = url, destfile = filename, quiet = quiet, : cannot open URL 'https://geodata.ucdavis.edu/cmip6/tiles/CanESM5/ssp245/wc2.1_30s_bioc_CanESM5_ssp245_2041-2060_tile-17.tif': HTTP status was '404 Not Found' Error in .downloadDirect(turl, outfname[i], ...) : download failed

cmip6_tile(0, 0, "CanESM5", "245", "2041-2060", "bioc", path=tempdir(), res = 10) trying URL 'https://geodata.ucdavis.edu/cmip6/tiles/CanESM5/ssp245/wc2.1_30s_bioc_CanESM5_ssp245_2041-2060_tile-43.tif' Error in utils::download.file(url = url, destfile = filename, quiet = quiet, : cannot open URL 'https://geodata.ucdavis.edu/cmip6/tiles/CanESM5/ssp245/wc2.1_30s_bioc_CanESM5_ssp245_2041-2060_tile-43.tif' In addition: Warning messages: 1: In utils::download.file(url = url, destfile = filename, quiet = quiet, : downloaded length 0 != reported length 282 2: In utils::download.file(url = url, destfile = filename, quiet = quiet, : cannot open URL 'https://geodata.ucdavis.edu/cmip6/tiles/CanESM5/ssp245/wc2.1_30s_bioc_CanESM5_ssp245_2041-2060_tile-43.tif': HTTP status was '404 Not Found' Error in .downloadDirect(turl, outfname[i], ...) : download failed

vlonde commented 1 year ago

Hi everyone. I'm getting the same error as @Canderson156 when downloading data from WorldClim, SoilGrids and Landcover. Here it's an example:

get.crop = landcover(var = "cropland", path = tempdir()) trying URL 'https://geodata.ucdavis.edu/geodata/landuse/WorldCover_cropland_30s.tif' Error in utils::download.file(url = url, destfile = filename, quiet = quiet, : cannot open URL 'https://geodata.ucdavis.edu/geodata/landuse/WorldCover_cropland_30s.tif' In addition: Warning message: In utils::download.file(url = url, destfile = filename, quiet = quiet, : URL 'https://geodata.ucdavis.edu/geodata/landuse/WorldCover_cropland_30s.tif': Timeout of 900 seconds was reached Error in .downloadDirect(url, filepath, ...) : download failed Please help us @rhijmans @Nowosad @AramburuMerlos !

Nowosad commented 1 year ago

Hi @vlonde -- it seems like a server issue (I am also unable to download this dataset).

vlonde commented 1 year ago

Hi @Nowosad It's strange because none of the databases is working (WorldClim, SoilGrids, landcover)

rhijmans commented 1 year ago

@Canderson156: apologies that it took me so long. I think what happened is that there was a failed download that was cached; and therefore all subsequent downloads of the same file also failed. I have now changed a setting to prevent that.