SAVE BIOMOD2 OUTPUT FOR MAPPING IN ARCMAP

203 views
Skip to first unread message

Gafarou AGOUNDE

unread,
Jul 2, 2021, 10:47:26 AM7/2/21
to Maxent

Hi everyone, hope you are doing fine?.

In fact, I’m running some SMDs for a species by using the Biomod2 package. All models were run very well. However, I have the problem to save the output results for mapping in ArcGIS. Indeed, I used the code below and it worked only to save for the ''current distribution habitats''. But when I used the same code for ''future distribution'' did not work because I did not find any raster in my directory and had a warning message. Please find attached my directory (RCP4.5) capture to see the kind of files generated by the models.

What do warning messages mean?

Could someone, please help me to fix this problem?

Thanks a lot.........!

 

CODE :

# Uncomment to save map as a raster, if you want

Ensemble_raster <-raster("Moringa.oleifera/proj_2050_RCP45/proj_2050_RCP45_ClampingMask.grd")

writeRaster(Ensemble_raster, file="Moringa.oleifera", format="GTiff")

 

Warning message :

> Ensemble_raster <- raster("Moringa.oleifera/proj_2050_RCP45/proj_2050_RCP45_ClampingMask.grd")

Warning message:

In showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :

  Discarded datum Unknown based on WGS84 ellipsoid in Proj4 definition

> writeRaster(Ensemble_raster, file="Moringa.oleifera", format="GTiff")

Warning message:

In showSRID(SRS_string, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :

  Discarded datum Unknown_based_on_WGS84_ellipsoid in Proj4 definition

Capture.JPG

Bede-Fazekas Ákos

unread,
Jul 2, 2021, 1:02:53 PM7/2/21
to max...@googlegroups.com
Hello,

The warning is about the CRS of your raster. The underlying PROJ module changed a lot in the last years (please refer to the relevant discussion on the r-sig-geo mailing list), and the warning tells you that some part of the CRS definition (i.e. the datum) of your raster is not compatible with the new PROJ version.
Anyway, it is simply a warning. You can skip it. Since you did not get an error, writeRaster() succeeded. The only question is where your raster file was saved. I guess that getwd() will answer this question.

Have a nice weekend,
Ákos
--
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/f061bcc1-a743-4ddd-b6d4-8717f35690b2n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages