if(!require(raster)){install.packages('raster'); library(raster)} else {library(raster)}
if(!require(rgdal)){install.packages('rgdal'); library(rgdal)} else {library(rgdal)}
if(!require(gdalUtils)){install.packages('gdalUtils'); library(gdalUtils)} else {library(gdalUtils)}
convierte = function(dir){
lista= list.files(dir, full.names = T,pattern = "jp2")# Lista los nombres del directorio
jp2=as.list(lista)# Convierte en una lista
tif=lapply( jp2,FUN = batch_gdal_translate, dir, outsuffix = ".tif")}
lee_tiff = function(dir){
listar= list.files(dir, full.names = T,pattern = "tif")# Lista los nombres del directorio
lista=as.list(listar)# Convierte en una lista
apila=stack(lista)
bloque=brick(apila)}
- Bulleted
- List
- Numbered
- List
Bold and Italic and Code
text
Link and
For more details see [GitHub Flavored Markdown](https://guides.github.com/features/mastering-markdown/).
### Jekyll Themes
Your Pages site will use the layout and styles from the Jekyll theme you have selected in your [repository settings](https://github.com/famartinezal/Sentinel-2-en-R/settings). The name of this theme is saved in the Jekyll `_config.yml` configuration file.
### Support or Contact
Having trouble with Pages? Check out our [documentation](https://help.github.com/categories/github-pages-basics/) or [contact support](https://github.com/contact) and we’ll help you sort it out.