WorldCLIM’s CMIP6 Future Climate models data download errors

95 views
Skip to first unread message

shawkat sohel

unread,
Apr 13, 2024, 6:02:44 AMApr 13
to Maxent

Hi,

I'm facing some worldclim data issues specifically for the following WorldCLIM’s CMIP6 Future Climate Data models, available at https://www.worldclim.org/data/cmip6/cmip6_clim30s.html. These data are also available here https://geodata.ucdavis.edu/cmip6/30s/EC-Earth3-Veg/

Data details:

wc2.1_30s_bioc_EC-Earth3-Veg_ssp126_2021-2040.tif

wc2.1_30s_bioc_EC-Earth3-Veg_ssp245_2081-2100.tif

wc2.1_30s_bioc_EC-Earth3-Veg_ssp370_2041-2060.tif

Spatial Resolution: 30 seconds

Models and issues:

Data Error: Downloaded Raster was empty / No Data generated on the map (In ArcGIS/QGIS)

Is there a solution to these errors? Alternatively, where can I get error-free data?

Thank you.

Shawkat

Message has been deleted
Message has been deleted

Beatriz

unread,
Apr 13, 2024, 7:55:52 AMApr 13
to max...@googlegroups.com
  Hi,

I've encountered this issue before; some raster files from specific models are empty. What you could do is download the 'pr', 'tn', and 'tx' variables from the desired global circulation model, scenario, and year, and then create the 19 bioclimatic variables from them in R.


example: 

library(raster)

files_prec <- paste0(getwd(), "/wc2.1_30s_prec_MIROC6_ssp370_2021-2040.tif")
files_tmin <- paste0(getwd(), "/wc2.1_30s_tmin_MIROC6_ssp370_2021-2040.tif")
files_tmax <- paste0(getwd(), "/wc2.1_30s_tmax_MIROC6_ssp370_2021-2040.tif")


prec <- stack(files_prec)
tmin <- stack(files_tmin)
tmax <- stack(files_tmax)

print(prec)
print(tmin)
print(tmax)

nlayers(prec)
nlayers(tmin)
nlayers(tmax)

# Calculate the bioclimatic variables
library(dismo)
bioclimatics_vars <- biovars(prec = prec, tmin = tmin, tmax = tmax)
print( bioclimatics_vars)

# Create a folder to save raster files
dir.create("bioclimatics")

#Iterating over each layer of the RasterBrick object.
lapply(1:nlayers(bioclim_vars), function(i) {
  # Extract the layer i from the RasterBrick object
  layer <- bioclim_vars[[i]]
 
#Defining the filename
 filename <- paste0("variaveis_bioclimaticas/bioclim_var_", i, ".tif")
 
#Save the layer as a raster file
  writeRaster(layer, filename, format = "GTiff", overwrite = TRUE)
})


Não contém vírus.www.avast.com

--
You received this message because you are subscribed to the Google Groups "Maxent" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maxent+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/maxent/5b0af0db-10ef-48c7-b9ab-b08e88c8aa9cn%40googlegroups.com.

shawkat sohel

unread,
Apr 13, 2024, 8:39:42 AMApr 13
to max...@googlegroups.com
Hi Beatriz,
Thank you for the suggestions. I need to manage cloud space to run this since I don't have much space in my C drive. I will update you.
Thanks again.

Kind regards,

You received this message because you are subscribed to a topic in the Google Groups "Maxent" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/maxent/RoJ5hpy2M8U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to maxent+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/maxent/CAHTPBcgY3BqL5MM%3Dn%2BzqFdXonMakR0n0o8iHN8vmu%3D%2BoqSUfcA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages