This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |