#!/bin/bash

# In this script we show hot to convert a dataset from *.nii.gz to
# PNETCDF data (for parallel IO; important in large-scale applications).
# Notice that the output file will be stored with the same file name
# and in the same folder where the input file is located (i.e., for
# example $datdir/brain.nii.gz is converted to $datdir/brain.nc).




# define directory for binary (relative path)
bindir=../../bin

# define directory for data (relative path)
datdir=../data

# execute claire with default settings
$bindir/claire-tools convert --input $datdir/brain01.nii.gz --format netcdf

#### commands explained
# > $bindir/claire-tools --- name of the binary 
# > convert              --- command: convert the input image
# > --input <file>       --- name of input file (nii.gz data in our case)
# > --format netcdf      --- the format to convert to (NETCDF)




################################################################
# This script is part of the C++ software
#                        ---  CLAIRE  ---
# For details see https://github.com/andreasmang/claire
################################################################
