Skip to content

Instantly share code, notes, and snippets.

@sickel
sickel / NuclearTests.csv
Last active January 24, 2018 12:35
A csv file with the number of atmospheric and underground nuclear tests by country and year
Year USatm USudg UUSRatm USSRUdg UKatm UKudg FRatm FRudg PRCatm PRCudg IndiaAtm IndiaUdg PakistanAtm PakistanUdg NKatm NKudg Otheratm Otherudg atm udg all
1945 3 3 0 3
1946 2 2 0 2
1947 0 0 0
1948 3 3 0 3
1949 1 1 0 1
1950 0 0 0
1951 15 1 2 17 1 18
1952 10 1 11 0 11
1953 11 5 2 18 0 18
@sickel
sickel / EPG.R
Last active September 28, 2017 21:07
library(ncdf4)
library(chron)
library(lattice)
library(RColorBrewer)
epspath="C:\\Users\\mortens\\Desktop\\EPS"
scenario=4
ncpath=paste(epspath,"\\",scenario,sep="")
setwd(ncpath)
@sickel
sickel / ROIextract.py
Last active September 19, 2017 09:35
a python script to extract ROI data from a CSV-file exported from radassist as specified in Momorc
#!/usr/bin/python
from __future__ import print_function 
import csv
import sys
#First and last channel for each ROI. Edit as needed:
rois={'Tc99m': [37, 52],
'Ba133': [107,139],
'I131': [113,121],
@sickel
sickel / jessie.sh
Last active March 9, 2017 03:38 — forked from subaddiction/jessie.sh
debian 8 live build
#!/bin/bash
# WARNING: to use "--binary-images hdd", see this bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=773833
# WARNING: to get persistence encryption working, apply this fix: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=767195
# Italian locale & keyboard, default boot with luks encrypted persistence
# lb config --distribution jessie --debian-installer live --binary-images iso-hybrid --archive-areas "main contrib non-free" --bootappend-live "boot=live persistence persistence-encryption=luks locales=it_IT.UTF-8 keyboard-layouts=it username=utente hostname=D8"
# lb config --distribution jessie --debian-installer live --binary-images iso-hybrid --archive-areas "main contrib non-free" --bootappend-live "boot=live persistence persistence-encryption=luks keyboard-layouts=it username=user hostname=D8"
# Default locale & norwegian keyboard, pxe boot