%
% DESCRIPTION: Program to create the Injection Volume Multi GDF file in the Matlab format.
% 
% [TimeZone] and [Description] have text format so the values give in ''


clear;clc;
[FormatName] = 'GDF';
[FormatVersion] = 2.1;
[CRS] = 'n/a'%['EPSG:' num2str(input('[CRS] EPSG code (just number) = '))];
[TimeZone] = 'UTC';%input('TimeZone (char) = ');
[Description] = 'Description of the dataset' %input('Description of data (char) = ');
         
[FieldDescription] = {
    'Date','Time of injected volume'
    'Well_number_1','Injected volume for a specified well no.1'
    'Well_number_2','Injected volume for a specified well no.2'
    'Well_number_n','Injected volume for a specified well no.n'
    };
[FieldType] = {
    'Date',5
    'Well_number_1',54
    'Well_number_2',54
    'Well_number_n',54
    };
[FieldUnit] = {
    'Date','datenum'
    'Well_number_1','m^3'
    'Well_number_2','m^3'
    'Well_number_n','m^3'
    };
[d] = struct();

d.Date = [714932
    715297
    715662
    716028
    716393
    ];

d.Well_number_1 = [1.0
    1.1
    1.2
    1.3
    1.4
];

d.Well_number_2 = [2.0
    2.1
    2.2
    2.3
    2.4
];

d.Well_number_n = [3.0
    3.1
    3.2
    3.3
    3.4
];

save('GDF_EpisodeName_Injection_volume_multi_example.mat')