This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
digraph G { | |
graph [ | |
label = "Coral Reef Northern Tanzania/Kenya - Subcriterion D1" | |
labelloc = t | |
compound=true; | |
fontname = "Helvetica,Arial,sans-serif" | |
fontsize = 20 | |
layout = dot | |
rankdir = TD | |
newrank = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## basically following https://stackoverflow.com/questions/27475057/sort-files-into-sub-folders-by-date-bash | |
DIR=`pwd` | |
target=$DIR | |
cd "$DIR" | |
for file in *; do | |
subfolderName=$(stat -f "%Sm" -t "%Y-%m-%d" $file) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
digraph G { | |
bgcolor=transparent; | |
start [shape=Mdiamond | |
label=<<TABLE COLOR='white' CELLPADDING="0" CELLSPACING="0" BORDER="1"> | |
<TR> | |
<TD BGCOLOR='#ffffd9'>1</TD> | |
<TD BGCOLOR='white'>X</TD> | |
<TD BGCOLOR='white'>X</TD> | |
<TD BGCOLOR='white'>X</TD> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require(mapview) | |
require(sf) | |
# depending on the version of GDAL, you might need to use `fgb = TRUE` instead | |
mapviewOptions(fgb = FALSE) | |
gpx_file <- "~/Desktop/Track_02-JUL-22 170634.gpx" # path and filename | |
read_sf(gpx_file,'tracks') -> paseo | |
paseo %>% st_geometry() %>% plot() # check if there is data on the track | |
mapview(paseo) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!R --vanilla | |
## original idea & report by Henrik Bengtsson at | |
## https://stat.ethz.ch/pipermail/r-devel/2016-February/072388.html | |
## some code borrowed from: | |
## https://gist.github.com/daroczig/3cf06d6db4be2bbe3368 | |
library(rvest) | |
library(dplyr) | |
require(stringr) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## files downloaded from http://chelsa-climate.org/downloads/ | |
## monthly temperatures and precipitation with global extent | |
## output options: | |
outputdir = "$HOME/output" | |
xmin=-74 | |
ymin=0 | |
xmax=-58 | |
ymax=13 | |
for (( j=1; j <= 12; j++ )) | |
do |