HopkinsIDD / gavi_vimc_cholera

VIMC cholera model - estimating impact of oral cholera vaccine
1 stars 0 forks source link

align_rasters #58

Open eclee25 opened 2 years ago

eclee25 commented 2 years ago

' @description Align a raster to the extent and resolution of the worldpop rasters and GADM shapefiles

' @param datapath path to input data

' @param country country code

' @param orig_raster Raster* object that should be aligned to that in WorldPop and GADM

' @return Raster* object with aligned extent and resolution at country level

' @export

' @include load_shapefile_by_country.R load_worldpop_by_country.R

Tests

  1. The extent of orig_raster and the returned object should be the same.
  2. The resolution of orig_raster and the returned object should be the same.
  3. If the extents and resolution of orig_raster and the returned object are not the same, the function should return an error message saying which characteristic (extent or resolution) are not the same.