Skip to content

Instantly share code, notes, and snippets.

View ikselven's full-sized avatar
💭
I ❤️ free software

Seti ikselven

💭
I ❤️ free software
View GitHub Profile
(foo) pkg> add https://github.com/meggart/SentinelMissings.jl
Updating git-repo `https://github.com/meggart/SentinelMissings.jl`
Resolving package versions...
Updating `~/devel/julia/foo/Project.toml`
[b1dc47e8] + SentinelMissings v0.1.3 #master (https://github.com/meggart/SentinelMissings.jl)
Updating `~/devel/julia/foo/Manifest.toml`
[b1dc47e8] + SentinelMissings v0.1.3 #master (https://github.com/meggart/SentinelMissings.jl)
(foo) pkg> add https://github.com/esa-esdl/ESDL.jl
Updating git-repo `https://github.com/esa-esdl/ESDL.jl`
@ikselven
ikselven / snap-update.log
Created July 24, 2018 13:52
output of snap update command
Refreshing SNAP Community Extensions
Refreshing SNAP
Refreshing SNAP Extensions
Will update org.csa.rstb.rstb.op.polarimetric.tools@7.4.0 to version 7.4.3
Will update org.esa.s2tbx.s2tbx.s2msi.reader@6.0.0 to version 6.0.2
Will update org.esa.snap.snap.temporal.percentile@6.0.0 to version 6.0.4
Will update org.esa.snap.snap.unmix.ui@6.0.0 to version 6.0.4
Will update org.esa.snap.snap.pgx.reader@6.0.0 to version 6.0.4
Will update org.esa.snap.snap.smart.configurator.ui@6.0.0 to version 6.0.4
import datetime
import numpy as np
import os
import netCDF4
# creates a basic sample NetCDF file for testing purposes
# code based on https://gis.stackexchange.com/a/70487
nx, ny = (4, 5)
x = np.arange(nx)
@ikselven
ikselven / PKGBUILD
Last active February 27, 2018 12:38
PKGBUILD for GrassGIS with blas, lapack, Postgres and PDAL support
# Maintainer: Doug Newgard <scimmia at archlinux dot info>
# Contributor: Maciej Sieczka <msieczka at sieczka dot org>
pkgname=grass
pkgver=7.4.0
pkgrel=1
_shortver=${pkgver%.*}; _shortver=${_shortver/./}
pkgdesc='Geospatial data management and analysis, image processing, graphics/maps production, spatial modeling and visualization'
arch=('i686' 'x86_64')
url='http://grass.osgeo.org/'
@ikselven
ikselven / screenshot
Last active October 5, 2017 19:27
Small screenshot tool based on imagemagick
#!/bin/bash
# Screenshot tool with rectangular selection
# requires imagemagick
# requires xdg-user-dir
IMGDIR="$(xdg-user-dir PICTURES)"
NOW="$(date +%Y-%m-%d_%H-%M-%S)"
FILENAME="$IMGDIR/screenshot_$NOW.png"