Skip to content

Instantly share code, notes, and snippets.

View matteodefelice's full-sized avatar
💭
Busy connecting things...

Matteo De Felice matteodefelice

💭
Busy connecting things...
View GitHub Profile
@alexgleith
alexgleith / SimpleLoadS2.ipynb
Last active April 10, 2024 18:38
Simplest example for finding and loading Sentinel-2 data using Python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#' Melt array
#'
#' Long form version of an array in a data frame with explict row, col, etc. dimension
#' index identifiers.
#'
#' Degenerate dimensions are 'dropped' by default, which means there won't be an
#' explicit column recording their presence. If `drop = FALSE` the column will be present
#' (filled with `1`).
#'
@timelyportfolio
timelyportfolio / code.R
Last active July 4, 2019 03:48
R sf simple features with quakes data, st_make_grid, dplyr, mapview zcol
library(sf)
library(dplyr)
library(mapview)
library(mapedit)
qk_mx <- data.matrix(quakes[,2:1])
qk_mp <- st_multipoint(qk_mx)
qk_sf <- st_sf(st_cast(st_sfc(qk_mp), "POINT"), quakes, crs=4326)
grd <- st_sf(geom=st_make_grid(qk_sf), crs=4326)
@tonyfischetti
tonyfischetti / elastic-net-regression-evaluation.R
Last active April 27, 2021 13:24
Code for my blog post "Kickin' it with elastic net regression"
#!/usr/bin/Rscript --vanilla
###########################################################
## ##
## elastic.R ##
## ##
## Author: Tony Fischetti ##
## tony.fischetti@gmail.com ##
## ##
###########################################################