Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

align_rasters #58

Open
eclee25 opened this issue Aug 16, 2022 · 0 comments
Open

align_rasters #58

eclee25 opened this issue Aug 16, 2022 · 0 comments
Labels
unit-test Issue related to ocvImpact unit testing

Comments

@eclee25
Copy link
Collaborator

eclee25 commented Aug 16, 2022

#' @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.
@eclee25 eclee25 added the unit-test Issue related to ocvImpact unit testing label Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unit-test Issue related to ocvImpact unit testing
Projects
None yet
Development

No branches or pull requests

1 participant