Skip to content

Commit

Permalink
Added project 2
Browse files Browse the repository at this point in the history
Corrections to project 1
  • Loading branch information
ferxohn committed Feb 12, 2020
1 parent 0475352 commit c624f8d
Show file tree
Hide file tree
Showing 27 changed files with 216 additions and 186 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ library(dplyr)
library(stringr)
library(sf)
library(cartography)
setwd("incidencia_delictiva_nac/")
setwd("01_incidencia_delictiva_nac/")

# Incidencia delictiva del fuero común
# Fuente: Secretariado Ejecutivo del Sistema Nacional de Seguridad Pública
Expand Down
File renamed without changes.
Binary file added 02_otec/ESTADOS/ESTADOS.dbf
Binary file not shown.
1 change: 1 addition & 0 deletions 02_otec/ESTADOS/ESTADOS.prj
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PROJCS["North_America_Lambert_Conformal_Conic",GEOGCS["ITRF_1992",DATUM["D_ITRF_1992",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",2500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-102.0],PARAMETER["Standard_Parallel_1",17.5],PARAMETER["Standard_Parallel_2",29.5],PARAMETER["Latitude_Of_Origin",12.0],UNIT["Meter",1.0]]
Binary file added 02_otec/ESTADOS/ESTADOS.shp
Binary file not shown.
Binary file added 02_otec/ESTADOS/ESTADOS.shx
Binary file not shown.
1 change: 1 addition & 0 deletions 02_otec/ESTADOS/mexico.cpg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UTF-8
Binary file added 02_otec/ESTADOS/mexico.dbf
Binary file not shown.
1 change: 1 addition & 0 deletions 02_otec/ESTADOS/mexico.prj
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PROJCS["Lambert_Conformal_Conic",GEOGCS["GCS_GRS 1980(IUGG, 1980)",DATUM["D_unknown",SPHEROID["GRS80",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["standard_parallel_1",17.5],PARAMETER["standard_parallel_2",29.5],PARAMETER["latitude_of_origin",12],PARAMETER["central_meridian",-102],PARAMETER["false_easting",2500000],PARAMETER["false_northing",0],UNIT["Meter",1]]
1 change: 1 addition & 0 deletions 02_otec/ESTADOS/mexico.qpj
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PROJCS["unnamed",GEOGCS["GRS 1980(IUGG, 1980)",DATUM["unknown",SPHEROID["GRS80",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic_2SP"],PARAMETER["standard_parallel_1",17.5],PARAMETER["standard_parallel_2",29.5],PARAMETER["latitude_of_origin",12],PARAMETER["central_meridian",-102],PARAMETER["false_easting",2500000],PARAMETER["false_northing",0],UNIT["Meter",1]]
Binary file added 02_otec/ESTADOS/mexico.shp
Binary file not shown.
Binary file added 02_otec/ESTADOS/mexico.shx
Binary file not shown.
26 changes: 26 additions & 0 deletions 02_otec/PracticaOTEC.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Práctica: OTEC
library(raster)
library(rgdal)
library(sf)
library(tmap)

# Polígonos estatales
estados <- read_sf("ESTADOS/ESTADOS.shp")

# Batimetría del Mar Caribe
# Fuente: NOAA
batimetria <- raster("etopo1_bedrock.tif")

pais <- st_union(estados)
buffer <- st_buffer(pais, dist=15000)

buffer

nivel <- calc(batimetria, function(x) { if (x == -700 || x == -800 || x == -900 || x == -1000) x else 0 })

tm_shape(nivel) +
tm_raster() +
tm_shape(pais) +
tm_polygons(alpha = 0.5) +
tm_shape(buffer) +
tm_polygons(alpha = 0.5)
Binary file added 02_otec/PracticaOTEC.pdf
Binary file not shown.
Binary file added 02_otec/etopo1_bedrock.tif
Binary file not shown.
Loading

0 comments on commit c624f8d

Please sign in to comment.