Skip to content

Commit

Permalink
fixed pop grid creation issue for custom map projection
Browse files Browse the repository at this point in the history
  • Loading branch information
paigejo committed Jan 2, 2025
1 parent 8df192a commit c31d66e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/popGrid.R
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ makePopIntegrationTab = function(kmRes=5, pop, domainMapDat, eastLim, northLim,
centroidsLonLat = matrix(centroidsLonLat[badSubareas,], ncol=2)

# convert to east/north
centroidsEastNorth = projKenya(centroidsLonLat[,1], centroidsLonLat[,2])
centroidsEastNorth = mapProjection(centroidsLonLat[,1], centroidsLonLat[,2])

# only add centroid in stratum if bad subareas have any population in the stratum.
# If poppsub not included and resolution not high enough to have multiple points
Expand Down

0 comments on commit c31d66e

Please sign in to comment.