Skip to content

Instantly share code, notes, and snippets.

View gutzbenj's full-sized avatar
🌈
think of your environment

Benjamin gutzbenj

🌈
think of your environment
View GitHub Profile
@gutzbenj
gutzbenj / interpolate.py
Created February 28, 2022 11:28
Interpolate modified with polygons
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2022, earthobservations developers.
# Distributed under the MIT License. See LICENSE for more info.
import logging
import numpy as np
import pandas as pd
import utm
from scipy import interpolate
@gutzbenj
gutzbenj / influxdb.py
Last active June 6, 2021 17:13
Influxdb without DataFrameClient
elif target.startswith("influxdb://"):
"""
======================
InfluxDB database sink
======================
Install Python driver::
pip install influxdb
@gutzbenj
gutzbenj / list-remote-files-dwd.py
Last active December 20, 2020 22:19
Investigate problems when scanning huge directory tree of DWD CDC HTTP server
"""
Investigate problems when scanning huge directory
tree of DWD CDC HTTP server.
This repro will show the actual files as found in the url
python list-remote-files-dwd.py | grep -v zip
"""
import os
import requests
from typing import List