Skip to content

Instantly share code, notes, and snippets.

View hadallen's full-sized avatar

Nicholas Hadaller hadallen

  • Vancouver Island
View GitHub Profile
@hadallen
hadallen / files_to_shp.py
Last active November 9, 2023 03:03
shapefile from filenames
import os
import geopandas as gpd
from shapely.geometry import Point
log_folder = r"C:\Path\To\Folder"
list_of_files = os.listdir(log_folder)
ids, geometry, field1s, field2s = [], [], [], []
paths = [os.path.join(log_folder, file) for file in list_of_files]
@hadallen
hadallen / raspi-timelapse.sh
Created January 24, 2021 22:43
ffmpeg timelapse script bits and pieces
#!/bin/bash
# Add to crontab to schedule pictures
DATE=$(date +"%y%m%d")
TIMELAPSE_NAME="timelapse1"
DIRECTORY="/path/to/project/$TIMELAPSE_NAME/$DATE"
if [[ ! -d $DIRECTORY ]]
@hadallen
hadallen / las_to_trees.txt
Last active May 9, 2023 16:22
R script using lidR package to create DTM, CHM rasters and segment individual trees from LAS file
#######################################################
#######################################################
####
#### Author: Nicholas Hadaller
#### This script will load a las file and produce the following derivitives
#### There were errors with the LASfile that I was using for testing purposes
#### Regardless the script completed and various plots can be viewed
####
#### Required R packages: lidR, raster, sp
@hadallen
hadallen / .conkyrc.left
Last active September 27, 2020 10:04
my .conkyrc (modified version of one I found online)
conky.config = {
background = true,
use_xft = true,
font = 'Hack:size=8',
xftalpha = 0.8,
update_interval = 0.5,
total_run_times = 0,
own_window = true,
own_window_transparent = false,