Skip to content

Commit

Permalink
Small bug fix in ClipQuakes
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinRoth committed Feb 22, 2017
1 parent d31f426 commit 5454046
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Version 0.1.5.5

- exporting ClipQuakes
- exporting ClipQuakes (fixed small bug related to object class)
- added StudyArea
2 changes: 1 addition & 1 deletion R/ImportData.R
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ EarthquakesDownload <- function(type, area, period, call) {
#' @export
ClipQuakes <- function(quakes, area) {
lat <- lon <- NULL
points <- quakes[, list(lon, lat)]
points <- as.data.frame(quakes[, list(lon, lat)])
points <- sp::SpatialPoints(points, CRS("+proj=longlat +datum=WGS84"))
points <- sp::spTransform(points, area@proj4string)
index <- which(!is.na(sp::over(points, area)))
Expand Down

0 comments on commit 5454046

Please sign in to comment.