Skip to content

Instantly share code, notes, and snippets.

View dvm-shlee's full-sized avatar
😆

SungHo Lee dvm-shlee

😆
View GitHub Profile
@dvm-shlee
dvm-shlee / sordino2nii
Last active November 14, 2024 07:03
SORDINO2NII, Bruker SORDINO-ZTE image reconstruction
#!/usr/bin/env python
"""
Script Name: sordino2nii
Description: This script converts raw SORDINO data (a type of Zero TE (ZTE) image acquired from the Bruker Biospin preclinical scanner) into NIfTI-1 format by performing an adjoint NUFFT reconstruction.
A distance-based Density Compensation Function (DCF) is applied, where `dk = 1/(x² + y² + z²)` and `DCF = 1/dk`.
Usage:
./sordino2nii -i [brkraw rawdata] -o [output prefix] [options]
Author: SungHo Lee
@dvm-shlee
dvm-shlee / pykoen.py
Last active April 21, 2022 10:19
pykoen, jupyter notebook 을 이용한 interactive 한영번역기 (구글번역기 + Ginger 문법교정기)
from __future__ import absolute_import
import json
import sys
import re
import requests
import urllib
import urlparse
from urllib2 import HTTPError
from urllib2 import URLError
from urllib2 import urlopen