Skip to content

Instantly share code, notes, and snippets.

View erick-otenyo's full-sized avatar
🧭
Focusing

Erick Otenyo erick-otenyo

🧭
Focusing
View GitHub Profile
station_name wigos_station_identifier traditional_station_identifier facility_type latitude longitude elevation barometer_height territory_name wmo_region
Dindiza 0-508-0-67309 67309 landFixed -23.502 33.453 56.0 MOZ africa
CATANDICA 0-20000-0-67291 67291 landFixed -18.0667 33.1667 611.0 MOZ africa
BEIRA 0-20000-0-67297 67297 landFixed -19.8 34.9 8.0 MOZ africa
Furancungo 0-20000-0-67225 67225 landFixed -14.91 33.62 1249.0 MOZ africa
Mulevala 0-508-0-67281 67281 landFixed -16.43 37.58 222.0 MOZ africa
ENTRE RIOS MALEMA_AUTO 0-508-0-67275 67275 landFixed -14.95 37.42 625.0 MOZ africa
FINGOE_AUTO 0-508-0-67269 67269 landFixed -15.17 31.88 853.0 MOZ africa
INHARRIME-AUTO 0-20000-0-67239 67239 landFixed -24.4667 35.0167 29.0 MOZ africa
MACHANGA_AUTO 0-508-0-67292 67292 landFixed -21.0408 34.5109 72.0 MOZ africa
station_name wigos_station_identifier traditional_station_identifier facility_type latitude longitude elevation barometer_height territory_name wmo_region
ALTO-CHANGANE_AUTO 0-508-0-67307 67307 landFixed -24.3 33.63 54.0 MOZ africa
ANGOCHE 0-20000-0-67273 67273 landFixed -16.2167 39.9 61.0 MOZ africa
ANGOCHE - AUTO 0-508-0-67274 67274 landFixed -16.2 39.9 30.0 MOZ africa
BARRAGEM_AUTO 0-508-0-67238 67238 landFixed -15.5833 32.7 333.0 MOZ africa
BEIRA 0-20000-0-67297 67297 landFixed -19.8 34.9 8.0 MOZ africa
CAIA 0-20000-0-67280 67280 landFixed -17.8333 35.3333 30.0 MOZ africa
CAIA (VILA FONTES)_AUTO 0-508-0-67293 67293 landFixed -17.83 35.33 30.0 MOZ africa
CARINDE_AUTO 0-508-7-67252 67252 landFixed -15.6772 31.3071 331.0 MOZ africa
CARINDE_AUTO 0-508-0-67245 67245 landFixed -15.6667 31.3 331.0 MOZ africa
@erick-otenyo
erick-otenyo / raster-pixels-to-polygons.go
Last active March 30, 2022 10:14
Convert a raster layer to a vector layer, by creating geojson polygon features for each individual pixel's extent in the raster layer. Equivalent to QGIS' Raster pixels to polygons Algorithm
package main
import (
"errors"
"flag"
"math"
"os"
"github.com/lukeroth/gdal"
geojson "github.com/paulmach/go.geojson"
@erick-otenyo
erick-otenyo / .docker-private-registry-with-read-write-control.md
Created April 18, 2021 09:58
Run docker private registry with read/write access control
@erick-otenyo
erick-otenyo / django_import_shp_zip_to_postgres.py
Last active January 31, 2021 10:12
Import a zipped shapefile to a new postgis table
import pygeoif
import shapefile
from django.db import connection, transaction
from zipfile import ZipFile
from io import BytesIO
def shp_files_sorter(file_name):
"""
:param file_name:
@erick-otenyo
erick-otenyo / parse_dotenv.bash
Created January 28, 2021 09:16 — forked from judy2k/parse_dotenv.bash
Parse a .env (dotenv) file directly using BASH
# Pass the env-vars to MYCOMMAND
eval $(egrep -v '^#' .env | xargs) MYCOMMAND
# … or ...
# Export the vars in .env into your shell:
export $(egrep -v '^#' .env | xargs)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@erick-otenyo
erick-otenyo / README.md
Created December 7, 2020 18:22 — forked from mau21mau/README.md
Configure Celery + Supervisor With Django
@erick-otenyo
erick-otenyo / rsync_backup.py
Created November 4, 2020 13:15 — forked from seebk/rsync_backup.py
Python rsync backup script
#!/usr/bin/python3
#######################################################
# Python rsync Backup script
# Sebastian Kraft, 24.06.2013
#
#######################################################
#-----------------------------------------------------
# Config
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.