%
% DESCRIPTION: Program to create the Proppant concentration 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 measurement'
    'Proppant_concentration','Proppant concentration'};
[FieldType] = {
    'Date',5
    'Proppant_concentration',54};
[FieldUnit] = {
    'Date','datenum'
    'Proppant_concentration','kg/m^3'};
[d] = struct();

d.Date = [734588.607407407
734588.608101852
734588.608796296
734588.609490741
734588.610185185
734588.610879630
734588.611574074
];

d.Proppant_concentration = [2092.43800270400
3607.65172880000
3432.42329341017
5973.24050525600
5999.00944617600
9673.66119893836
12296.9386070240
];

save('GDF_EpizodName_Proppant_concentration.mat')