Skip to content

Instantly share code, notes, and snippets.

@drnextgis
drnextgis / mod14-process.py
Created July 13, 2011 10:12
Convert MOD14 hdf into csv
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import with_statement
from optparse import OptionParser
import os, sys, fnmatch, shutil, datetime
def echo_err(parser,msg):
parser.print_help()
print "*** " + msg
@drnextgis
drnextgis / github
Created February 19, 2012 10:27
Команды для работы с github-репозиториями
Создание локального репозитория
$git clone git@github.com:drnextgis/openlayers.git
$cd openlayers
$git remote add upstream git://github.com/openlayers/openlayers.git
Обновление локального репозитория
$git pull upstream master
Создаем ветку
git checkout -b feature #Создаёт новую ветвь, названную "feature" и делает её активной
@drnextgis
drnextgis / admin.md
Last active December 10, 2022 03:22
Extract administrative boundaries from citypopulation.de as GeoJSON

Open page, for example, and type the following commands into web browser's console and copy output to file:

script = document.createElement('script');
document.head.appendChild(script);

script.onload = function () {
    polygons = [];
    adminLayer.forEach(function (polygon) {
        linearRing = [];
@drnextgis
drnextgis / onda_quicklook.ipynb
Created September 3, 2021 22:26
ONDA quicklook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.