bcgov / wetlandmapR

Scripts, tools and example data for mapping wetland ecosystems using data driven R statistical methods like Random Forests and open source GIS
Apache License 2.0
17 stars 6 forks source link

Change nodata values to -9999 #9

Open sicasley opened 5 years ago

sicasley commented 5 years ago

https://github.com/bcgov/wetlandmapR/blob/00419d7c44c8d6ff1afb577eec5f1ae5b8a67355/R/raster_stack.R#L153-L155

na.value in ModelMap::model.mapmake defaults to -9999 (value that indicates NA in the predictor rasters), therefore input rasters should be prepared with a common value for nodata - makes sense to use -9999.