Skip to content

Instantly share code, notes, and snippets.

View marjanmo's full-sized avatar

Marjan Moderc marjanmo

  • Slovenian Environment Agency (ARSO)
  • Mojstrana, Slovenia
View GitHub Profile
@marjanmo
marjanmo / youtube_to_mp3_splitter.py
Last active June 16, 2023 17:46
Download Youtube music compilation into separate .mp3 files
import subprocess
import sys, os
"""
#####################################
##### YOUTUBE TO MP3 SPLITTER ######
#####################################
@marjanmo
marjanmo / python_geospatial_setup_with_conda.md
Last active September 5, 2017 13:24
Setting up conda virtual environment for working with geospatial Python projects (Windows and Linux)

Many of the projects on my github require setting up its own conda virtual environment. Moreover, many python projects work with the geospatial stuff, so many system-wide dependencies have to be installed for the python geospatial libraries to work normally. This gist covers a typical workflow that needs to be executed, if it's your first time using a geospatial python-written project inside in a virtual environment:

LINUX

System requirements

  • Install GDAL:
@marjanmo
marjanmo / pygrib_wrapper_example.py
Last active December 20, 2022 01:52
PYGRIB wrapper for reading and filtering grib files - with examples
"""
A set of my pandas-like wrappers around pygrib.open() and pygrib.select() functionality that I find it bit more
intuitive and useful for my workflow. It also contains a patch to the "GRIB API stepUnits error" when reading gribs
with stepUnits below 1 hour.
DEPENDECIES: Numpy, Pandas and of course pygrib (with GRIB API C library available on system!).
Use at your own risk. Any corrections, suggestions, improvements and comments welcome!
Author: Marjan Moderc, Slovenian Environment Agency (ARSO), 2017 (email: marjan.moderc@gov.si)