#!/usr/bin/python
# -*- coding: utf8 -*-

"""
Disney Disparity.
:author: Manuel Tuschen
:date: 20.06.2016
:license: GPL3
"""

from __future__ import division, absolute_import, unicode_literals, print_function

import os
import argparse

import numpy as np
import h5py
from easyScripting import prepareLoading, prepareSaving
from DisneyDisp import clif2lf

if __name__ == "__main__":

    parser = argparse.ArgumentParser(description='Convert lightfiled of .clif files to the .hdf5 file format.')
    parser.add_argument('clif_file', help='The filename including the directory of the .clif file.')
    parser.add_argument('lf_file', help='The filename including the directory of the .ddf5 file.')
    parser.add_argument('clif_group', help='The group name inside .clif File.')
    parser.add_argument('--lf_group', help='The group name inside .hdf5 File.', default='lightfield')

    args = parser.parse_args()
    clif2lf(args.lightfiled, args.lf_file, args.clif_group, lf_group=args.lf_group)

