Skip to content

Instantly share code, notes, and snippets.

View gannebamm's full-sized avatar

Florian Hoedt gannebamm

View GitHub Profile
@gannebamm
gannebamm / config.py
Last active November 3, 2017 09:22
record audio samples via pyaudio for the ASSOS project - creates IO ERRORS
### configuration file for assos_listen
# upload
upload = False
# config for this sensor
sensorID = "al_03"
# sampling rate & chunk size
chunkSize = 1024
samplingRate = 44100 #44100 # 44100 needed for Aves sampling
@gannebamm
gannebamm / snippet.py
Created April 21, 2017 10:57
ZonalMetrics Tools snippet
#[ pyt stuff ...]
class MetricsCalcTool(object):
def __init__(self):
self.category = "ZonalMetrics"
self.label = "FILL ME IN SUBCLASS"
self.description = "FILL ME IN SUBCLASS"
self.canRunInBackground = True
self._temp_layers = []
self._temp_layer_nb = 1
@gannebamm
gannebamm / alternativeBivariateLegend.R
Created September 15, 2016 12:37
alternative bivariate chloropleth map legend done in R with ggplot
# alternative bivariate chloropleth map legend
# by Florian Hoedt
# gis.hoedt@gmail.com
require(maptools)
require(ape) #needed?
# shp with data
dataPath <- "C:/temp/Modul_09_VisKarto/A/A_1/both.shp"
shpData <- readShapePoly(dataPath)
@gannebamm
gannebamm / gist:1e1cd8442f90769d4c31
Last active October 30, 2015 15:55
Stacktrace geonode updatelayers
Traceback (most recent call last):
File "/usr/bin/django-admin", line 5, in <module>
management.execute_from_command_line()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.p y", line 399, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.p y", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 242, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 285, in execute