Skip to content
Snippets Groups Projects
Commit 820dc2ec authored by Nicolas Lambert's avatar Nicolas Lambert
Browse files

toplight

parent 60aa4c01
No related branches found
No related tags found
No related merge requests found
Pipeline #5796 passed
......@@ -6,7 +6,7 @@ library(sp)
library(tiff)
prj <- "+proj=robin +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs"
fact <- 100
fact <- 200
dem <- raster("ETOPO1_Ice_g_geotiff.tif")
dem <- aggregate(dem, fact=fact, fun=max)
dots <- as(dem, 'SpatialPointsDataFrame')
......@@ -16,5 +16,5 @@ coords <- as.data.frame(st_coordinates(dots))
dots$X <- coords$X
dots$Y <- coords$Y
plot(st_geometry(dots))
write.csv(dots, 'ETOPO1_light.csv')
dots <- dots %>% st_drop_geometry()
write.csv(dots, "ETOPO1_light2.csv")
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment