Skip to content

Instantly share code, notes, and snippets.

@aprossi
aprossi / hillshade-transparent-overlay.md
Created June 18, 2019 09:43 — forked from cquest/hillshade-transparent-overlay.md
transparent hillshade cooking guide using gdal

Ingredients

  • a decent DEM
  • gdal
  • some computer

compute grayscale hillshade using gdaldem

gdaldem hillshade -compute_edges your_dem_file hillshade.tif

color-ramp to compute transparency (alpha channel)

In another bowl, prepare the following shade.ramp file:

@aprossi
aprossi / rename_multiple_files.md
Created May 24, 2019 06:36
Rename multiple files with prefix or suffix in Linux console

Add a suffix

for file in *; do mv "$file" "$(basename "$file")yourSuffix"; done;

Exmpale to add an underscore "_" at the end each text file:

for file in *.txt; do mv "$file" "$(basename "$file")_"; done;

Add a prefix

@aprossi
aprossi / test.html
Last active July 15, 2018 06:16
untitled
<section data-markdown>
<textarea data-template>
## Page title
A paragraph with some text and a [link](http://hakim.se).
* test
* test
</textarea>
</section>
name: python3test
channels:
- conda-forge
- anaconda-fusion
- defaults
dependencies:
- appnope=0.1.0=py36_0
- backports=1.0=py36_1
- backports.functools_lru_cache=1.4=py36_1
- bleach=2.0.0=py36_0

Rtklib install on ubuntu

install git

sudo apt install git

install git, if it complains on ubuntu run before:

  • Opening post (Angelo and Nico) week 38/39
  • current best resources and practices for software "archiving." (Chase) - week ??

Run Jupyterlab on docker

Build starting from a Jupyter 2.x image.

Build

docker build -t jupyterlab .

GDAL

Useful aliases after pulling https://hub.docker.com/r/klokantech/gdal/

alias gdal_translate="docker run -ti --rm -v $(pwd):/data klokantech/gdal gdal_translate "
alias gdalwarp="docker run -ti --rm -v $(pwd):/data klokantech/gdal gdalwarp "
alias gdalinfo="docker run -ti --rm -v $(pwd):/data klokantech/gdal gdalinfo "

Latex