Skip to content

Instantly share code, notes, and snippets.

View BavYeti's full-sized avatar

Matthias Czechowski BavYeti

View GitHub Profile
@BavYeti
BavYeti / fix_eoi.py
Last active September 20, 2020 15:46 — forked from HikerBoricua/fix_eoi.py
run fix_eoi.py -h for usage. Added (recursive) folder search + overwrite functionality. Tested with S9+ and Python 3.7.9
#!/usr/bin/python
#fixes Samsung's broken Panorama jpgs by adding EOI markers at the end of the file
#positional arguments:
# path file or folderpath
#optional arguments:
# -h, --help show this help message and exit
# -d, --dump dumps Samsung specific data that is added to the image
@BavYeti
BavYeti / aware.py
Created February 3, 2018 19:22
Wulca aware factors to GIS
#this script will convert the wulca aware factors kmz file from http://www.wulca-waterlca.org/aware.html to more GIS-ish vector (shp, geojson)files
#MIT License
#Copyright 2018 Matthias Czechowski https://github.com/bavyeti
file = 'AWARE_v1_2April_7th.kmz'
import geopandas as gpd
import pandas as pd
import fiona
fiona.drvsupport.supported_drivers['kml'] = 'rw'